Update to r53718:
Update WiFi failover example in advanced-networking. Some wireless interfaces do not support changing their MAC address, so explicitly instruct the reader to change the Ethernet MAC instead.
This commit is contained in:
parent
6fd0b8d2a1
commit
ad522ded52
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=54309
1 changed files with 60 additions and 42 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
$FreeBSD$
|
||||
$FreeBSDde:$
|
||||
basiert auf: r53132
|
||||
basiert auf: r53718
|
||||
-->
|
||||
<chapter xmlns="http://docbook.org/ns/docbook"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"
|
||||
|
@ -4056,7 +4056,7 @@ ifconfig_<literal>lagg<replaceable>0</replaceable></literal>="laggproto failover
|
|||
|
||||
<example xml:id="networking-lagg-wired-and-wireless">
|
||||
<title>Failover Modus zwischen Ethernet- und
|
||||
Wireless-Schnittstellen</title>
|
||||
drahtlosen Schnittstellen</title>
|
||||
|
||||
<para>Für Laptop-Benutzer ist es normalerweise wünschenswert,
|
||||
<quote>wireless</quote> als sekundäre Schnittstelle
|
||||
|
@ -4068,54 +4068,71 @@ ifconfig_<literal>lagg<replaceable>0</replaceable></literal>="laggproto failover
|
|||
bevorzugt, während es gleichzeitig möglich bleibt, Daten
|
||||
über die drahtlose Verbindung zu übertragen.</para>
|
||||
|
||||
<para>Dies wird durch das Überschreiben der physikalischen
|
||||
<acronym>MAC</acronym>-Adresse der drahtlosen Schnittstelle,
|
||||
durch die der Ethernet-Schnittstelle erreicht.</para>
|
||||
<para>Dies wird erreicht, indem die
|
||||
<acronym>MAC</acronym>-Adresse der Ethernet-Schnittstelle
|
||||
mit der <acronym>MAC</acronym> Adresse der drahtlosen
|
||||
Schnittstelle überschrieben wird.</para>
|
||||
|
||||
<note>
|
||||
<para>Theoretisch kann die Ethernet- oder die drahtlose
|
||||
<acronym>MAC</acronym>-Adresse so geändert werden, dass
|
||||
sie mit der jeweils anderen Adresse übereinstimmt. Bei
|
||||
einigen drahtlosen Schnittstellen fehlt jedoch die
|
||||
Unterstützung für das Überschreiben der
|
||||
<acronym>MAC</acronym>-Adresse. Daher wird empfohlen, die
|
||||
<acronym>MAC</acronym>-Adresse der Ethernet-Schnittstelle
|
||||
für diesen Zweck zu überschreiben.</para>
|
||||
</note>
|
||||
|
||||
<para>In diesem Beispiel ist die Ethernet-Schnittstelle
|
||||
<replaceable>bge0</replaceable> die Master-Schnittstelle
|
||||
und die drahtlose Schnittstelle
|
||||
<replaceable>wlan0</replaceable> die Failover-Schnittstelle.
|
||||
<replaceable>wlan0</replaceable> wurde von der
|
||||
<replaceable>iwn0</replaceable> mit der
|
||||
<acronym>MAC</acronym>-Adresse der Ethernet-Schnittstelle
|
||||
eingerichtet. Im ersten Schritt wird die
|
||||
<acronym>MAC</acronym>-Adresse der
|
||||
Ethernet-Schnittstelle ermittelt:</para>
|
||||
<replaceable>re0</replaceable> der Master und die drahtlose
|
||||
Schnittstelle <replaceable>wlan0</replaceable> der Failover.
|
||||
Die Schnittstelle <replaceable>wlan0</replaceable> wurde aus
|
||||
der physischen Schnittstelle <replaceable>ath0</replaceable>
|
||||
erstellt, und die Ethernet-Schnittstelle wird mit der
|
||||
<acronym>MAC</acronym>-Adresse der drahtlosen Schnittstelle
|
||||
konfiguriert. Im ersten Schritt wird die
|
||||
<acronym>MAC</acronym>-Adresse der drahtlosen Schnittstelle
|
||||
ermittelt:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>bge0</replaceable></userinput>
|
||||
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</screen>
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>wlan0</replaceable></userinput>
|
||||
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></screen>
|
||||
|
||||
<para>Ersetzen Sie <replaceable>bge0</replaceable> durch den
|
||||
Namen der Ethernet-Schnittstelle des Systems. Die
|
||||
<para>Ersetzen Sie <replaceable>ath0</replaceable> durch den
|
||||
Namen der drahtlosen Schnittstelle. Die
|
||||
<literal>ether</literal>-Zeile wird die
|
||||
<acronym>MAC</acronym>-Adresse der angegebenen Schnittstelle
|
||||
enthalten. Ändern Sie nun die
|
||||
<acronym>MAC</acronym>-Adresse der zugrunde liegenden
|
||||
drahtlosen Schnittstelle:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>iwn0</replaceable> ether <replaceable>00:21:70:da:ae:37</replaceable></userinput></screen>
|
||||
Ethernet-Schnittstelle:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>re0</replaceable> ether <replaceable>b8:ee:65:5b:32:59</replaceable></userinput></screen>
|
||||
<para>Starten Sie die drahtlose Schnittstelle, aber ohne
|
||||
eine <acronym>IP</acronym>-Adresse zu setzen:</para>
|
||||
eine <acronym>IP</acronym>-Adresse zu setzen. Ersetzen Sie
|
||||
<replaceable>FR</replaceable> durch den entsprechenden
|
||||
Ländercode:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>wlan0</replaceable> create wlandev <replaceable>iwn0</replaceable> ssid <replaceable>my_router</replaceable> up</userinput></screen>
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>wlan0</replaceable> create wlandev <replaceable>iwn0</replaceable> country <replaceable>FR</replaceable> ssid <replaceable>my_router</replaceable> up</userinput></screen>
|
||||
|
||||
<para>Stellen Sie sicher, dass die
|
||||
<replaceable>bge0</replaceable>-Schnittstelle aktiv ist.
|
||||
<replaceable>re0</replaceable>-Schnittstelle aktiv ist.
|
||||
Erstellen Sie die &man.lagg.4;-Schnittstelle mit
|
||||
<replaceable>bge0</replaceable> als Master und
|
||||
<replaceable>re0</replaceable> als Master und
|
||||
<replaceable>wlan0</replaceable> als Failover:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>bge0</replaceable> up</userinput>
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>re0</replaceable> up</userinput>
|
||||
&prompt.root; <userinput>ifconfig <literal>lagg<replaceable>0</replaceable></literal> create</userinput>
|
||||
&prompt.root; <userinput>ifconfig <literal>lagg<replaceable>0</replaceable></literal> up laggproto failover laggport <replaceable>bge0</replaceable> laggport <replaceable>wlan0</replaceable></userinput></screen>
|
||||
&prompt.root; <userinput>ifconfig <literal>lagg<replaceable>0</replaceable></literal> up laggproto failover laggport <replaceable>re0</replaceable> laggport <replaceable>wlan0</replaceable></userinput></screen>
|
||||
|
||||
<para>Die virtuelle Schnittstelle sollte in etwa so
|
||||
aussehen:</para>
|
||||
|
@ -4123,12 +4140,13 @@ bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
|
|||
<screen>&prompt.root; <userinput>ifconfig <literal>lagg<replaceable>0</replaceable></literal></userinput>
|
||||
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></screen>
|
||||
groups: lagg
|
||||
media: Ethernet autoselect
|
||||
status: active</screen>
|
||||
|
||||
<para>Starten Sie dann den <acronym>DHCP</acronym>-Client,
|
||||
um eine <acronym>IP</acronym>-Adresse zu erhalten:</para>
|
||||
|
@ -4139,12 +4157,12 @@ lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 150
|
|||
erhalten bleibt, fügen Sie folgende Einträge in
|
||||
<filename>/etc/rc.conf</filename> hinzu:</para>
|
||||
|
||||
<programlisting>ifconfig_bge0="up"
|
||||
wlans_<replaceable>iwn0</replaceable>="wlan0"
|
||||
<programlisting>ifconfig_<replaceable>re0</replaceable>="ether <replaceable>b8:ee:65:5b:32:59</replaceable>"
|
||||
wlans_<replaceable>ath0</replaceable>="wlan0"
|
||||
ifconfig_wlan0="WPA"
|
||||
create_args_wlan0="<replaceable>wlanaddr 00:21:70:da:ae:37</replaceable>"
|
||||
create_args_wlan0="country <replaceable>FR</replaceable>"
|
||||
cloned_interfaces="<literal>lagg<replaceable>0</replaceable></literal>"
|
||||
ifconfig_<literal>lagg<replaceable>0</replaceable></literal>="up laggproto failover laggport bge0 laggport wlan0 DHCP"</programlisting>
|
||||
ifconfig_<literal>lagg<replaceable>0</replaceable></literal>="up laggproto failover laggport <replaceable>re0</replaceable> laggport wlan0 DHCP"</programlisting>
|
||||
</example>
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
|
Loading…
Reference in a new issue