Cannot connect to internet
Hi,
I am a newbie and I have a problem of getting my fedora box connected to internet via LAN. I have the broadband connection connected to my winxp desktop and I use D-Link ethernet switch to connect to linux box. The linux box can detect my winxp but when I cannot ping to any other server. on typing the command "ifconfig -a" I get the following:: eth0 Link encap:Ethernet HWaddr 00:02:55:FF:AE:AE inet addr:192.168.0.254 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::202:55ff:feff:aeae/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2258 errors:0 dropped:0 overruns:0 frame:0 TX packets:2746 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:224227 (218.9 KiB) TX bytes:747820 (730.2 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:27 errors:0 dropped:0 overruns:0 frame:0 TX packets:27 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2248 (2.1 KiB) TX bytes:2248 (2.1 KiB) sit0 Link encap:IPv6-in-IPv4 NOARP MTU:1480 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Please help me in connecting to internet. Thanks Gary |
Have you set up "internet connection sharing" or whatever they call it now on the XP machine?
The output of "route" from the linux machine may be helpful. Section 25 of Rute should fill in your knowledge. |
Internet access problems
I guess what you need to do depends on the distribution you're using. I use Suse Linux and sometimes have problems accessing the internet. The solution I found is to open the system console (you have to give the "root" password to get in) and type the instruction "rcnetwork restart".
|
The best would be to connect your broadband network to the switch, but I guess it is not possible for you.
Check which network on the XP box you marked as "shared" because the help was little confusing for me. See http://support.microsoft.com/kb/306126 Make sure you have a default route on the linux system pointing to the XP box - it is your gateway. Try to ping the next computer after the XP - this is the gateway address provided by your ISP and you can get its IP number from the XP setup. If you can do it, than you have internet, but you may be missing DNS setup. |
Hi Guys,
Thanks for all your responses. This is what my current situation is I have a dsl modem connected to DLink Ethernet switch and my xp and linux box is connected to this ehternet switch. I dial broadband connection via my win xp. I have reached a situation wherein If I allow network connections to be shared on my xp then I can get linux box also connected to internet but when this happens I no longer can ping linux box from my winxp and vice versa. I am sure it is some DNS settings issue but my novice talent is not helping me proceed further. Thanks Gary |
Quote:
Quote:
Check your firewall options - maybe you just blocked ICMP packets? Use IP numbers for ping instead of names to rule out DNS problems. If you can ping the DNS server, then try to use names. |
web interface
My DLink Ethernet switch has an internal web interface that has all settings to connect to the Internet and provides DHCP services for connected services.
The IP number of the Ethernet switch has to be set as the gateway for the connected computer. You also need to set proper DNS IP numbers to get access to the outside world. Why do you have to connect by hand from XP? Do you have an application for this on XP or are using the web interface anyway? Linux Archive |
Hello turburator,
I had similar kind of setup and this is how both my boxes uses to access internet. I too had adsl broadband connnection. My ISP provided me with username & password which I used to dial up. Now coming to the issue. I enabled always on internet connection in my D-Link adsl modem which meant that modem will automatically dial up and get connected to internet whenever it was powered on. (Just google and u will get tons of urls explaining always on dial up connection). So my modem used to get a dynamic IP from the ISP. This modem was connected to the switch (Netgear). Now the trick here is to make your switch act as a DHCP server which will assign IP address to both the boxes. Thats it. There is no need to share your network connections on the windows box. I would also suggest you take help of your Modem & Switch vendor support. Let me know how it goes. |
turburator,
|
ping . . .
|
All times are GMT -5. The time now is 06:22 PM. |