Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
why 2 default routes?
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
travis
n00b
n00b


Joined: 14 Aug 2002
Posts: 51

PostPosted: Thu May 12, 2005 5:58 pm    Post subject: why 2 default routes? Reply with quote

eth0 = dhcp
eth1 = dhcp

2 default gw routes are being created. How can I prevent eth1 from receiving a default route?
Back to top
View user's profile Send private message
Slurp53
Apprentice
Apprentice


Joined: 14 Jun 2002
Posts: 255
Location: Iowa

PostPosted: Thu May 12, 2005 6:08 pm    Post subject: Reply with quote

Are both cards receiving their information from the same DHCP server?

:?: :?:
_________________
"Welcome to the Pleasuredome" -- Frankie Goes to Hollywood
Back to top
View user's profile Send private message
travis
n00b
n00b


Joined: 14 Aug 2002
Posts: 51

PostPosted: Thu May 12, 2005 6:11 pm    Post subject: No Reply with quote

eth1 is getting an address from a private network

Slurp53 wrote:
Are both cards receiving their information from the same DHCP server?

:?: :?:
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu May 12, 2005 6:29 pm    Post subject: Reply with quote

So eth0 is your internet connection ?

Please post your routing table:
Code:
route -n


Gentoo will use whatever route works, so as long as the internet default route always gets selected first you should have no problems.

Problems only occur when it's trying to route through your LAN when you do have an internet connection.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
travis
n00b
n00b


Joined: 14 Aug 2002
Posts: 51

PostPosted: Thu May 12, 2005 6:38 pm    Post subject: output of starting eth0 then eth1 Reply with quote

Code:
sh-2.05b# /etc/init.d/net.eth0 start
 * Bringing eth0 up via DHCP...                                                           [ ok ] *   eth0 received address 10.115.3.121
sh-2.05b# /etc/init.d/net.eth1 start
 * Bringing eth1 up via DHCP...                                                           [ ok ] *   eth1 received address 172.16.0.250
sh-2.05b# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.115.3.0      0.0.0.0         255.255.255.0   U     0      0        0 eth0
172.16.0.0      0.0.0.0         255.255.255.0   U     0      0        0 eth1
127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
0.0.0.0         172.16.0.1      0.0.0.0         UG    0      0        0 eth1
0.0.0.0         10.115.3.254    0.0.0.0         UG    0      0        0 eth0


the
Code:
0.0.0.0         172.16.0.1      0.0.0.0         UG    0      0        0 eth1
line is fubar.
Back to top
View user's profile Send private message
travis
n00b
n00b


Joined: 14 Aug 2002
Posts: 51

PostPosted: Thu May 12, 2005 6:56 pm    Post subject: SOLVED Reply with quote

dhcpcd was adding the default route for eth1
To fix I modified /etc/conf.d/net and added this line
Code:
dhcpcd_eth1="-G"


Thanks for your time
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