Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcp, ifconfig_fallback and setting a gateway
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
Nat Fairbanks
n00b
n00b


Joined: 27 Jan 2005
Posts: 1

PostPosted: Thu Jan 27, 2005 7:10 am    Post subject: dhcp, ifconfig_fallback and setting a gateway Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Jan 27, 2005 9:48 am    Post subject: Reply with quote

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
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