可以使用ifconfig eth0 inet up 192.168.0.1
这样来配置不过重启后就会自动消除的固定的话就在/etc/network/inteface文件里面配置
allow-hotplug eth0 #我在我虚拟机是添了这行的
auto eth0
iface eth0 inet static
address 192.168.0.32
netmask 192xxx
broadcast xxxx
gateway xxxxx
可以使用ifconfig eth0 inet up 192.168.0.1
这样来配置不过重启后就会自动消除的固定的话就在/etc/network/inteface文件里面配置
allow-hotplug eth0 #我在我虚拟机是添了这行的
auto eth0
iface eth0 inet static
address 192.168.0.32
netmask 192xxx
broadcast xxxx
gateway xxxxx