环境:vm虚拟机,桥接网络模式,dhcp自动获取ip
查看网卡信息
# ip add
# service network stop
修改网卡配置文件
# vi /sysconfig/etcwork-scripts/ifcfg-eth**(这里**是对应自己的网卡编号)
ONBOOT=yes
BOOTPROTO=dhcp
# service network restart
查看网卡信息是否获取到ip
# ip add
环境:vm虚拟机,桥接网络模式,dhcp自动获取ip
查看网卡信息
# ip add
# service network stop
修改网卡配置文件
# vi /sysconfig/etcwork-scripts/ifcfg-eth**(这里**是对应自己的网卡编号)
ONBOOT=yes
BOOTPROTO=dhcp
# service network restart
查看网卡信息是否获取到ip
# ip add