LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   help connecting to the net (https://www.linuxquestions.org/questions/linux-newbie-8/help-connecting-to-the-net-187193/)

bosewicht 05-29-2004 12:04 AM

help connecting to the net
 
below is my rc.conf

lo="lo 127.0.0.1"
eth0="eth0 192.168.1.101 netmask 255.255.255.0 broadcast 192.168.0.255"
#eth0="dhcp"
INTERFACES=(lo eth0)

gateway="default gw 192.168.1.1"
ROUTES=(gateway)

when i type ifconfig all i get is info for lo, but nothing for eth0
for my nameserver i have copied what is on this computer. anyone have any idea why i can't connect

bosewicht 05-29-2004 12:16 AM

i can't hit the router either. it says "network is unreachable"

dretay 05-29-2004 12:51 AM

You need to bring the device up
 
I think what you have forgotten to do is to bring the network interface up. As root, type in something like "ifconfig eth0 up". This should activate the network interface. At this point you may need to re-establish the gateway through the following command: "route add default gw 192.168.1.1". Once those two commands are issued you should be good to go.

bipul4b 05-29-2004 01:02 AM

Hi,

as you post your file rc.conf

lo="lo 127.0.0.1"
eth0="eth0 192.168.1.101 netmask 255.255.255.0 broadcast 192.168.0.255"
#eth0="dhcp"
INTERFACES=(lo eth0)

gateway="default gw 192.168.1.1"
ROUTES=(gateway)


please change broadcast address
192.168.0.255

new address 192.168.1.255

and restart network or computer


bye

:newbie:

bosewicht 05-29-2004 01:09 AM

actually what it was i needed to "modprobe tulip" and "alias eth0 tulip" in my modules.conf .....i am feeling pretty stupid right now


All times are GMT -5. The time now is 01:36 PM.