Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Configuring Route Precedence
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
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Sun Dec 03, 2006 4:16 pm    Post subject: Configuring Route Precedence Reply with quote

I have three network interfaces that I use and I want the route precedence to be as such:

1. ppp0
2. wlan0
3. eth0

Is there a way to set this up?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sun Dec 03, 2006 4:58 pm    Post subject: Reply with quote

You give the most preferred route a lower metric and the least preferred route a high metric.
Like so in /etc/conf.d/net

Code:
metric_ppp0=0
metric_wlan0=2000
metric_eth0=5000


baselayout will automatically assign metrics based on connection type anyway, these are the defaults that affect you

normal 0
wireless + 2000

Actually, I lie about metric_ppp0 - it will only be used for routes added by baselayout. To get ppp to be the most preferred route, simply give metrics of at least 1 to all other routes :)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
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