IP、网关设置
sudo vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.123
netmask 255.255.255.0
gateway 192.168.1.1
DNS设置(临时)
sudo vi /etc/resolv.conf
nameserver 202.xx.xx.xx
nameserver 192.168.1.1
IP、网关设置
sudo vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.123
netmask 255.255.255.0
gateway 192.168.1.1
DNS设置(临时)
sudo vi /etc/resolv.conf
nameserver 202.xx.xx.xx
nameserver 192.168.1.1