On Mon, 2006-07-10 at 13:43 +1000, Christopher Vance wrote: > I have a machine running Dapper with two interfaces, one wired, one > wireless. > > I do not seem to be able to work out the 'approved' way to set a > default route on the wired interface. > > Other Dapper machines with only one interface have no problem applying > the default route they get from dhcp, but not this one. >
I've had this same problem since hoary. If the wireless card exists (pmcia in my case) I end up with two default routes and the network fails. I'm using an atheros card in case that matters. I mostly manually kill the ethernet config when I'm using wireless and the problem is solved. Actually, you only need to delete the ethernet route, but either way it's not very tidy. I've asked here and elsewhere about the problem, but I never seem to get a response. > I tried changing dhclient.conf to make it require a routers entry, but > tcpdump doesn't seem to show this happening. > > I then tried changing /etc/network/interfaces to use a static entry, > and the gateway specified there doesn't get applied either. > > I could try ripping out the wireless card, but I'd rather leave it > installed as a backup for when the wired connection takes a break. > > I could add a new file to /etc/init.d, but that seems to be overkill > for something that should be a single line entry somewhere (but > where?). > > Why won't it just (*&^ do what I say? > > What is the 'right' way to do this for Ubuntu/Debian. > > My preferred approach is to make it happen with dhcp, so I don't have > to change the machine next time I renumber or rewire. > > I'm willing to go static if necessary, but it has to persist across > upgrades. > > -- > Christopher Vance -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html