centos虚拟机克隆 网卡配置
找回网卡 eth0,虚拟机每clone一次,网卡mac地址更新,centos自动新增一个eth网卡
rm -f /etc/udev/rules.d/70-persistent-net.rules
reboot
关闭服务NetworkManager
chkconfig NetworkManager off
service NetworkManager stop
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0 #网卡设备名称
ONBOOT=yes #启动时是否激活 yes|no
BOOTPROTO=static #协议类型 dhcp bootp none
IPADDR=192.168.134.136 #网络IP地址
NETMASK=255.255.255.0 #网络子网地址
GATEWAY= #网关地址
BROADCAST=192.168.134.255 #广播地址
TYPE=Ethernet #网卡类型为以太网
启动network服务
chkconfig network on
service network start
https://jingyan.baidu.com/article/335530da93ac2c19cb41c3b3.html
相关推荐
程辉 2019-07-01
littlecushion000 2019-06-13
elevencloud 2013-01-02
dctrue 2012-11-30
brucepig 2011-12-02
mxma 2011-08-29
beifenggo 2011-05-19
mxma 2011-04-14
starzhou 2016-10-01
lufybrooklin 2017-04-16
uglygirl 2015-04-28
syscloud 2011-11-16
ltoper 2019-04-01
dmguying 2019-04-01
PHP100 2019-03-28