#网卡设置
sudo vi /etc/network/interfaces
#iface eth0 inet dhcp (默认,注释掉)
iface eth0 inet static (设置成使用静态IP)
address 192.168.0.88 (IP地址)
netmask 255.255.255.0 (掩码)
gateway 192.168.0.1 (网关)
保存退出后:
sudo /etc/init.d/networking restart (重启网络)

