[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.

标签: ubuntu

发表评论:

Powered by anycle 湘ICP备15001973号-1