From owner-p4-projects@FreeBSD.ORG Wed Jan 13 12:46:41 2010 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id C0E2A106568F; Wed, 13 Jan 2010 12:46:41 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 852041065670 for ; Wed, 13 Jan 2010 12:46:41 +0000 (UTC) (envelope-from rene@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 716D98FC18 for ; Wed, 13 Jan 2010 12:46:41 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o0DCkf3E047815 for ; Wed, 13 Jan 2010 12:46:41 GMT (envelope-from rene@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o0DCkf5n047811 for perforce@freebsd.org; Wed, 13 Jan 2010 12:46:41 GMT (envelope-from rene@FreeBSD.org) Date: Wed, 13 Jan 2010 12:46:41 GMT Message-Id: <201001131246.o0DCkf5n047811@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to rene@FreeBSD.org using -f From: Rene Ladan To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 173064 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jan 2010 12:46:42 -0000 http://p4web.freebsd.org/chv.cgi?CH=173064 Change 173064 by rene@rene_self on 2010/01/13 12:46:22 IFC Affected files ... .. //depot/projects/docproj_nl/en_US.ISO8859-1/articles/contributors/contrib.additional.sgml#44 integrate .. //depot/projects/docproj_nl/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml#19 integrate .. //depot/projects/docproj_nl/nl_NL.ISO8859-1/books/handbook/cutting-edge/chapter.sgml#31 integrate .. //depot/projects/docproj_nl/nl_NL.ISO8859-1/share/sgml/trademarks.ent#9 integrate .. //depot/projects/docproj_nl/nl_NL.ISO8859-1/share/sgml/trademarks.sgml#4 integrate .. //depot/projects/docproj_nl/www/en/news/status/report-2009-10-2009-12.xml#1 branch Differences ... ==== //depot/projects/docproj_nl/en_US.ISO8859-1/articles/contributors/contrib.additional.sgml#44 (text+ko) ==== @@ -1,4 +1,4 @@ - + @@ -2078,6 +2078,25 @@ + Using both wired and wireless connection + + Wired connection provides better performance and reliability, + while wireless connection provides flexibility and mobility, + users of laptop computers usually want to combine these together + and roam seamlessly between the two. + + On &os;, it is possible to combine two or even more network + interfaces together in a failover fashion, that + is, to use the most preferred and available connection from a + group of network interfaces, and have the operating system to + switch automatically when the link state changes. + + We will cover link aggregation and failover in + where an example for using both wired and wireless connection + is also provided at . + + + Troubleshooting If you are having trouble with wireless networking, there @@ -3401,6 +3420,85 @@ become the active link. If the link is restored on the master interface then it will once again become the active link. + + Failover mode between wired and wireless interfaces + + For laptop users, it is usually desirable to make wireless as a + secondary interface, which is to be used when the wired connection + is not available. With &man.lagg.4;, it is possible to use one + IP address, prefer the wired connection for both performance and + security reasons, while maintaining the ability to transfer data + over the wireless connection. + + In this setup, we will need to override the underlying + wireless interface's MAC address to match the &man.lagg.4;'s, + which is inherited from the master interface being used, the + wired interface. + + In this setup, we will treat the wired interface, + bge0, as the master, and the wireless + interface, + wlan0, as the failover interface. The + wlan0 was created from + iwn0 which we will set up with + the wired connection's MAC address. The first step would be + to obtain the MAC address from the wired 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 + + You can replace the bge0 to match + your reality, and will get a different ether + line which is the MAC address of your wired interface. Now, + we change the underlying wireless interface, + iwn0: + + &prompt.root; ifconfig iwn0 ether 00:21:70:da:ae:37 + + Bring up the wireless interface but don't set up any IP + address on it: + + &prompt.root; ifconfig create wlan0 wlandev iwn0 ssid my_router up + + Create the &man.lagg.4; interface with bge0 + as master, and failover to wlan0 if + necessary: + + &prompt.root; ifconfig lagg0 create +&prompt.root; ifconfig lagg0 up laggproto failover laggport bge0 laggport wlan0 + + The interface will look something like this, the major + differences will be the MAC address and the + device names: + + &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 + laggport: wlan0 flags=0<> + laggport: bge0 flags=5<MASTER,ACTIVE> + + To avoid having to do this after every reboot, one can add + something like the following lines to the + /etc/rc.conf file: + + ifconfig_bge0="up" +ifconfig_iwn0="ether 00:21:70:da:ae:37" +wlans_iwn0="wlan0" +ifconfig_wlan0="WPA" +cloned_interfaces="lagg0" +ifconfig_lagg0="laggproto failover laggport bge0 laggport wlan0 DHCP" + + ==== //depot/projects/docproj_nl/nl_NL.ISO8859-1/books/handbook/cutting-edge/chapter.sgml#31 (text+ko) ==== @@ -1,7 +1,7 @@ ==== //depot/projects/docproj_nl/nl_NL.ISO8859-1/share/sgml/trademarks.sgml#4 (text+ko) ==== @@ -1,7 +1,7 @@