View Single Post
  #6   (View Single Post)  
Old 26th July 2009
gosha gosha is offline
Spam Deminer
 
Join Date: Jun 2008
Location: China
Posts: 256
Default

Well, the initial goal was to simply have wireless work, but for some strange reason, it does work only through trunk. Which is fine for me.
From the trunk man pages:
Code:
     The following example uses an active failover trunk to set up roaming be-
     tween wired and wireless networks using two network devices.  Whenever
     the wired master interface is unplugged, the wireless failover device
     will be used:

           # ifconfig em0 up
           # ifconfig ath0 nwid my_net up
           # ifconfig trunk0 trunkproto failover trunkport em0 trunkport ath0 \
                   192.168.1.1 netmask 255.255.255.0
My understanding is: when the wire is plugged in, the system will automatically use em0, when it is unplugged, it will automatically use iwn0.
And it does switch, but em0 hangs there looking up.

Quote:
in the ifconfig -a you posted neither em0 or iwn0 have an IP addre
As you see from the man page, the ip address is given only to the trunk interface, and the "real" nics use that. This is how I understand it.
Reply With Quote