On Sun, Dec 28, 2008 at 02:04:51PM +0100, Michael wrote: > Hi, > > I've tried using the priority option with the default route (gets > assigned using dhcp) but it only works partially. Is that the intented > behaviour (as man ifconfig only speaks about static routes) or a bug? > > # cat /etc/hostname.bge0 > media autoselect priority 1 up > dhcp NONE NONE NONE > rtsol > > # cat /etc/hostname.iwi0 > nwid wrap bssid aa:bb:cc:dd:ee:ff > nwkey 0x00000000000000000000000000 > media autoselect priority 2 up > !/sbin/ifconfig ``\$if'' chan >/dev/null 2>&1 > dhcp NONE NONE NONE > rtsol > > > When the system is booted route shows the default route from iwi0... > which is only priority 2... shouldn't the default route be from bge0? > > However, if I pull the cable from bge0 and plug it back in I get the > bge0 default route. Changing works here... but if I pull the cable > again, the default route isn't changed back to the one from iwi0. > > Working as intended or bug? >
There is one piece missing and that's a smarter dhclient script as it currently removes the default route even if it was not inserted by dhclient. I have a diff to fix this issue that I will send out in the next days or hours. -- :wq Claudio