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.
Hi! I am a newbie.
I am unable to connect to the net. My Linux system (I use Suse 8.2) has the following setup Linuxsystem --> Hub --> Router --> Modem. Win98 can access Linux system as a Samba server and the Linux system can access win98. What do I need to do to connect to the net?
Thanks in advance.
Go to your windows 98 machine and check its network settings, it should have set gateway (= router) to something (most probably 192.168.2.1). Then u will know IP address of the router, try to ping it from your linux machine, if it works add a line "nameserver 192.168.2.x" to your resolv.conf and add gateway as well (that route command i mentioned before). Then you can try to ping some server in the internet to see if it works.
When I typed route I got the following:
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
default 192.168.2.1 0.0.0.0 UG 0 0 0 eth0
Try "ping 192.168.2.1"
if it works try "ping 64.179.4.146"
this is IP address of linuxquestions, then we can see if its problem with dns settings or something else.
When I typed ping 192.168.2.1 I got
PING 192.168.2.1 (192.168.2.1) from 192.168.2.222 : 56(84) bytes of data.
64 bytes from 192.168.2.1: icmp_seq=1 ttl=30 time=3.13 ms
64 bytes from 192.168.2.1: icmp_seq=2 ttl=30 time=1.63 ms
64 bytes from 192.168.2.1: icmp_seq=3 ttl=30 time=1.63 ms
64 bytes from 192.168.2.1: icmp_seq=4 ttl=30 time=1.63 ms
64 bytes from 192.168.2.1: icmp_seq=5 ttl=30 time=1.63 ms
64 bytes from 192.168.2.1: icmp_seq=6 ttl=30 time=1.63 ms
64 bytes from 192.168.2.1: icmp_seq=7 ttl=30 time=1.64 ms
64 bytes from 192.168.2.1: icmp_seq=8 ttl=30 time=1.62 ms
64 bytes from 192.168.2.1: icmp_seq=9 ttl=30 time=1.62 ms
64 bytes from 192.168.2.1: icmp_seq=10 ttl=30 time=1.62 ms
64 bytes from 192.168.2.1: icmp_seq=11 ttl=30 time=1.63 ms
--- 192.168.2.1 ping statistics ---
11 packets transmitted, 11 received, 0% loss, time 10096ms
rtt min/avg/max/mdev = 1.625/1.769/3.137/0.432 ms
When I typed ping 64.179.4.146 I got
PING 64.179.4.146 (64.179.4.146) from 192.168.2.222 : 56(84) bytes of data.
64 bytes from 64.179.4.146: icmp_seq=1 ttl=45 time=387 ms
64 bytes from 64.179.4.146: icmp_seq=2 ttl=45 time=387 ms
64 bytes from 64.179.4.146: icmp_seq=3 ttl=45 time=387 ms
64 bytes from 64.179.4.146: icmp_seq=4 ttl=45 time=387 ms
64 bytes from 64.179.4.146: icmp_seq=5 ttl=45 time=386 ms
64 bytes from 64.179.4.146: icmp_seq=6 ttl=45 time=388 ms
64 bytes from 64.179.4.146: icmp_seq=7 ttl=45 time=388 ms
64 bytes from 64.179.4.146: icmp_seq=8 ttl=45 time=388 ms
64 bytes from 64.179.4.146: icmp_seq=9 ttl=45 time=387 ms
64 bytes from 64.179.4.146: icmp_seq=10 ttl=45 time=388 ms
64 bytes from 64.179.4.146: icmp_seq=11 ttl=45 time=387 ms
64 bytes from 64.179.4.146: icmp_seq=12 ttl=45 time=431 ms
--- 64.179.4.146 ping statistics ---
13 packets transmitted, 12 received, 7% loss, time 12117ms
rtt min/avg/max/mdev = 386.913/391.454/431.582/12.141 ms
Well it proves that you can connect to the internet but you have problem with DNS settings. There are a few options what can be wrong:
- can u check again if "name server 192.168.2.1" has been added correctly to /etc/resolv.conf? You can also put '#' (=make it a comment) before "domain mylan.com" in it, I dont think there is a purpose for having it there.
- you can also check settings on W98 machine and see what name servers it uses / and have the same in resolv.conf - maybe your router doesnt work as DNS proxy and u have to enter name servers of your ISP.
After adding the two IP when I typed cat /etc/resolv.conf I got:
nameserver 202.54.12.163
nameserver 202.54.12.3
nameserver 192.168.2.1
domain mylan.com
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.