vim /etc/network/interfaces
#wifi config
auto "devicename"
iface devicename inet dhcp
wpa-essid ssid
wpa-psk passwd
#lan config
auto devicename
iface devicename inet dhcp
#static lan config
#iface device inet static
#address IP
#netmask 255.XXX.XXX.XXX
#gateway IP
:wq
/etc/init.d/networking restart
网友评论