debian命令行设置连接Wi-Fi热点

# ifcongfig    

#获取适配器信息,eth0为默认有线适配器,wlan0为默认无线适配器。

# vi /etc/networks/interfaces

auto lo

iface lo inet loopback

iface eth0 inet dhcp

allow-hotplug wlan0

iface wlan0 inet static

wpa-ssid Wi-Finame

wpa-psk password

address 192.168.1.200

netmask 255.255.255.0

gateway 192.168.1.1

network 192.168.1.1

#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

iface default inet dhcp

:wq

vi /etc/resolv.conf

servername 192.168.1.1

:wq

# service network restart

# reboot

你可能感兴趣的:(debian命令行设置连接Wi-Fi热点)