查看network:
ifconfig
修改IP:
vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.0.88
netmask 255.255.255.0
gateway 192.168.0.1
修改DNS:
vi /etc/resolve.conf
nameserver 127.0.0.1
nameserver 8.8.8.8
重启网络:
/etc/init.d/networking restart