View previous topic :: View next topic |
Author |
Message |
Nat Fairbanks n00b
Joined: 27 Jan 2005 Posts: 1
|
Posted: Thu Jan 27, 2005 7:10 am Post subject: dhcp, ifconfig_fallback and setting a gateway |
|
|
I'm trying to set up an ifconfig_fallback for times when dhcp might not be available. I've read https://forums.gentoo.org/viewtopic.php?t=163212 and that was very helpful, but I was wondering how to set up a fallback gateway? This is my /etc/conf.d/net
Code: | ## dhcp
ifconfig_eth0=( "dhcp" )
dhcpcd_eth0="-d -t 10"
ifconfig_fallback_eth0=( "192.168.0.100 broadcast 192.168.0.255 netmask 255.255.255.0" ) |
From looking through /etc/init.d/net.eth0 it appears that if I set
Code: | routes_eth0=( "default gw 192.168.0.1" ) |
then that gateway would always be used for eth0, even if dhcpcd set up another gateway already. Is there a way to specify a fallback gateway?
Thanks,
-Nat |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Thu Jan 27, 2005 9:48 am Post subject: |
|
|
At present we don't support that
It is in my todo list though
However, you can just add routes to the routes_eth0 variable - if they error the interface still comes up correctly. |
|
Back to top |
|
|
|
|
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
|
|