[ubuntu]Set static ip address for ubuntu
2016-8-15 萧
1.Edit file /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.52
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 222.246.129.80 114.114.114.114
2.Reboot the system.
发表评论: