LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   home network question (https://www.linuxquestions.org/questions/linux-networking-3/home-network-question-72782/)

sujte 07-14-2003 10:15 PM

home network question
 
I have a home network with three desktops, MAC, XP, and Linux. These are all connected to a small hub, which is connected to an ADSL modem. The modem works fine from the MAC, and also work fine in WIN98 when the Linux machine was a WIN98 box (I have not tested the XP yet). However, I can't get to the modem from the Linux box.

I cannot seem to get the Linux box to ping the router (10.0.0.2) or the MAC(10.0.0.8). I have set the MAC to get the IP from DHCP, and from what I can tell the ADSL modem is what provides the IP to the MAC.

The eth0 activation works fine and ifconfig returns 10.0.0.14 for inet addr, 10.0.0.255 as Bcast and 255.255.255.0 as Mask. I hard-coded the 10.0.0.14 ip because when I selected the DCPH, the ethernet card could not be activated.
I tried setting the DHCP address to 10.0.0.2 (that of the ADSL modem) on the Linux box but received an error activating eth0.

I must not have something configured correctly. Would someone please help me out?

Thanks.:)

emetib 07-14-2003 11:32 PM

your router is giving the dhcp, and the hub is receiving it and splitting it up how the router wants it to be. have the linux box set to 10.0.0.3 and give that a go.

cheers.

davidschob 07-15-2003 11:52 AM

The router is acting as a local gateway to the Internet... If you can't get DHCP running (which will automatically plug in the neccisary gateway info) you're going to have to put the router's IP address in as the gateway. You're close!

jpohara 07-15-2003 01:50 PM

you may not have your machine pointing to your gateway device.

try the following command (root user):


route add default gw 10.0.0.xx eth0 where xx is the ip address for your linux box (whatever you hard code it to be)

and let dhcp assign the ip address...don't assign your eth0 to the ip address of the router....that's bad!


All times are GMT -5. The time now is 09:16 PM.