View previous topic :: View next topic |
Author |
Message |
wswartzendruber Veteran
Joined: 23 Mar 2004 Posts: 1261 Location: Idaho, USA
|
Posted: Sun Dec 03, 2006 4:16 pm Post subject: Configuring Route Precedence |
|
|
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 |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Sun Dec 03, 2006 4:58 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|