打开/etc/network/interfaces,输入:
auto lo
iface lo inet loopback
auto eth0
1、dhcp
iface eth0 inet dhcp
2、static
iface eth0 inet static
address 192.168.0.42
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
3、adsl
iface eth0
开机后用pon或pppoe-start连接网络,用poff或pppoe-stop断开网络
4、wireless
auto wlan0
iface wlan0 inet dhcp
wireless-essid TP_LINK
wireless-key 0123456789
阅读(1215) | 评论(0) | 转发(0) |