From da25ebf7ecb51f19ecb819f091aa9157eb03c129 Mon Sep 17 00:00:00 2001 From: Marc Fonvieille Date: Sat, 27 Mar 2010 20:25:00 +0000 Subject: [PATCH] Update of the Wireless part to match 8.X. This is a work in progress, the "FreeBSD Host Access Points" section will be updated soon. Requested by: many --- .../handbook/advanced-networking/chapter.sgml | 285 ++++++++++-------- 1 file changed, 165 insertions(+), 120 deletions(-) diff --git a/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml b/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml index fd45fd5c65..55fa99e68c 100644 --- a/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml @@ -821,8 +821,13 @@ route_net2="-net 192.168.1.0/24 192.168.1.1" In the rest of this document, we will use an &man.ath.4; device, the device name in the examples must be changed according to your configuration. A list of - available wireless drivers can be found at the beginning - of the &man.wlan.4; manual page. If a native &os; driver + available wireless drivers and supported adapters can be + found in the &os; Hardware Notes. Copies of these notes + for various releases and architectures are available on + the Release + Information page of the &os; Web site. + If a native &os; driver for your wireless device does not exist, it may be possible to directly use the &windows; driver with the help of the wrapper. - With a device driver configured you need to also bring + Under &os; 7.X, with a device driver you need to also bring in the 802.11 networking support required by the driver. For the &man.ath.4; driver these are at least the &man.wlan.4;, wlan_scan_ap and @@ -843,12 +848,9 @@ route_net2="-net 192.168.1.0/24 192.168.1.1" wlan_scan_ap_load="YES" wlan_scan_sta_load="YES" - - Both wlan_scan_ap and - wlan_scan_sta modules are required by - &os; 7.X, other &os; versions do not need - them. - + Since &os; 8.0, these modules are part of the + base &man.wlan.4; driver which is dynamically loaded with + the adapter driver. With that you will need the modules that implement cryptographic support for the security @@ -880,21 +882,22 @@ wlan_tkip_load="YES" compile these drivers into the kernel by adding the following lines to your kernel configuration file: - device ath # Atheros IEEE 802.11 wireless network driver -device ath_hal # Atheros Hardware Access Layer -options AH_SUPPORT_AR5416 # enable AR5416 tx/rx descriptors -device ath_rate_sample # SampleRate tx rate control for ath -device wlan # 802.11 support -device wlan_scan_ap # 802.11 AP mode scanning -device wlan_scan_sta # 802.11 STA mode scanning + device wlan # 802.11 support device wlan_wep # 802.11 WEP support device wlan_ccmp # 802.11 CCMP support -device wlan_tkip # 802.11 TKIP support +device wlan_tkip # 802.11 TKIP support +device wlan_amrr # AMRR transmit rate control algorithm +device ath # Atheros pci/cardbus NIC's +device ath_hal # pci/cardbus chip support +options AH_SUPPORT_AR5416 # enable AR5416 tx/rx descriptors +device ath_rate_sample # SampleRate tx rate control for ath - Both wlan_scan_ap and - wlan_scan_sta lines are required by + Both following lines are also required by &os; 7.X, other &os; versions do not need - them. + them: + + device wlan_scan_ap # 802.11 AP mode scanning +device wlan_scan_sta # 802.11 STA mode scanning With this information in the kernel configuration file, recompile the kernel and reboot your &os; @@ -934,10 +937,11 @@ ath0: mac 7.9 phy 4.5 radio 5.6 probes for available access points. Only the super-user can initiate such a scan: - &prompt.root; ifconfig ath0 up scan + &prompt.root; ifconfig wlan0 create wlandev ath0 +&prompt.root; ifconfig wlan0 up scan 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 +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 You must mark the interface @@ -945,6 +949,21 @@ freebsdap 00:11:95:c3:0d:ac 1 54M 22:1 100 EPS WPA require you to mark the interface up again. + + Under &os; 7.X, the adapter device, for example + ath0, + is used directly instead of the + wlan0 + device. This requires you to replace the both previous + lines with: + + &prompt.root; ifconfig ath0 up scan + + In the rest of this document, the &os; 7.X user + will have to change the command and configuration lines + according to that scheme. + + The output of a scan request lists each BSS/IBSS network found. Beside the name of the network, SSID, we find the @@ -1013,7 +1032,7 @@ freebsdap 00:11:95:c3:0d:ac 1 54M 22:1 100 EPS WPA One can also display the current list of known networks with: - &prompt.root; ifconfig ath0 list scan + &prompt.root; ifconfig wlan0 list scan This information may be updated automatically by the adapter or manually with a request. @@ -1046,13 +1065,22 @@ freebsdap 00:11:95:c3:0d:ac 1 54M 22:1 100 EPS WPA up or otherwise configure an interface by listing it in /etc/rc.conf, e.g.: - ifconfig_ath0="DHCP" + wlans_ath0="wlan0" +ifconfig_wlan0="DHCP" + + + As previously mentioned, &os; 7.X will only + require a line related to the adapter device: + + ifconfig_ath0="DHCP" + If there are multiple access points and you want to select a specific one, you can select it by its SSID: - ifconfig_ath0="ssid your_ssid_here DHCP" + wlans_ath0="wlan0" +ifconfig_wlan0="ssid your_ssid_here DHCP" In an environment where there are multiple access points with the same SSID (often done to simplify @@ -1061,7 +1089,8 @@ freebsdap 00:11:95:c3:0d:ac 1 54M 22:1 100 EPS WPA BSSID of the access point (you can also leave off the SSID): - ifconfig_ath0="ssid your_ssid_here bssid xx:xx:xx:xx:xx:xx DHCP" + wlans_ath0="wlan0" +ifconfig_wlan0="ssid your_ssid_here bssid xx:xx:xx:xx:xx:xx DHCP" There are other ways to constrain the choice of an access point such as limiting the set of frequencies the @@ -1071,7 +1100,8 @@ freebsdap 00:11:95:c3:0d:ac 1 54M 22:1 100 EPS WPA specific band you can use the parameter; e.g.: - ifconfig_ath0="mode 11g ssid your_ssid_here DHCP" + wlans_ath0="wlan0" +ifconfig_wlan0="mode 11g ssid your_ssid_here DHCP" will force the card to operate in 802.11g which is defined only for 2.4GHz frequencies so any 5GHz channels @@ -1113,7 +1143,8 @@ freebsdap 00:11:95:c3:0d:ac 1 54M 22:1 100 EPS WPA &airport; base station you can setup access with something like: - ifconfig_ath0="authmode shared wepmode on weptxkey 1 wepkey 01234567 DHCP" + wlans_ath0="wlan0" +ifconfig_wlan0="authmode shared wepmode on weptxkey 1 wepkey 01234567 DHCP" In general shared key authentication is to be avoided because it uses the WEP key material in a @@ -1137,7 +1168,8 @@ freebsdap 00:11:95:c3:0d:ac 1 54M 22:1 100 EPS WPA DHCP to the configuration for your device as shown in various examples above: - ifconfig_ath0="DHCP" + wlans_ath0="wlan0" +ifconfig_wlan0="DHCP" At this point, you are ready to bring up the wireless interface: @@ -1148,24 +1180,24 @@ freebsdap 00:11:95:c3:0d:ac 1 54M 22:1 100 EPS WPA ifconfig to see the status of the interface ath0: - &prompt.root; ifconfig ath0 -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 + &prompt.root; ifconfig wlan0 +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.100 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 + 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 The status: associated means you are connected to the wireless network (to the dlinkap network in our case). The bssid 00:13:46:49:41:76 part is the MAC address of your access point; the - authmode line informs you that the - communication is not encrypted - (OPEN). + authmode OPEN part informs you that the + communication is not encrypted. @@ -1178,7 +1210,8 @@ ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 parameters you have set up for selecting an access point: - ifconfig_ath0="ssid your_ssid_here inet 192.168.1.100 netmask 255.255.255.0" + wlans_ath0="wlan0" +ifconfig_wlan0="ssid your_ssid_here inet 192.168.1.100 netmask 255.255.255.0" @@ -1253,7 +1286,8 @@ ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 done with WPA and the IP address will be obtained with DHCP: - ifconfig_ath0="WPA DHCP" + wlans_ath0="wlan0" +ifconfig_wlan0="WPA DHCP" Then, we can bring up the interface: @@ -1262,51 +1296,54 @@ 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 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 + 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 Or you can try to configure it manually using the same /etc/wpa_supplicant.conf above, and run: - &prompt.root; wpa_supplicant -i ath0 -c /etc/wpa_supplicant.conf + &prompt.root; wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf 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] +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 id_str=] The next operation is the launch of the dhclient command to get the IP address from the DHCP server: - &prompt.root; dhclient ath0 -DHCPREQUEST on ath0 to 255.255.255.255 port 67 + &prompt.root; dhclient wlan0 +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; ifconfig ath0 -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; ifconfig wlan0 +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 + 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 If the /etc/rc.conf is set up - with the line ifconfig_ath0="DHCP" + with the line ifconfig_wlan0="DHCP" then it is no need to run the dhclient command manually, dhclient will be launched after @@ -1319,17 +1356,18 @@ ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 wpa_supplicant has authenticated the station: - &prompt.root; ifconfig ath0 inet 192.168.0.100 netmask 255.255.255.0 -&prompt.root; ifconfig ath0 -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 + &prompt.root; ifconfig wlan0 inet 192.168.0.100 netmask 255.255.255.0 +&prompt.root; ifconfig wlan0 +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 + 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 When DHCP is not used, you also have to manually set up the default gateway and the nameserver: @@ -1437,29 +1475,31 @@ ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 - Then add the following line to + Then add the following lines to /etc/rc.conf: - ifconfig_ath0="WPA DHCP" + wlans_ath0="wlan0" +ifconfig_wlan0="WPA DHCP" The next step is to bring up the interface with the help of the rc.d facility: &prompt.root; /etc/rc.d/netif start 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 interval 7 +DHCPREQUEST on wlan0 to 255.255.255.255 port 67 interval 15 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 + 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 As previously shown, it is also possible to bring up the interface manually with both @@ -1527,29 +1567,31 @@ ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 - You also have to add the following line to + You also have to add the following lines to /etc/rc.conf: - ifconfig_ath0="WPA DHCP" + wlans_ath0="wlan0" +ifconfig_wlan0="WPA DHCP" The next step is to bring up the interface: &prompt.root; /etc/rc.d/netif start 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 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 + 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 @@ -1637,26 +1679,28 @@ ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 The following must be added to /etc/rc.conf: - ifconfig_ath0="WPA DHCP" + wlans_ath0="wlan0" +ifconfig_wlan0="WPA DHCP" Then, we can bring up the interface: &prompt.root; /etc/rc.d/netif start 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 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 + 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 @@ -1671,7 +1715,8 @@ ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 WEP can be set up with ifconfig: - &prompt.root; ifconfig ath0 ssid my_net wepmode on weptxkey 3 wepkey 3:0x3456789012 \ + &prompt.root; ifconfig wlan0 create wlandev ath0 +&prompt.root; ifconfig wlan0 ssid my_net wepmode on weptxkey 3 wepkey 3:0x3456789012 \ inet 192.168.1.100 netmask 255.255.255.0 @@ -1719,7 +1764,7 @@ ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 Then: - &prompt.root; wpa_supplicant -i ath0 -c /etc/wpa_supplicant.conf + &prompt.root; wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf Trying to associate with 00:13:46:49:41:76 (SSID='dlinkap' freq=2437 MHz) Associated with 00:13:46:49:41:76 @@ -1737,12 +1782,12 @@ Associated with 00:13:46:49:41:76 On the box A: - &prompt.root; ifconfig ath0 ssid freebsdap mediaopt adhoc inet 192.168.0.1 netmask 255.255.255.0 -&prompt.root; ifconfig ath0 - 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 + &prompt.root; ifconfig wlan0 create wlandev ath0 +&prompt.root; ifconfig wlan0 ssid freebsdap mediaopt adhoc inet 192.168.0.1 netmask 255.255.255.0 +&prompt.root; ifconfig wlan0 + 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 @@ -1754,21 +1799,21 @@ Associated with 00:13:46:49:41:76 On B, we should be able to detect A: - &prompt.root; ifconfig ath0 up scan + &prompt.root; ifconfig wlan0 up scan SSID BSSID CHAN RATE S:N INT CAPS - freebsdap 02:11:95:c3:0d:ac 2 54M 19:3 100 IS + freebsdap 02:11:95:c3:0d:ac 2 54M -90:-96 100 IS The I in the output confirms the machine A is in ad-hoc mode. We just have to configure B with a different IP address: - &prompt.root; ifconfig ath0 ssid freebsdap mediaopt adhoc inet 192.168.0.2 netmask 255.255.255.0 -&prompt.root; ifconfig ath0 - 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 + &prompt.root; ifconfig wlan0 create wlandev ath0 +&prompt.root; ifconfig wlan0 ssid freebsdap mediaopt adhoc inet 192.168.0.2 netmask 255.255.255.0 +&prompt.root; ifconfig wlan0 + 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