Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pesky problem with eth0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Dave0
n00b
n00b


Joined: 12 Dec 2002
Posts: 20

PostPosted: Sun Dec 15, 2002 6:52 am    Post subject: Pesky problem with eth0 Reply with quote

At boot eth0 loads just fine and ifconfig says it is up and running but if I try to ping or connect to internet I can't. But if I do the /sbin/route add -net default ... (etc) it works. Anyone know what the problem is, or even if there is a way to make a script run the /sbin/route add command everytime at boot? Also it doesnt matter if the driver for my NIC is put as a module or built into kernel, same problem.

Thanks
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sun Dec 15, 2002 7:48 am    Post subject: Reply with quote

Is /etc/conf.d/net set up correctly?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Dave0
n00b
n00b


Joined: 12 Dec 2002
Posts: 20

PostPosted: Sun Dec 15, 2002 5:18 pm    Post subject: Reply with quote

Yeah it is setup correctly, here it is for you to look at if you can find anything odd...

Code:

# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="172.16.1.10 broadcast 172.16.255.255 netmask 255.255.0.0"
iface_eth1="172.16.1.10 broadcast 172.16.255.255 netmask 255.255.0.0"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#dhcpcd_eth0="..."

# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"

# NB:  The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly.  Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"


# For setting the default gateway
#
gateway="eth0/172.16.0.254"
gateway="eth1/172.16.0.254"


I have eth1 because when I first started gentoo install from live cd it was picking up my onboard lan as eth0, which I dont use.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Dec 15, 2002 7:31 pm    Post subject: Reply with quote

Moved from OTG.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sun Dec 15, 2002 8:51 pm    Post subject: Reply with quote

Can you try disabling eth1? I don't see how you can have the same IP address on two different interfaces: how would the kernel know which interface to send packets out on?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Dave0
n00b
n00b


Joined: 12 Dec 2002
Posts: 20

PostPosted: Sun Dec 15, 2002 9:56 pm    Post subject: Reply with quote

Actually I had to have eth1 setup earlier when I first installed because eth0 was set to my onboard lan, which isnt even connected. But for some reason after initial install and reboot eth1 became eth0, so now I don't even load up eth1 at boot, I just have to load eth0. I just tried commenting it out and it doesnt do anything either way, still the same problem. Is there anyway I can have script load up at boot that would just exectute the /sbin/route... command?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Mon Dec 16, 2002 1:24 am    Post subject: Reply with quote

Did you even comment out the extra eth1 gateway line at the bottom? I think that's the one that's causing you problems, because it's saying that packets should go out over eth1.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum