设置静态IP地址

作者:MIRIII    提交时间:    点击:833    TAGS:



image.png

luther@gliethttp:~$ sudo vim /etc/network/interfaces

auto lo

iface lo inet loopback

auto eth0

iface eth0 inet static

address 192.168.3.141

netmask 255.255.255.0

gateway 192.168.3.1


luther@gliethttp:~$ sudo ifdown eth1   物理禁用网卡

luther@gliethttp:~$ sudo ifup eth1     物理启用网卡