克隆虚拟机后,网关是启动不了得.
1.ifconfig -a查看所有网卡信息
2.更改eth1网卡信息
-
vi /etc/sysconfig/network-script/ifcfg-eth0
DEVICE=eth1 #<==将eth0改为eth1
TYPE=Ethernet
HWADDR=00:0C:29:33:C1:47 #<==更改为eth1的mac地址
ONBOOT=yes
BOOTPROTO=dhcp
3.重启网卡生效
service network restart
克隆虚拟机后,网关是启动不了得.
1.ifconfig -a查看所有网卡信息
2.更改eth1网卡信息
vi /etc/sysconfig/network-script/ifcfg-eth0
DEVICE=eth1 #<==将eth0改为eth1
TYPE=Ethernet
HWADDR=00:0C:29:33:C1:47 #<==更改为eth1的mac地址
ONBOOT=yes
BOOTPROTO=dhcp
3.重启网卡生效
service network restart