|
办公室有无线的未加密的无线网络,怎样链接
能搜索到网络office 未加密
安装了wpa_supplicant.
用wicd-client -n 连接时提示无法获得ip地址
手动运行:
iwconfig wlan0 essid office
ifconfig wlan0 up
wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
dhcpcd wlan0
无管用
wpa_supplicant.conf是手册上的没改:- # The below line not be changed otherwise we refuse to work
- ctrl_interface=/var/run/wpa_supplicant
- # Ensure that only root can read the WPA configuration
- ctrl_interface_group=0
- # Let wpa_supplicant take care of scanning and AP selection
- ap_scan=1
- # Simple case: WPA-PSK, PSK as an ASCII passphrase, allow all valid ciphers
- network={
- ssid="simple"
- psk="very secret passphrase"
- # The higher the priority the sooner we are matched
- priority=5
- }
- # Same as previous, but request SSID-specific scanning (for APs that reject
- # broadcast SSID)
- network={
- ssid="second ssid"
- scan_ssid=1
- psk="very secret passphrase"
- priority=2
- }
- # Only WPA-PSK is used. Any valid cipher combination is accepted
- network={
- ssid="example"
- proto=WPA
- key_mgmt=WPA-PSK
- pairwise=CCMP TKIP
- group=CCMP TKIP WEP104 WEP40
- psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac7bb
- priority=2
- }
- # Plaintext connection (no WPA, no IEEE 802.1X)
- network={
- ssid="plaintext-test"
- key_mgmt=NONE
- }
- # Shared WEP key connection (no WPA, no IEEE 802.1X)
- network={
- ssid="static-wep-test"
- key_mgmt=NONE
- # Keys in quotes are ASCII keys
- wep_key0="abcde"
- # Keys specified without quotes are hex keys
- wep_key1=0102030405
- wep_key2="1234567890123"
- wep_tx_keyidx=0
- priority=5
- }
- # Shared WEP key connection (no WPA, no IEEE 802.1X) using Shared Key
- # IEEE 802.11 authentication
- network={
- ssid="static-wep-test2"
- key_mgmt=NONE
- wep_key0="abcde"
- wep_key1=0102030405
- wep_key2="1234567890123"
- wep_tx_keyidx=0
- priority=5
- auth_alg=SHARED
- }
- # IBSS/ad-hoc network with WPA-None/TKIP
- network={
- ssid="test adhoc"
- mode=1
- proto=WPA
- key_mgmt=WPA-NONE
- pairwise=NONE
- group=TKIP
- psk="secret passphrase"
- }
复制代码 |
|