转自:http://os.51cto.com/art/200908/143164.htm
网卡eth0 IP修改为 102.168.0.1
ifconfig eth0 102.168.0.1 netmask 255.255.255.0
网关修改为 102.168.0.254
route add default gw 102.168.0.254
Linux命令行修改dns
echo "nameserver 202.202.202.20 ">> /etc/resolv.conf
REF:
https://wiki.debian.org/NetworkConfiguration
704