MFen 1.426 -> 1.428
This commit is contained in:
parent
755df1b0e1
commit
e54f9a0a16
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=35613
1 changed files with 165 additions and 123 deletions
|
@ -4,7 +4,7 @@
|
|||
$FreeBSD$
|
||||
|
||||
%SOURCE% en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml
|
||||
%SRCID% 1.426
|
||||
%SRCID% 1.428
|
||||
-->
|
||||
|
||||
<chapter id="advanced-networking">
|
||||
|
@ -917,8 +917,11 @@ route_net2="-net 192.168.1.0/24 192.168.1.1"</programlisting>
|
|||
<para>In de rest van dit document zal een &man.ath.4; apparaat
|
||||
gebruikt worden, de naam van het apparaat in de voorbeelden
|
||||
dient aangepast te worden aan de lokale installatie. Een
|
||||
lijst van beschikbare draadloze stuurprogramma's staat aan
|
||||
begin van de hulppagina &man.wlan.4;. Indien er geen
|
||||
lijst van beschikbare draadloze stuurprogramma's en ondersteunde
|
||||
adapters staat in de &os; Hardware Notes. Kopieën hiervan
|
||||
voor verschillende uitgaven en architecturen zijn beschikbaar op
|
||||
de <ulink url="http://www.FreeBSD.org/releases/index.html">Uitgave
|
||||
Informatie</ulink> pagina van de &os; website. Indien er geen
|
||||
origineel stuurprogramma voor het draadloze apparaat
|
||||
bestaat, is het mogelijk om te proberen om direct het
|
||||
stuurprogramma van &windows; proberen te gebruiken met
|
||||
|
@ -926,8 +929,8 @@ route_net2="-net 192.168.1.0/24 192.168.1.1"</programlisting>
|
|||
linkend="config-network-ndis">NDIS</link>.</para>
|
||||
</note>
|
||||
|
||||
<para>Nadat het apparaatstuurprogramma is ingesteld is het ook
|
||||
nodig om de ondersteuning voor 802.11-netwerken waarvan het
|
||||
<para>Nadat het apparaatstuurprogramma is ingesteld onder &os; 7.X
|
||||
is het ook nodig om de ondersteuning voor 802.11-netwerken waarvan het
|
||||
stuurprogramma gebruik maakt in te stellen. Voor het
|
||||
stuurprogramma &man.ath.4; zijn dit minimaal de modules
|
||||
&man.wlan.4;, <literal>wlan_scan_ap</literal> en
|
||||
|
@ -940,12 +943,9 @@ route_net2="-net 192.168.1.0/24 192.168.1.1"</programlisting>
|
|||
<programlisting>wlan_scan_ap_load="YES"
|
||||
wlan_scan_sta_load="YES"</programlisting>
|
||||
|
||||
<note>
|
||||
<para>Zowel <literal>wlan_scan_ap</literal> en
|
||||
<literal>wlan_scan_sta</literal> zijn nodig voor
|
||||
&os; 7.X, voor andere versies van &os; zijn ze niet
|
||||
nodig.</para>
|
||||
</note>
|
||||
<para>Sinds &os; 8.0 zijn deze modules deel van het
|
||||
basisstuurprogramma &man.wlan.4; dat dynamisch met het stuurprogramma
|
||||
voor de adapter wordt geladen.</para>
|
||||
|
||||
<para>Daarvoor zijn ook de modules nodig die cryptografische
|
||||
ondersteuning implementeren voor de te gebruiken
|
||||
|
@ -981,21 +981,22 @@ wlan_tkip_load="YES"</programlisting>
|
|||
volgende regels aan het kernelinstellingenbestand toe te
|
||||
voegen:</para>
|
||||
|
||||
<programlisting>device ath # Atheros IEEE 802.11 stuurprogramma voor draadloze netwerken
|
||||
device ath_hal # Atheros Hardware Access Layer
|
||||
options AH_SUPPORT_AR5146 # zet AR5146 tx/rx descriptors aan
|
||||
device ath_rate_sample # SampleRate verzendsnelheid-controle voor ath
|
||||
device wlan # 802.11 ondersteuning
|
||||
device wlan_scan_ap # 802.11 AP-modus scannen
|
||||
device wlan_scan_sta # 802.11 STA-modus scannen
|
||||
<programlisting>device wlan # 802.11 ondersteuning
|
||||
device wlan_wep # 802.11 WEP-ondersteuning
|
||||
device wlan_ccmp # 802.11 CCMP-ondersteuning
|
||||
device wlan_tkip # 802.11 TKIP-ondersteuning</programlisting>
|
||||
device wlan_tkip # 802.11 TKIP-ondersteuning
|
||||
device wlan_amrr # AMRR controle-algoritme voor zendsnelheid
|
||||
device ath # Atheros PCI/Cardbus netwerkkaarten
|
||||
device ath_hal # Ondersteuning voor PCI/cardbus chips
|
||||
options AH_SUPPORT_AR5146 # zet AR5146 tx/rx descriptors aan
|
||||
device ath_rate_sample # SampleRate verzendsnelheid-controle voor ath</programlisting>
|
||||
|
||||
<para>Zowel <literal>wlan_scan_ap</literal> en
|
||||
<literal>wlan_scan_sta</literal> zijn nodig voor
|
||||
<para>Beide van de volgende regels zijn nodig voor
|
||||
&os; 7.X, voor andere versies van &os; zijn ze niet
|
||||
nodig.</para>
|
||||
nodig:</para>
|
||||
|
||||
<programlisting>device wlan_scan_ap # 802.11 AP mode scanning
|
||||
device wlan_scan_sta # 802.11 STA mode scanning</programlisting>
|
||||
|
||||
<para>Met deze informatie in het kernelinstellingenbestand kan
|
||||
de kernel opnieuw gecompileerd en de &os;-computer opnieuw
|
||||
|
@ -1035,10 +1036,11 @@ ath0: mac 7.9 phy 4.5 radio 5.6</screen>
|
|||
moet zoeken. Alleen de super-gebruiker kan zo'n scan
|
||||
opzetten:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>ath0</replaceable> up scan</userinput>
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>wlan0</replaceable> create wlandev <replaceable>ath0</replaceable></userinput>
|
||||
&prompt.root; <userinput>ifconfig <replaceable>wlan0</replaceable> up scan</userinput>
|
||||
SSID BSSID CHAN RATE S:N INT CAPS
|
||||
dlinkap 00:13:46:49:41:76 6 54M 29:3 100 EPS WPA WME
|
||||
freebsdap 00:11:95:c3:0d:ac 1 54M 22:1 100 EPS WPA</screen>
|
||||
dlinkap 00:13:46:49:41:76 11 54M -90:96 100 EPS WPA WME
|
||||
freebsdap 00:11:95:c3:0d:ac 1 54M -83:96 100 EPS WPA</screen>
|
||||
|
||||
<note>
|
||||
<para>De interface dient als up te worden gemarkeerd
|
||||
|
@ -1046,6 +1048,20 @@ freebsdap 00:11:95:c3:0d:ac 1 54M 22:1 100 EPS WPA</screen>
|
|||
niet nodig om de interface als up te markeren.</para>
|
||||
</note>
|
||||
|
||||
<note>
|
||||
<para>In &os; 7.X wordt de apparaat-adapter, bijvoorbeeld
|
||||
<devicename><replaceable>ath0</replaceable></devicename>,
|
||||
direct gebruikt in plaats van het apparaat
|
||||
<devicename>wlan</devicename>. Hierom is het nodig om beide
|
||||
vorige regels te vervangen door:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>ath0</replaceable> up scan</userinput></screen>
|
||||
|
||||
<para>In de rest van dit document dient de gebruiker van
|
||||
&os; 7.X de opdracht- en instellingregels volgens dat schema
|
||||
aan te passen.</para>
|
||||
</note>
|
||||
|
||||
<para>De uitvoer van een scanverzoek vermeld elk gevonden
|
||||
BSS/IBSS-netwerk. Naast de naam van het netwerk,
|
||||
<literal>SSID</literal>, staat het <literal>BSSID</literal>,
|
||||
|
@ -1117,7 +1133,7 @@ freebsdap 00:11:95:c3:0d:ac 1 54M 22:1 100 EPS WPA</screen>
|
|||
<para>Het is ook mogelijk om de huidige lijst van bekende
|
||||
netwerken weer te geven met:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>ath0</replaceable> list scan</userinput></screen>
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>scan0</replaceable> list scan</userinput></screen>
|
||||
|
||||
<para>Deze informatie kan automatisch bijgewerkt worden door
|
||||
de adapter of handmatig met een <option>scan</option>
|
||||
|
@ -1151,13 +1167,22 @@ freebsdap 00:11:95:c3:0d:ac 1 54M 22:1 100 EPS WPA</screen>
|
|||
wordt ingesteld door het te noemen in
|
||||
<filename>/etc/rc.conf</filename>, bijvoorbeeld:</para>
|
||||
|
||||
<programlisting>ifconfig_ath0="DHCP"</programlisting>
|
||||
<programlisting>wlans_ath0="wlan0"
|
||||
ifconfig_wlan0="DHCP"</programlisting>
|
||||
|
||||
<note>
|
||||
<para>Zoals eerder vermeld, is voor &os; 7.X alleen een
|
||||
regel nodig voor de apparaat-adapter:</para>
|
||||
|
||||
<programlisting>ifconfig_ath0="DHCP"</programlisting>
|
||||
</note>
|
||||
|
||||
<para>Indien er meerdere toegangspunten zijn en het gewenst
|
||||
is om een specifieke te kiezen, kan dit met het SSID:
|
||||
</para>
|
||||
|
||||
<programlisting>ifconfig_ath0="ssid <replaceable>uw_ssid_hier</replaceable> DHCP"</programlisting>
|
||||
<programlisting>wlans_ath0="wlan0"
|
||||
ifconfig_wlan0="ssid <replaceable>uw_ssid_hier</replaceable> DHCP"</programlisting>
|
||||
|
||||
<para>In een omgeving waar meerdere toegangspunten hetzelfde
|
||||
SSID hebben (vaak gedaan om roamen eenvoudiger te maken)
|
||||
|
@ -1166,7 +1191,8 @@ freebsdap 00:11:95:c3:0d:ac 1 54M 22:1 100 EPS WPA</screen>
|
|||
BSSID van het toegangspunt gespecificeerd worden (het SSID
|
||||
kan ook weggelaten worden):</para>
|
||||
|
||||
<programlisting>ifconfig_ath0="ssid <replaceable>uw_ssid_hier</replaceable> bssid <replaceable>xx:xx:xx:xx:xx:xx</replaceable> DHCP</programlisting>
|
||||
<programlisting>wlans_ath0="wlan0"
|
||||
ifconfig_wlan0="ssid <replaceable>uw_ssid_hier</replaceable> bssid <replaceable>xx:xx:xx:xx:xx:xx</replaceable> DHCP</programlisting>
|
||||
|
||||
<para>Er zijn andere manieren om de keuze van een
|
||||
toegangspunt te beperken zoals het beperken van het aantal
|
||||
|
@ -1176,7 +1202,8 @@ freebsdap 00:11:95:c3:0d:ac 1 54M 22:1 100 EPS WPA</screen>
|
|||
tot een specifieke band te beperken kan de parameter
|
||||
<option>mode</option> gebruikt worden; bijvoorbeeld:</para>
|
||||
|
||||
<programlisting>ifconfig_ath0="mode <replaceable>11g</replaceable> ssid <replaceable>uw_ssid_hier</replaceable> DHCP"</programlisting>
|
||||
<programlisting>wlans_ath0="wlan0"
|
||||
ifconfig_wlan0="mode <replaceable>11g</replaceable> ssid <replaceable>uw_ssid_hier</replaceable> DHCP"</programlisting>
|
||||
|
||||
<para>zal de kaart forceren om te werken in 802.11g welke
|
||||
alleen voor 2,4GHz frequenties is gedefinieerd dus de 5GHz
|
||||
|
@ -1222,7 +1249,8 @@ freebsdap 00:11:95:c3:0d:ac 1 54M 22:1 100 EPS WPA</screen>
|
|||
toegang met zoiets als het volgende worden
|
||||
ingesteld:</para>
|
||||
|
||||
<programlisting>ifconfig_ath0="authmode shared wepmode on weptxkey <replaceable>1</replaceable> wepkey <replaceable>01234567</replaceable> DHCP"</programlisting>
|
||||
<programlisting>wlans_ath0="wlan0"
|
||||
ifconfig_wlan0="authmode shared wepmode on weptxkey <replaceable>1</replaceable> wepkey <replaceable>01234567</replaceable> DHCP"</programlisting>
|
||||
|
||||
<para>Over het algemeen dient authenticatie via gedeelde
|
||||
sleutels worden voorkomen omdat het het materiaal van de
|
||||
|
@ -1250,7 +1278,8 @@ freebsdap 00:11:95:c3:0d:ac 1 54M 22:1 100 EPS WPA</screen>
|
|||
apparaat toegevoegd te worden zoals in de verschillende
|
||||
bovenstaande voorbeelden is laten zien:</para>
|
||||
|
||||
<programlisting>ifconfig_ath0="DHCP"</programlisting>
|
||||
<programlisting>wlans_ath0="wlan0"
|
||||
ifconfig_wlan0="DHCP"</programlisting>
|
||||
|
||||
<para>Op dit moment kan de draadloze interface geactiveerd
|
||||
worden:</para>
|
||||
|
@ -1262,23 +1291,24 @@ freebsdap 00:11:95:c3:0d:ac 1 54M 22:1 100 EPS WPA</screen>
|
|||
van de interface <devicename>ath0</devicename> te
|
||||
zien:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>ath0</replaceable></userinput>
|
||||
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
||||
inet6 fe80::211:95ff:fed5:4362%ath0 prefixlen 64 scopeid 0x1
|
||||
inet 192.168.1.100 netmask 0xffffff00 broadcast 192.168.1.255
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>wlan0</replaceable></userinput>
|
||||
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
||||
ether 00:11:95:d5:43:62
|
||||
media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/54Mbps)
|
||||
inet 192.168.1.00 netmask 0xffffff00 broadcast 192.168.1.255
|
||||
media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g
|
||||
status: associated
|
||||
ssid dlinkap channel 6 bssid 00:13:46:49:41:76
|
||||
authmode OPEN privacy OFF txpowmax 36 protmode CTS bintval 100</screen>
|
||||
ssid dlinkap channel 11 (2462 Mhz 11g) bssid 00:13:46:49:41:76
|
||||
country US ecm authmode OPEN privacy OFF txpower 21.5 bmiss 7
|
||||
scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7
|
||||
roam:rate 5 protmode CTS wme burst</screen>
|
||||
|
||||
<para>Het <literal>status: associated</literal> betekent
|
||||
dat er verbinding is met een draadloos netwerk (in dit
|
||||
geval met het netwerk <literal>dlinkap</literal>). Het
|
||||
gedeelte <literal>bssid 00:13:46:49:41:76</literal> is het
|
||||
MAC-adres van het toegangspunt; de regel met
|
||||
MAC-adres van het toegangspunt; de gedeelte met
|
||||
<literal>authmode</literal> vertelt dat de communicatie
|
||||
niet versleuteld (<literal>OPEN</literal>) is.</para>
|
||||
niet versleuteld is.</para>
|
||||
</sect5>
|
||||
|
||||
<sect5>
|
||||
|
@ -1292,7 +1322,8 @@ ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
|||
voor het selecteren van een toegangspunt behouden
|
||||
blijven:</para>
|
||||
|
||||
<programlisting>ifconfig_ath0="ssid <replaceable>uw_ssid_hier</replaceable> inet <replaceable>192.168.1.100</replaceable> netmask <replaceable>255.255.255.0</replaceable>"</programlisting>
|
||||
<programlisting>wlans_ath0="wlan0"
|
||||
ifconfig_wlan0="ssid <replaceable>uw_ssid_hier</replaceable> inet <replaceable>192.168.1.100</replaceable> netmask <replaceable>255.255.255.0</replaceable>"</programlisting>
|
||||
</sect5>
|
||||
</sect4>
|
||||
|
||||
|
@ -1372,27 +1403,29 @@ ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
|||
gebeuren en dat het IP-adres met DHCP zal worden
|
||||
verkregen:</para>
|
||||
|
||||
<programlisting>ifconfig_ath0="WPA DHCP"</programlisting>
|
||||
<programlisting>wlans_ath0="wlan0"
|
||||
ifconfig_wlan0="WPA DHCP"</programlisting>
|
||||
|
||||
<para>Hierna kan de interface geactiveerd worden:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput><filename>/etc/rc.d/netif</filename> start</userinput>
|
||||
Starting wpa_supplicant.
|
||||
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 5
|
||||
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 6
|
||||
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
|
||||
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
|
||||
DHCPOFFER from 192.168.0.1
|
||||
DHCPREQUEST on ath0 to 255.255.255.255 port 67
|
||||
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
|
||||
DHCPACK from 192.168.0.1
|
||||
bound to 192.168.0.254 -- renewal in 300 seconds.
|
||||
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
||||
inet6 fe80::211:95ff:fed5:4362%ath0 prefixlen 64 scopeid 0x1
|
||||
inet 192.168.0.254 netmask 0xffffff00 broadcast 192.168.0.255
|
||||
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
||||
ether 00:11:95:d5:43:62
|
||||
media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/36Mbps)
|
||||
inet 192.168.0.254 netmask 0xffffff00 broadcast 192.168.0.255
|
||||
media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
|
||||
status: associated
|
||||
ssid freebsdap channel 1 bssid 00:11:95:c3:0d:ac
|
||||
authmode WPA privacy ON deftxkey UNDEF TKIP 2:128-bit txpowmax 36
|
||||
protmode CTS roaming MANUAL bintval 100</screen>
|
||||
ssid freebsdap channel 1 (2412 Mhz 11g) bssid 00:11:95:c3:0d:ac
|
||||
country US ecm authmode WPA2/802.11i privacy ON deftxkey UNDEF
|
||||
AES-CCM 3:128-bit txpower 21.5 bmiss 7 scanvalid 450 bgscan
|
||||
bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS
|
||||
wme burst roaming MANUAL</screen>
|
||||
|
||||
<para>Ook kan gepoogd worden dit handmatig in te stellen
|
||||
door hetzelfde
|
||||
|
@ -1400,34 +1433,36 @@ ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
|||
linkend="network-wireless-wpa-wpa-psk">hierboven</link>
|
||||
te gebruiken, en dit te draaien:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>wpa_supplicant -i <replaceable>ath0</replaceable> -c /etc/wpa_supplicant.conf</userinput>
|
||||
<screen>&prompt.root; <userinput>wpa_supplicant -i <replaceable>wlan0</replaceable> -c /etc/wpa_supplicant.conf</userinput>
|
||||
Trying to associate with 00:11:95:c3:0d:ac (SSID='freebsdap' freq=2412 MHz)
|
||||
Associated with 00:11:95:c3:0d:ac
|
||||
WPA: Key negotiation completed with 00:11:95:c3:0d:ac [PTK=TKIP GTK=TKIP]</screen>
|
||||
WPA: Key negotiation completed with 00:11:95:c3:0d:ac [PTK=CCMP GTK=CCMP]
|
||||
CTRL-EVENT-CONNECTED - Connection to 00:11:95:c3:0d:ac completed (auth) [id=0 idstr=]</screen>
|
||||
|
||||
<para>De volgende stap is het lanceren van het commando
|
||||
<command>dhclient</command> om een IP-adres van de
|
||||
DHCP-server te krijgen:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>dhclient <replaceable>ath0</replaceable></userinput>
|
||||
DHCPREQUEST on ath0 to 255.255.255.255 port 67
|
||||
<screen>&prompt.root; <userinput>dhclient <replaceable>wlan0</replaceable></userinput>
|
||||
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
|
||||
DHCPACK from 192.168.0.1
|
||||
bound to 192.168.0.254 -- renewal in 300 seconds.
|
||||
&prompt.root; <userinput>ifconfig <replaceable>ath0</replaceable></userinput>
|
||||
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
||||
inet6 fe80::211:95ff:fed5:4362%ath0 prefixlen 64 scopeid 0x1
|
||||
inet 192.168.0.254 netmask 0xffffff00 broadcast 192.168.0.255
|
||||
&prompt.root; <userinput>ifconfig <replaceable>wlan0</replaceable></userinput>
|
||||
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
||||
ether 00:11:95:d5:43:62
|
||||
media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/48Mbps)
|
||||
inet 192.168.0.254 netmask 0xffffff00 broadcast 192.168.0.255
|
||||
media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
|
||||
status: associated
|
||||
ssid freebsdap channel 1 bssid 00:11:95:c3:0d:ac
|
||||
authmode WPA privacy ON deftxkey UNDEF TKIP 2:128-bit txpowmax 36
|
||||
protmode CTS roaming MANUAL bintval 100</screen>
|
||||
ssid freebsdap channel 1 (2412 Mhz 11g) bssid 00:11:95:c3:0d:ac
|
||||
country US ecm authmode WPA2/802.11i privacy ON defxkey UNDEF
|
||||
AES-CCM 3:128-bit txpower 21.5 bmiss 7 scanvalid 450 bgscan
|
||||
bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS
|
||||
wme burst roaming MANUAL</screen>
|
||||
|
||||
<note>
|
||||
<para>Indien <filename>/etc/rc.conf</filename> is
|
||||
ingesteld met de regel
|
||||
<literal>ifconfig_ath0="DHCP"</literal> is het niet
|
||||
<literal>ifconfig_wlan0="DHCP"</literal> is het niet
|
||||
nodig om het commando <command>dhclient</command>
|
||||
handmatig te draaien, <command>dhclient</command> zal
|
||||
dan gedraaid worden nadat
|
||||
|
@ -1440,18 +1475,18 @@ ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
|||
nadat <command>wpa_supplicant</command> het station heeft
|
||||
geauthenticeerd:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>ath0</replaceable> inet <replaceable>192.168.0.100</replaceable> netmask <replaceable>255.255.255.0</replaceable></userinput>
|
||||
&prompt.root; <userinput>ifconfig <replaceable>ath0</replaceable></userinput>
|
||||
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
||||
inet6 fe80::211:95ff:fed5:4362%ath0 prefixlen 64 scopeid 0x1
|
||||
inet 192.168.0.100 netmask 0xffffff00 broadcast 192.168.0.255
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>wlan0</replaceable> inet <replaceable>192.168.0.100</replaceable> netmask <replaceable>255.255.255.0</replaceable></userinput>
|
||||
&prompt.root; <userinput>ifconfig <replaceable>wlan0</replaceable></userinput>
|
||||
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
||||
ether 00:11:95:d5:43:62
|
||||
media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/36Mbps)
|
||||
inet 192.168.0.100 netmask 0xffffff00 broadcast 192.168.0.255
|
||||
media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
|
||||
status: associated
|
||||
ssid freebsdap channel 1 bssid 00:11:95:c3:0d:ac
|
||||
authmode WPA privacy ON deftxkey UNDEF TKIP 2:128-bit txpowmax 36
|
||||
protmode CTS roaming MANUAL bintval 100</screen>
|
||||
|
||||
ssid freebsdap channel 1 (2412 Mhz 11g) bssid 00:11:95:c3:0d:ac
|
||||
country US ecm authmode WPA2/802.11i privacy ON deftxkey UNDEF
|
||||
AES-CCM 3:128-bit txpower 21.5 bmiss 7 scanvalid 450 bgscan
|
||||
bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS
|
||||
wme burst roaming MANUAL</screen>
|
||||
<para>Indien DHCP niet wordt gebruikt, dienen ook de
|
||||
standaard gateway en de naamserver handmatig ingesteld te
|
||||
worden:</para>
|
||||
|
@ -1562,29 +1597,31 @@ ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
|||
</callout>
|
||||
</calloutlist>
|
||||
|
||||
<para>Voeg vervolgens de volgende regel toe aan
|
||||
<para>Voeg vervolgens de volgende regels toe aan
|
||||
<filename>/etc/rc.conf</filename>:</para>
|
||||
|
||||
<programlisting>ifconfig_ath0="WPA DHCP"</programlisting>
|
||||
<programlisting>wlans_ath0="wlan0"
|
||||
ifconfig_wlan0="WPA DHCP"</programlisting>
|
||||
|
||||
<para>De volgende stap is het activeren van de interface met
|
||||
behulp van de faciliteit <filename>rc.c</filename>:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>/etc/rc.d/netif start</userinput>
|
||||
Starting wpa_supplicant.
|
||||
DHCPREQUEST on ath0 to 255.255.255.255 port 67
|
||||
DHCPREQUEST on ath0 to 255.255.255.255 port 67
|
||||
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
|
||||
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
|
||||
DHCPACK from 192.168.0.20
|
||||
bound to 192.168.0.254 -- renewal in 300 seconds.
|
||||
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
||||
inet6 fe80::211:95ff:fed5:4362%ath0 prefixlen 64 scopeid 0x1
|
||||
inet 192.168.0.254 netmask 0xffffff00 broadcast 192.168.0.255
|
||||
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
||||
ether 00:11:95:d5:43:62
|
||||
media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps)
|
||||
inet 192.168.0.254 netmask 0xffffff00 broadcast 192.168.0.255
|
||||
media: IEEE 802.11 Wireless Ethernet DS/11Mbps mode 11g
|
||||
status: associated
|
||||
ssid freebsdap channel 1 bssid 00:11:95:c3:0d:ac
|
||||
authmode WPA2/802.11i privacy ON deftxkey UNDEF TKIP 2:128-bit
|
||||
txpowmax 36 protmode CTS roaming MANUAL bintval 100</screen>
|
||||
ssid freebsdap channel 1 (2412 Mhz 11g) bssid 00:11:95:c3:0d:ac
|
||||
country US ecm authmode WPA/802.11i privacy ON deftxkey UNDEF
|
||||
AES-CCM 3:128-bit txpower 21.5 bmiss 7 scanvalid 450 bgscan
|
||||
bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS
|
||||
wme burst roaming MANUAL</screen>
|
||||
|
||||
<para>Zoals eerder is laten zien, is het ook mogelijk om de
|
||||
interface handmatig te activeren met zowel de commando's
|
||||
|
@ -1651,29 +1688,31 @@ ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
|||
</callout>
|
||||
</calloutlist>
|
||||
|
||||
<para>Ook dient de volgende regel toegevoegd te worden aan
|
||||
<para>Ook dienen de volgende regels toegevoegd te worden aan
|
||||
<filename>/etc/rc.conf</filename>:</para>
|
||||
|
||||
<programlisting>ifconfig_ath0="WPA DHCP"</programlisting>
|
||||
<programlisting>wlans_ath0="wlan0"
|
||||
ifconfig_ath0="WPA DHCP"</programlisting>
|
||||
|
||||
<para>De volgende stap is het activeren van de interface:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>/etc/rc.d/netif start</userinput>
|
||||
Starting wpa_supplicant.
|
||||
DHCPREQUEST on ath0 to 255.255.255.255 port 67
|
||||
DHCPREQUEST on ath0 to 255.255.255.255 port 67
|
||||
DHCPREQUEST on ath0 to 255.255.255.255 port 67
|
||||
DHCPREQUEST on wlan0 to 255.255.255.255 port 67 interval 7
|
||||
DHCPREQUEST on wlan0 to 255.255.255.255 port 67 interval 15
|
||||
DHCPREQUEST on wlan0 to 255.255.255.255 port 67 interval 21
|
||||
DHCPACK from 192.168.0.20
|
||||
bound to 192.168.0.254 -- renewal in 300 seconds.
|
||||
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
||||
inet6 fe80::211:95ff:fed5:4362%ath0 prefixlen 64 scopeid 0x1
|
||||
inet 192.168.0.254 netmask 0xffffff00 broadcast 192.168.0.255
|
||||
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
||||
ether 00:11:95:d5:43:62
|
||||
media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps)
|
||||
inet 192.168.0.254 netmask 0xffffff00 broadcast 192.168.0.255
|
||||
media: IEEE 802.11 Wireless Ethernet autoselect DS/11Mbps mode 11g
|
||||
status: associated
|
||||
ssid freebsdap channel 1 bssid 00:11:95:c3:0d:ac
|
||||
authmode WPA2/802.11i privacy ON deftxkey UNDEF TKIP 2:128-bit
|
||||
txpowmax 36 protmode CTS roaming MANUAL bintval 100</screen>
|
||||
ssid freebsdap channel 1 (2412 Mhz) bssid 00:11:95:c3:0d:ac
|
||||
country US ecm authmode WPA2/802.11i privacy ON deftxkey UNDEF
|
||||
AES-CCM 3:128-bit txpower 21.5 bmiss 7 scanvalid 450 bgscan
|
||||
bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS
|
||||
wme burst roaming MANUAL</screen>
|
||||
</sect5>
|
||||
|
||||
<sect5 id="network-wireless-wpa-eap-peap">
|
||||
|
@ -1764,26 +1803,28 @@ ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
|||
<para>Het volgende dient te worden toegevoegd aan
|
||||
<filename>/etc/rc.conf</filename>:</para>
|
||||
|
||||
<programlisting>ifconfig_ath0="WPA DHCP"</programlisting>
|
||||
<programlisting>wlans_ath0="wlan0"
|
||||
ifconfig_wlan0="WPA DHCP"</programlisting>
|
||||
|
||||
<para>Hierna kan de interface worden geactiveerd:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>/etc/rc.d/netif start</userinput>
|
||||
Starting wpa_supplicant.
|
||||
DHCPREQUEST on ath0 to 255.255.255.255 port 67
|
||||
DHCPREQUEST on ath0 to 255.255.255.255 port 67
|
||||
DHCPREQUEST on ath0 to 255.255.255.255 port 67
|
||||
DHCPREQUEST on wlan0 to 255.255.255.255 port 67 interval 7
|
||||
DHCPREQUEST on wlan0 to 255.255.255.255 port 67 interval 15
|
||||
DHCPREQUEST on wlan0 to 255.255.255.255 port 67 interval 21
|
||||
DHCPACK from 192.168.0.20
|
||||
bound to 192.168.0.254 -- renewal in 300 seconds.
|
||||
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
||||
inet6 fe80::211:95ff:fed5:4362%ath0 prefixlen 64 scopeid 0x1
|
||||
inet 192.168.0.254 netmask 0xffffff00 broadcast 192.168.0.255
|
||||
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
||||
ether 00:11:95:d5:43:62
|
||||
media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps)
|
||||
inet 192.168.0.254 netmask 0xffffff00 broadcast 192.168.0.255
|
||||
media: IEEE 802.11 Wireless Ethernet autoselect DS/11Mbps mode 11g
|
||||
status: associated
|
||||
ssid freebsdap channel 1 bssid 00:11:95:c3:0d:ac
|
||||
authmode WPA2/802.11i privacy ON deftxkey UNDEF TKIP 2:128-bit
|
||||
txpowmax 36 protmode CTS roaming MANUAL bintval 100</screen>
|
||||
ssid freebsdap channel 1 (2412 Mhz) bssid 00:11:95:c3:0d:ac
|
||||
country US ecm authmode WPA2/802.11i privacy ON deftxkey UNDEF
|
||||
AES-CCM 3:128-bit txpower 21.5 bmiss 7 scanvalid 450 bgscan
|
||||
bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS
|
||||
wme burst roaming MANUAL</screen>
|
||||
</sect5>
|
||||
</sect4>
|
||||
|
||||
|
@ -1798,7 +1839,8 @@ ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
|||
<para>WEP kan worden opgezet met
|
||||
<command>ifconfig</command>:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>ath0</replaceable> ssid mijn_net wepmode on weptxkey 3 wepkey 3:0x3456789012 \
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>wlan0</replaceable> create wlandev <replaceable>ath0</replaceable></userinput>
|
||||
&prompt.root; <userinput>ifconfig <replaceable>wlan0</replaceable> ssid mijn_net wepmode on weptxkey 3 wepkey 3:0x3456789012 \
|
||||
inet <replaceable>192.168.1.100</replaceable> netmask <replaceable>255.255.255.0</replaceable></userinput></screen>
|
||||
|
||||
<itemizedlist>
|
||||
|
@ -1848,7 +1890,7 @@ ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
|||
|
||||
<para>Daarna:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>wpa_supplicant -i <replaceable>ath0</replaceable> -c /etc/wpa_supplicant.conf</userinput>
|
||||
<screen>&prompt.root; <userinput>wpa_supplicant -i <replaceable>wlan0</replaceable> -c /etc/wpa_supplicant.conf</userinput>
|
||||
Trying to associate with 00:13:46:49:41:76 (SSID='dlinkap' freq=2437 MHz)
|
||||
Associated with 00:13:46:49:41:76</screen>
|
||||
</sect4>
|
||||
|
@ -1866,12 +1908,12 @@ Associated with 00:13:46:49:41:76</screen>
|
|||
|
||||
<para>Op machine <hostid>A</hostid>:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>ath0</replaceable> ssid <replaceable>freebsdap</replaceable> mediaopt adhoc inet <replaceable>192.168.0.1</replaceable> netmask <replaceable>255.255.255.0</replaceable></userinput>
|
||||
&prompt.root; <userinput>ifconfig <replaceable>ath0</replaceable></userinput>
|
||||
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
||||
inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
|
||||
inet6 fe80::211:95ff:fec3:dac%ath0 prefixlen 64 scopeid 0x4
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>wlan0</replaceable> create wlandev <replaceable>ath0</replaceable></userinput>
|
||||
&prompt.root; <userinput> ifconfig <replaceable>wlan0</replaceable> ssid <replaceable>freebsdap</replaceable> mediaopt adhoc inet <replaceable>192.168.0.1</replaceable> netmask <replaceable>255.255.255.0</replaceable></userinput>
|
||||
&prompt.root; <userinput>ifconfig <replaceable>wlan0</replaceable></userinput>
|
||||
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
||||
ether 00:11:95:c3:0d:ac
|
||||
inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
|
||||
media: IEEE 802.11 Wireless Ethernet autoselect <adhoc> (autoselect <adhoc>)
|
||||
status: associated
|
||||
ssid freebsdap channel 2 bssid 02:11:95:c3:0d:ac
|
||||
|
@ -1885,19 +1927,19 @@ Associated with 00:13:46:49:41:76</screen>
|
|||
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>ath0</replaceable> up scan</userinput>
|
||||
SSID BSSID CHAN RATE S:N INT CAPS
|
||||
freebsdap 02:11:95:c3:0d:ac 2 54M 19:3 100 IS</screen>
|
||||
freebsdap 02:11:95:c3:0d:ac 2 54M -90:-96 100 IS</screen>
|
||||
|
||||
<para>De <literal>I</literal> in de uitvoer bevestigt dat machine
|
||||
<hostid>A</hostid> in ad-hoc-modus verkeert. Het is slechts
|
||||
nodig om <hostid>B</hostid> met een ander IP-adres in te
|
||||
stellen:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>ath0</replaceable> ssid <replaceable>freebsdap</replaceable> mediaopt adhoc inet <replaceable>192.168.0.2</replaceable> netmask <replaceable>255.255.255.0</replaceable></userinput>
|
||||
&prompt.root; <userinput>ifconfig <replaceable>ath0</replaceable></userinput>
|
||||
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
||||
inet6 fe80::211:95ff:fed5:4362%ath0 prefixlen 64 scopeid 0x1
|
||||
inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255
|
||||
<screen>&prompt.root; <userinput>ifconfig <replaceable>wlan0</replaceable> create wlandev <replaceable>ath0</replaceable></userinput>
|
||||
&prompt.root; <userinput>ifconfig <replaceable>wlan0</replaceable> ssid <replaceable>freebsdap</replaceable> mediaopt adhoc inet <replaceable>192.168.0.2</replaceable> netmask <replaceable>255.255.255.0</replaceable></userinput>
|
||||
&prompt.root; <userinput>ifconfig <replaceable>wlan0</replaceable></userinput>
|
||||
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
||||
ether 00:11:95:d5:43:62
|
||||
inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255
|
||||
media: IEEE 802.11 Wireless Ethernet autoselect <adhoc> (autoselect <adhoc>)
|
||||
status: associated
|
||||
ssid freebsdap channel 2 bssid 02:11:95:c3:0d:ac
|
||||
|
|
Loading…
Reference in a new issue