Index: en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml =================================================================== --- en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml +++ en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml @@ -3719,51 +3719,58 @@ security reasons, while maintaining the ability to transfer data over the wireless connection. - This is achieved by overriding the physical wireless - interface's MAC address with that of the - Ethernet interface. + This is achieved by overriding the Ethernet interface's + MAC address with that of the wireless + interface. In this example, the Ethernet interface, - bge0, is the master and the + re0, is the master and the wireless interface, wlan0, is - the failover. The wlan0 device - was created from iwn0 wireless - interface, which will be configured with the - MAC address of the Ethernet interface. + the failover. The wlan0 + interface was created from the + ath0 physical wireless interface, + and the Ethernet interface will be configured with the + MAC address of the wireless interface. First, determine the MAC address of the - Ethernet interface: + wireless interface: - &prompt.root; ifconfig bge0 -bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 - options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4> - ether 00:21:70:da:ae:37 - inet6 fe80::221:70ff:feda:ae37%bge0 prefixlen 64 scopeid 0x2 - nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> - media: Ethernet autoselect (1000baseT <full-duplex>) - status: active + &prompt.root; ifconfig wlan0 +wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 + ether b8:ee:65:5b:32:59 + groups: wlan + ssid Bbox-A3BD2403 channel 6 (2437 MHz 11g ht/20) bssid 00:37:b7:56:4b:60 + regdomain ETSI country FR indoor ecm authmode WPA2/802.11i privacy ON + deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 60 + protmode CTS ampdulimit 64k ampdudensity 8 shortgi -stbctx stbcrx + -ldpc wme burst roaming MANUAL + media: IEEE 802.11 Wireless Ethernet MCS mode 11ng + status: associated + nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> - Replace bge0 to match the - system's Ethernet interface name. The + Replace wlan0 to match the + system's wireless interface name. The ether line will contain the MAC address of the specified interface. Now, change the MAC address of the - underlying wireless interface: + Ethernet interface: - &prompt.root; ifconfig iwn0 ether 00:21:70:da:ae:37 + &prompt.root; ifconfig re0 ether b8:ee:65:5b:32:59 - Bring the wireless interface up, but do not set an - IP address: + Bring the wireless interface up (replacing + FR with your own 2-letter country + code), but do not set an IP + address: - &prompt.root; ifconfig wlan0 create wlandev iwn0 ssid my_router up + &prompt.root; ifconfig wlan0 create wlandev ath0 country FR ssid my_router up - Make sure the bge0 interface + Make sure the re0 interface is up, then create the &man.lagg.4; interface with - bge0 as master with failover to + re0 as master with failover to wlan0: - &prompt.root; ifconfig bge0 up + &prompt.root; ifconfig re0 up &prompt.root; ifconfig lagg0 create -&prompt.root; ifconfig lagg0 up laggproto failover laggport bge0 laggport wlan0 +&prompt.root; ifconfig lagg0 up laggproto failover laggport re0 laggport wlan0 The virtual interface should look something like this: @@ -3771,12 +3778,13 @@ &prompt.root; ifconfig lagg0 lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8<VLAN_MTU> - ether 00:21:70:da:ae:37 - media: Ethernet autoselect - status: active - laggproto failover + ether b8:ee:65:5b:32:59 + laggproto failover lagghash l2,l3,l4 + laggport: re0 flags=5<MASTER,ACTIVE> laggport: wlan0 flags=0<> - laggport: bge0 flags=5<MASTER,ACTIVE> + groups: lagg + media: Ethernet autoselect + status: active Then, start the DHCP client to obtain an IP address: @@ -3787,12 +3795,12 @@ following entries to /etc/rc.conf: - ifconfig_bge0="up" -wlans_iwn0="wlan0" + ifconfig_re0="ether b8:ee:65:5b:32:59" +wlans_ath0="wlan0" ifconfig_wlan0="WPA" -create_args_wlan0="wlanaddr 00:21:70:da:ae:37" +create_args_wlan0="country FR" cloned_interfaces="lagg0" -ifconfig_lagg0="up laggproto failover laggport bge0 laggport wlan0 DHCP" +ifconfig_lagg0="up laggproto failover laggport re0 laggport wlan0 DHCP"