On Tue, Jul 24, 2012 at 01:13:29AM +0200, frantisek holop wrote:
> what i do: insert the usb wifi (/etc/hostname.urtwn0
> contains the correct network data), i disconnect the
> ethernet cable, route -n flush, ifconfig re0 down,
> sh /etc/netstart.

I would recommend 'ifconfig re0 down delete', and do that before
flushing the routing table.  I would also make sure the dhclient
process for that interface was dead.

> $ sudo route -n flush
> default              10.10.10.1           done
> default              10.10.10.1           done

Why do you have two default routes?  I also do not see the deletion of
10.10.10.0/24 or any route containing that subnet.

> question: why don't the re0 lines disappear from the inet6 lines
> after ifconfig re0 down?

Most likely because you didn't delete the addresses from the re0
interface.

> $ sudo sh /etc/netstart
> DHCPREQUEST on urtwn0 to 255.255.255.255 port 67
> DHCPREQUEST on urtwn0 to 255.255.255.255 port 67
> DHCPACK from 10.10.10.1 (00:22:bb:aa:aa:cc)
> bound to 10.10.10.136 -- renewal in 604780 seconds.
> 
> $ route -n show
> Routing tables
> 
> Internet:
> Destination        Gateway            Flags   Refs      Use   Mtu  Prio Iface
> default            10.10.10.1         GSP        4        6     -     8 re0  
>                                                                         ^^^
> default            10.10.10.1         GS         0        0     -     8 re0  
>                                                                         ^^^

You shouldn't have two default routes with the network you're
describing.  Make sure you don't have a /etc/mygate file laying around.

Reply via email to