Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to set up an ADSL modem in SuSE Linux.
I'd really appreciate some help with this as I really don't know what I'm doing... (blatant noobie)
The modem is a Trio3G and comes with the Yahoo!BB package in Japan.
I have windows installed too, and managed to configure it on that and confirm that it works.
I tried using Yast, dhcpcd, dhcpcd-test, ifconfig, route, fping, rcnetwork as you can see below.
(I've obscured my actual IP address and gateway address, but these numbers correlate with what I got from ipconfig in windows.)
Any help would be greatly appeciated... I feel sure it should be a trivial matter to get the thing set up right, but I just don't know what I'm doing at all!
Thanks,
Josh.
ps I guess I forgot to mention it, but I cannot connect to the web using netscape etc.
linux:/usr/share/doc/packages # fping 192.168.2.22
192.168.2.22 is alive
linux:/usr/share/doc/packages # rcnetwork start
Hint: you may set mandatory devices in /etc/sysconfig/network/config
Setting up network interfaces:
lo
lo IP address: 127.0.0.1/8
done
Warning: No interface active (yet?) eth0 device: nVidia Corporation nForce3 Ethernet (rev a5)
eth0 configuration: eth-id-00:30:1b:b0:9e:77
eth0 IP address: 192.168.2.22/24
done
Warning: No interface active (yet?)Setting up service network . . . . . . . . . . . . . . . . done
linux:~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
linux:~ # fping 192.168.2.0
192.168.2.0 error while sending ping: Permission denied
192.168.2.0 is unreachable
linux:~ # fping 192.168.2.22
192.168.2.22 is alive
It seems that your network stuff might be working, but you probably need to dial out with PPPoE. Do you have a fixed IP, or are you using DHCP (Dynamic Host Configuration Protocol)? That's one issue you might need to fix in your network settings.
Why did you fping 192.168.2.0??? That address looks like you have some sort of VPN (virtual private network) with NAT (Network address translation). Are you using a broadband router with firewall?
Please give me more info about your network setup and I'll try to help you out.
To tell the truth, I'm not sure if I have a fixed IP. I just used DHCP to get the IP when I set up in windows but it seems to be the same IP all the time so I guess it's a fixed one? I didn't ever have to type in an IP address though.
It's an ADSL modem that plugs into the ethernet card, I guess that makes it a boradband router right? The ethernet card is a realtek on the motherboard, and I'm using a Shuttle SN85G4.
I pinged that 192.168.2.0 address just because I was trying to figure out whether I could connect to the modem directly. I read that if you load http://192.168.0.1 or some such address depending on your modem, you can connect to it and do some setup procedure that way. -I'm not sure what the "internal" IP for the modem is, and am not sure how to find out. The only IP I can ping is the 192.168.22.2, but if I change the IP with ifconfig then the IP I can ping changes accordingly, so it doesn't seem like much of an achievement!
I havn't set up a firewall, but perhaps there is one already in place...
I'm embarassed by my total ignorance of ADSL/modems/networking so apologies if that information doesn't really help. Would something more specific help?
I did try to find the internal IP in the manuals, but it is geared toward people setting up in windows, in which case this information seems to be irrelevant. Perhaps it's not going to help me in linux either... The manuals are all in Japanese too, which is a bit challenging...
Now I think the best way to identify your problem is to take a look at your windows network configuration and see if we can setup a similar connection in linux. I run Slack so I don't know much about Suse, however I believe the tools are the same.
Let's start by right clicking on My Network Places >> Properties. Now lets check to see if you have a broadband adapter in here. Usually in the "Broadband" section. If it's not in there then try to right click on one of your network adapters and go to "Properties". Now look in the "This connection uses the following items:" box. There should be a PPPoE adapter in there. If there isn't one, then you probably have a modem with router built in.
If you have a modem with a router built in then you should just need to do exactly what you did with the dhcpd eth0 and then try openning the router configuration on your browser in X. It's usually http://your.routers.IP.here:access_port
If you want to find out how to access your modem/router and what the exact port for your it is, try visiting the manufacturer's website and getting a manual in English and find out how to access it from there. I wish I could give you more info than that, but I really know nothing about hardware routers.
If there is a PPPoE (which I suspect is the case as no company in asia, at least that I know of gives away a free hardware router with their crappy service. I live in Thailand and got a hand-me-down ZyXEL USB modem. What crap! Sorry.) then all you should really need to do is go download rpppoe or some other equivelant and setup your internet connection from there. When you download it, read the INSTALL file and compile it with --gui support. This way configuration should be easier. If there's an rpm and Suse is RPM friendly the use the RPM. I never use the RPMs in Slack as it does a piss-poor job of installing them.
Anyway, good luck with the install. I'll try to keep up with the thread.
Last edited by zr0gravity; 02-04-2005 at 11:40 AM.
First of all, your ADSL box that plugs into your computer is NOT a broadband router--it's a "modem" that may have more than one LAN port on it. If it supports a few TCP refusals, that means it must have some sort of "firewall-type settings". Getting into the thing using 192.168.0.1 is a common form of setup. Did you try this??
It looks like (from your ifconfig) that your network is "healhy". The problem is that you're not dialing into internet and getting a device called ppp0. When I say "dialing", I mean that your computer has to send your ursername and password to the ADSL host and then receive an IP address, etc. Your "ifconfig" showed that you have loopback "lo" and "eth0" running, but not "ppp0". This simply means that you have started your computer and your Internet provider doesn't know what your "name" and "password" are. You need to tell them this.
In the old days, this was done with a pppoe dialer, which was called.........you're never going to believe this......pppoed. I have this and can send it to you, but I'm sure there's an easier way. There's probably something in your distribution that can do this. If not, send me a private message and I'll send all that stuff to you. (Now is the start of Chinese New Year,. I'm going home to Tainan and won't be back until Sunday or whatever, but that software is on a CD at my other home. If you don't hear from me in a few days--I'll be back.) I'll bring it for you and tell you how to set it up. I've done it a million times.... Maybe someone else can help you in that time.
Once you start pppoe, your ifconfig will show LO "loopback", "eth0", AND "ppp0" with packets in/packets out, etc. Let me know what's going on within the next 11 hours or so and maybe I can help you. After that, it will be Sunday nite before I can help you out.
Sorry for the delay--I know you're dying to try out your new setup!!!!
Thanks again for your suggestions. Here's some more information:
I looked at the settings in windows and found in the Network Connections that there are two items:
These are the LAN and the 1394 connection, with data described below.
Local Area Connection
Connected, Firewalled
NVIDIA nForce MCP Networking Controller
Packets sent and received, 100Mbps
This connection uses the following items:
Client for Microsoft Networks
File and Printer Sharing for Microsoft Networks
QoS Packet Scheduler
Internet Protocol (TCP/IP)
1394 Connection
Connected, Firewalled
1394 Net Adapter
No packets sent or received
I think the Yahoo!BB Trio3G modem does not use PPPoE.
I read this in a document on the web in Japanese so I wasn't 100% certain, but I guess the absence of a PPPoE item in the LAN controller settings supports this fact...
I did try connecting to the modem/router using http:192.168.0.1 and various other similar IP addresses that I got off the web.
I will try again to find out the IP and port number for the device.
In the meantime I will also experiment with trying to set up PPPoE just in case, and see if I can find something like pppoed.
There was a PPPoE option in the SuSE setup utility, Yast, but neither that, or the other options have yielded any success so far.
I'm very much grateful for your help. Sorry I didn't post for the last few hours, I was sleeping, and just got up again this morning!
Thanks for help Shelton. I tried your suggested ifconfig commands.
The first one entered with no errors (no response at all), but when I tried the ifconfig assign command I got the error:
assign : Host name lookup failure
I did manage to ping the modem as I described above, after setting some IP for it such as 192.168.0.1 using ifconfig. -Although that didn't seem to be a very reassuring result since whatever IP I put in there seemed to ping successfully, and nothing else would -including the IP addresses that pinged ok previously after setting them with ifconfig.
One problem I have, is that I don't actually know the IP address of the modem. I've read the manuals thoroughly and searched the web extensively, and I can't find any clue. It's a modem that comes as part of the Yahoo!BB package, and there doesn't seem to be much information available on it. I found out that it is a "bridge type" modem though.
I'm not sure what that is...
I tried many different IP addresses for the device, 192.168.0.1, 0.1, 10.0, 0.10 etc etc and pretty much all the similar IPs that I found on the web. I wonder if there's a way to find out the IP of the device in windows, where it is working properly? -I tried the IP guesses with the ifconfig assign command, and in a browser in linux and windows, all of which gave me a negative result.
I'm not sure if this document is really much use, since it is in Japanese and merely shows how to connect the modem, but just in case here's a TRIO-3G modem page:
Ok, I ran nslookup. I got some messages about it being out of date so I also ran the suggested "dig" too. First I ran ifconfig to reveal my current settings as you can see in the session below. The settings seemed to be wrong, so I ran dhcpcd and got slightly more information out of nslookup and dig. Lastly, I ran ifconfig and fpinged the IP.
Does this output reveal anything?
Regarding the setup in windows, I didn't have to input any username or password, anbd it was just a case of:
Control panel->
nework and internet connections->
setup or change your internet connection->
connections tab->
setup button->
connect to the internet button->
setup my connection manually button->
connect using a broadband connection that is always on button->
finish
---------------------------------------->
linux shell session results:
linux:/home/josh # nslookup eth0
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
;; connection timed out; no servers could be reached
linux:/home/josh # dig eth0
; <<>> DiG 9.2.3 <<>> eth0
;; global options: printcmd
;; connection timed out; no servers could be reached
<---------------------------------------------------
Here I ran dhcpcd and repeated the nslookup and dig
linux:/home/josh # nslookup eth0
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server: 218.176.253.97
Address: 218.176.253.97#53
Here's an idea Josh. Since you didn't have to do any uname/pword input in windows, it might be safe to say that the modem has all the information for your internet connection. Now I run Linux Slackware 10 and the only command I use to setup my networking (in the case my linux is a client, not a gateway server) is:
netconfig
Try typing that. Put in your hostname(whatever you want to call your box) and then when it asks you how you want to get your IP address, choose DHCP. That should do it.
Now I'm not 100% about this command because I've only seen SuSE in passing. I've never really sat down to play with it. From what I hear, it's a pretty good version of Linux. Regardless of how good it is, it may or may not have the package "netconfig". If it does, I have a feeling that this will solve your problems.
Now I will say judging from the output that you just pasted, it looks to me like you've already got a connection going. I'm only suggesting the netconfig tool because it will do the ifconfig stuff for you everytime you boot.
If you do have it, run it and then reboot to be safe. Then just log in and:
If you get a ping reply, then you're connected and can commence using your web-browser in X. (you can also use 'lynx' in the command console, but it's a nasty text-based web-browser [assuming you have 'lynx' installed])
Give it a shot and let me know what the outcome is.
I don't have netconfig in my SuSE distribution. I tried to find an rpm but I didn't find one for SuSE. I suspect that it may not be supported in SuSE. For the time being though, I'll see if I can find anything similar -although you are supposed to be able to set up your network with the Yast2 setup utility... which is specific to SuSE as far as I know. No matter which option I pick in the SuSE setup utilities though, I always get asked for a username and password at some point...
As for the modem, it seems to be manufactured specifically for the Japanese Yahoo!BB service. It has Yahoo!BB printed on it. It has an AMBIT Microsystems corp sticker on the bottom. It's called the Trio3-G, or ƒgƒŠƒI‚R-G in Japanese. I could find precious little information on it using google...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.