重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
$vi /etc/network/interfaces加入以下内容
auto wlan0
iface wlan0 inet dhcp
pre-up ip link set wlan0 up
pre-up iwconfig wlan0 essid your-ssid-here
wpa-ssid your-ssid-here
wpa-psk your-passwd-here
最后重启网络$/etc/init.d/networking restart
or
auto lo
iface lo inet loopback
#allow-hotplug eth0
#iface eth0 inet dhcp
#auto eth0
#iface eth0 inet static
#address 192.168.101.50
#netmask 255.255.255.0
#gateway 192.168.101.1
#broadcast 192.168.101.255
#auto wlan0
#iface wlan0 inet dhcp
#wpa-ssid YOUR-NETWORK-NAME
#wpa-key-mgmt WPA-PSK
#wpa-group TKIP CCMP
#wpa-psk YOUR-NETWORK-KEY