-
为eth0 配置网络
vi /etc/network/intefaces
-
添加以下内容
auto eth0
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
gateway 192.168.0.1 关闭网络
ifdown eth0
开启网络
ifup eth0
为eth0 配置网络
vi /etc/network/intefaces
添加以下内容
auto eth0
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
gateway 192.168.0.1
关闭网络
ifdown eth0
开启网络
ifup eth0