View previous topic :: View next topic |
Author |
Message |
travis n00b
Joined: 14 Aug 2002 Posts: 51
|
Posted: Thu May 12, 2005 5:58 pm Post subject: why 2 default routes? |
|
|
eth0 = dhcp
eth1 = dhcp
2 default gw routes are being created. How can I prevent eth1 from receiving a default route? |
|
Back to top |
|
|
Slurp53 Apprentice
Joined: 14 Jun 2002 Posts: 255 Location: Iowa
|
Posted: Thu May 12, 2005 6:08 pm Post subject: |
|
|
Are both cards receiving their information from the same DHCP server?
_________________ "Welcome to the Pleasuredome" -- Frankie Goes to Hollywood |
|
Back to top |
|
|
travis n00b
Joined: 14 Aug 2002 Posts: 51
|
Posted: Thu May 12, 2005 6:11 pm Post subject: No |
|
|
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 |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Thu May 12, 2005 6:29 pm Post subject: |
|
|
So eth0 is your internet connection ?
Please post your routing table:
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 |
|
|
travis n00b
Joined: 14 Aug 2002 Posts: 51
|
Posted: Thu May 12, 2005 6:38 pm Post subject: output of starting eth0 then eth1 |
|
|
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 |
|
|
travis n00b
Joined: 14 Aug 2002 Posts: 51
|
Posted: Thu May 12, 2005 6:56 pm Post subject: SOLVED |
|
|
dhcpcd was adding the default route for eth1
To fix I modified /etc/conf.d/net and added this line
Thanks for your time |
|
Back to top |
|
|
|