虚拟机nat方式设置动态ip

来源:互联网 发布:淘宝上面怎么买烟 编辑:程序博客网 时间:2024/05/10 20:27

 

虚拟机设置位nat方式网络不能设置静态ip地址

 

vi /etc/sysconfig/network-scripts/ifcfg-eth0

 

DEVICE=eth0

BOOTPROTO=dhcp

ONBOOT=yes

TYPE=Ethernet

 

servers network restart

or

ifup eth0

 

dhclient

 

ok

 

其他相关命令

lspci | grep 'Eth'

ifup eth0

 

mii-tool

ifconfig eth0 up

 

ifconfig eth0 xxx指定ip试试能否有效

system-config-network

 

 

原创粉丝点击