!!Newest version!!
[non-WDS]
Survey:
iwlist ath1 scanning
Configure:
~
# ifconfig ath0 down
~
# ifconfig br0 down
~
# wlanconfig ath0 destroy
~
# wlanconfig ath create wlandev wifi0 wlanmode ap
~ # wlanconfig ath create
wlandev wifi0 wlanmode sta nosbeacon
~ # iwpriv ath0 extap 1
~ # iwpriv ath1 extap 1
-----------------------------
WEP
~
# iwconfig ath1 essid AP_SSID
~
# iwconfig ath1 key 1 ENCRYPTION_KEY
~ # iwpriv ath1 authmode mode auto
~
# ifconfig ath1 up
WPA
WPA2
First, create wpa_supplicant.conf adding ctrl_interface=DIR=/var/run/wpa_supplicant
~ # wpa_supplicant –Dathr –c wpa_supplicant.conf
–iath1 -B
~ # wpa_cli –p/var/run/wpa_supplicant
remove_network 0
~ # wpa_cli –p/var/run/wpa_supplicant
ap_scan 1
~ # wpa_cli –p/var/run/wpa_supplicant
add_network
~ # wpa_cli –p/var/run/wpa_supplicant
set_network 0 ssid ‘”AP_SSID”’
~ # wpa_cli –p/var/run/wpa_supplicant
set_network 0 psk ‘”AP_PASSPHRASE”’
~ # wpa_cli –p/var/run/wpa_supplicant
set_network 0 proto ‘AP_PROTO’
~ # wpa_cli –p/var/run/wpa_supplicant
set_network 0 key_mgmt ‘WPA-PSK’
~ # wpa_cli –p/var/run/wpa_supplicant
set_network 0 pairwise ‘AP_PAIRWISE’
~ # wpa_cli –p/var/run/wpa_supplicant
set_network 0 group ‘AP_GROUP’
~ # wpa_cli –p/var/run/wpa_supplicant
select_network 0
-----------------------------
WEP
~
# iwconfig ath0 essid EXTENDER_SSID
~ # iwconfig ath0 key 1 ENCRYPTION_KEY
~ # iwpriv ath0 authmode mode auto
~ # ifconfig ath0 up
WPA
WPA2
First, modify /etc/ath/hostapd_ctrl_interface.conf for the
following attributes:
Interface=ath0
bridge=br0
ssid=REPEATER_SSID
wpa=1/2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP/CCMP/TKIP CCMP
wpa_passphrase=SECRET_PASSPHRASE
~ # hostapd
/etc/ath/hostapd_ctrl_interface.conf -B
-----------------------------
~
# brctl addif br0 ath0
~
# brctl addif br0 ath1
~
# brctl setfd br0 1
~
# ifconfig br0 up
[WDS]
Survey:
iwlist ath1 scanning
Configure:
~
# ifconfig ath0 down
~
# ifconfig br0 down
~
# wlanconfig ath0 destroy
~
# wlanconfig ath create wlandev wifi0 wlanmode ap
~ # wlanconfig ath create
wlandev wifi0 wlanmode sta nosbeacon
~ # iwpriv ath0 wds 1
~ # iwpriv ath1 wds 1
-----------------------------
WEP
~
# iwconfig ath1 essid AP_SSID
~
# iwconfig ath1 key 1 ENCRYPTION_KEY
~ # iwpriv ath1 authmode mode auto
~
# ifconfig ath1 up
WPA
WPA2
First, create wpa_supplicant.conf adding ctrl_interface=DIR=/var/run/wpa_supplicant
~ # wpa_supplicant –Dathr –c wpa_supplicant.conf
–iath1 -B
~ # wpa_cli –p/var/run/wpa_supplicant
remove_network 0
~ # wpa_cli –p/var/run/wpa_supplicant
ap_scan 1
~ # wpa_cli –p/var/run/wpa_supplicant
add_network
~ # wpa_cli –p/var/run/wpa_supplicant
set_network 0 ssid ‘”AP_SSID”’
~ # wpa_cli –p/var/run/wpa_supplicant
set_network 0 psk ‘”AP_PASSPHRASE”’
~ # wpa_cli –p/var/run/wpa_supplicant
set_network 0 proto ‘AP_PROTO’
~ # wpa_cli –p/var/run/wpa_supplicant
set_network 0 key_mgmt ‘WPA-PSK’
~ # wpa_cli –p/var/run/wpa_supplicant
set_network 0 pairwise ‘AP_PAIRWISE’
~ # wpa_cli –p/var/run/wpa_supplicant
set_network 0 group ‘AP_GROUP’
~ # wpa_cli –p/var/run/wpa_supplicant
select_network 0
-----------------------------
WEP
~
# iwconfig ath0 essid EXTENDER_SSID
~ # iwconfig ath0 key 1 ENCRYPTION_KEY
~ # iwpriv ath0 authmode mode auto
~ # ifconfig ath0 up
WPA
WPA2
First, modify /etc/ath/hostapd_ctrl_interface.conf for the
following attributes:
Interface=ath0
bridge=br0
ssid=REPEATER_SSID
wpa=1/2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP/CCMP/TKIP CCMP
wpa_passphrase=SECRET_PASSPHRASE
~ # hostapd
/etc/ath/hostapd_ctrl_interface.conf -B
-----------------------------
~
# brctl addif br0 ath0
~
# brctl addif br0 ath1
~
# brctl setfd br0 1
~ # ifconfig br0 up[non-WDS]
~ # ifconfig ath0
down
~ # ifconfig br0
down
~ # wlanconfig
ath0 destroy
~ # wlanconfig
ath create wlandev wifi0 wlanmode ap
~ # wlanconfig
ath create wlandev wifi0 wlanmode sta nosbeacon
~ # iwconfig ath0
essid Edison_1211 channel 11
~ # iwconfig ath0
key 1 9800071234
~ # iwpriv ath0
mode 11G
~ # iwpriv ath0
extap 1
~ # iwpriv ath0
authmode mode open
~ # iwconfig ath1
essid Edison-Buffalo-G
~ # iwconfig ath1
key 1 9800071234
~ # iwpriv ath1
authmode mode open
~ # iwpriv ath1
mode 11G
~ # iwpriv ath1
extap 1
~ # ifconfig ath1
up
~ # ifconfig ath0
up
~ # brctl addif
br0 ath0
~ # brctl addif
br0 ath1
~ # brctl setfd
br0 1
~ # ifconfig br0
192.168.11.110 up
~ # echo 1 >
/proc/sys/net/ipv4/ip_forward
~ # ifconfig br0
192.168.11.110 up
[WDS]
~ # ifconfig ath0
down
~ # ifconfig br0
down
~ # wlanconfig
ath0 destroy
~ # wlanconfig
ath create wlandev wifi0 wlanmode ap
~ # wlanconfig
ath create wlandev wifi0 wlanmode sta nosbeacon
~ # iwconfig ath0
essid Edison_1211 channel 11
~ # iwconfig ath0
key 1 9800071234
~ # iwpriv ath0
mode 11G
~ # iwpriv ath0
wds 1
~ # iwpriv ath0
authmode mode open
~ # iwconfig ath1
essid Edison-Buffalo-G
~ # iwconfig ath1
key 1 9800071234
~ # iwpriv ath1
authmode mode open
~ # iwpriv ath1
mode 11G
~ # iwpriv ath1
wds 1
~ # ifconfig ath1
up
~ # ifconfig ath0
up
~ # brctl addif
br0 ath0
~ # brctl addif
br0 ath1
~ # brctl setfd
br0 1
~ # ifconfig br0
192.168.11.110 up
~ # echo 1 >
/proc/sys/net/ipv4/ip_forward
~ #
ifconfig br0 192.168.11.110 up
沒有留言:
張貼留言