Ubantu 网卡绑定固定IP

 

 

# The primary network interface
auto eth0
#iface eth0 inet dhcp

iface eth0 inet static
address 192.168.1.12
netmask 255.255.255.0
gateway 192.168.1.1

 

posted @ 2017-05-20 17:20  当年亦如是  阅读(184)  评论(0编辑  收藏  举报