Chinaunix首页 | 论坛 | 博客
  • 博客访问: 19902
  • 博文数量: 7
  • 博客积分: 185
  • 博客等级: 入伍新兵
  • 技术积分: 65
  • 用 户 组: 普通用户
  • 注册时间: 2012-10-02 13:01
文章分类
文章存档

2012年(7)

我的朋友

分类: LINUX

2012-10-20 09:06:51

command:iwconfig
get the input :
lo no wireless extensions.
eth0 no wireless extensions. wlan0 IEEE 802.11g ESSID:"" Mode: Managed Channel:0 Access Point: Not-Associated Retry min limit: 7 RTS thr: off Fragment thr: 2346 B Encryption key:off Link quality:0 Signal level:0 Noise level:0bScanning for Available Wireless Networks
ip link set wlan0 up

First, we ed to activate the interface

ip link set wlan0 upne

Then, we can scan for available networks

iwlist wlan0 scan

This can return something similar to this output

wlan0 Scan completed: Cell 01 - Address: AA:BB:CC:00:11:22 ESSID:"eXample" Mode:Master Channel:3 Frequency:2.422 GHz Quality=93/100 Signal livel=-60 dBm Encryption key:on IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : TKIP Authentication Suites (1) : PSK IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : TKIP Authentication Suites (1) : PSK ... Cell 02 - Address: AB:35:85:EE:12:01 ESSID:"anotherone"Configuring Encryption etc.

First, let's make some temporary directory

mkdir -p /tmp/wifi/

Then, we create a configuration file for your wireless network

vi /tmp/wifi/wifi.conf

with this content (example)

(Note: press the i key for an insert mode in the vi editor).

ctrl_interface=/tmp/wifi/iface network={ ssid="eXample" key_mgmt=WPA-PSK proto=WPA pairwise=TKIP group=TKIP psk="$your_password" }

Replace $your_password string with current password for your wireless network.

Close vi editor this way

  • Press Escape key
  • Write :wq
  • Press Enter key
Adjusting Interface Encryption

To use just-written configuration, type

wpa_supplicant -B -c/tmp/wifi/wifi.conf -iwlan0

Check the settings with iwconfig again

lo no wireless extensions. eth0 no wireless extensions. wlan0 IEEE 802.11g ESSID:"eXample" Mode: Managed Channel:3 Access Point: AA:BB:CC:00:11:22 Retry min limit: 7 RTS thr: off Fragment thr: 2346 B Encryption key:$some_very_long_key ;) Link quality:90/100 Signal level:-59dBm ... DHCP or Static IP

To obtain a DHCP address from the server, just type

dhcpcd wlan0

and check it with

ip addr show dev wlan0

To setup a static IP and/or proxy, it's rather easier to continue the installation instead (after Installation Mode dialog), where YaST offers you configuration dialogs.

阅读(1135) | 评论(0) | 转发(0) |
0

上一篇:Network concept

下一篇:引导加载程序

给主人留下些什么吧!~~