Subject: Re: changing default network interfaces
To: Felix Zaslavskiy <felix@students.poly.edu>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: netbsd-users
Date: 03/10/2003 18:12:46
On Mon, Mar 10, 2003 at 12:16:39PM -0500, Felix Zaslavskiy wrote:
> I was just wondering .
> I recently stuck a cardbus NIC someone game me and it was configured as 
> xi0 in addition to the other NIC i already had.
> 
> What i wanted to do was to switch the default interface from my othen 
> NIC to the one i just inserted.
> So the nic i wanted to switch from is ex0 and i wanted to switch to 
> using xi0
> i already had ex0 configutred on the network , This is what i did
> ifconfig ex0 down
> route flush
> ifconfig xi0 up
> dhclient xi0
> 
> I thought this would do the trick but after doing netstat -r i had 
> something like this
> 192.168.0.0  default     Iface ex0

So how about

route delete default
/etc/rc.d/dhclient stop
dhclient xi0

?

Cheers,

Patrick