LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot connect to internet (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-connect-to-internet-639926/)

turburator 05-05-2008 12:12 AM

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

yowi 05-05-2008 03:10 AM

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.

a.almeida 05-05-2008 03:15 AM

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".

dr_agon 05-05-2008 09:32 AM

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.

turburator 05-07-2008 03:46 AM

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

dr_agon 05-08-2008 09:03 AM

Quote:

Originally Posted by turburator (Post 3145433)
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 don't quite understand how you dial from XP when DSL modem is connected to the switch? Do you have ethernet connection from you DSL modem?
Quote:

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.
Try to configure each computer with static IP on the LAN side. Note that XP changes the IP of LAN interface when you turn "internet connection sharing" on (it is described in Widows help). Check the netmask and default gateway for each network interface.
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.

seraphim172 05-08-2008 02:55 PM

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

paragkalra 05-09-2008 01:25 AM

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.

archtoad6 05-21-2008 07:58 AM

turburator,
  • Please resolve the 2 contradictions pointed out by dr_agon:
    1. You don't dial an ADSL connection. -- Your ISP may force you to use PPPoE, but that isn't dialing.
    2. You can't dial anything from a box, XP or other, that is connected to router; unless it has a separate (old-fashioned, true) dial-up modem, which I doubt.
    (paragkalra, please take note, & use proper terminology.)

  • As seraphim172 points out, you need to set up DHCP serving to your LAN on your D-Link.

  • You also also need to make sure that its DHCP client is getting an IP address from your ISP. However, if you are getting any 'Net connection, this is probably OK.

  • Please post the model # of your D-Link & a link to the mfr's info on it.

archtoad6 06-06-2008 11:39 AM

ping . . .


All times are GMT -5. The time now is 06:22 PM.