System: CentOS 6/7
Problem:
After adding a new NIC to the virtual machine, there is no configuration file under/etc/sysconfig/network-scripts/ifcfg-eth1
#ip addr//Show Presence eth1
#ip addreth1:<BROADCAST,MULTICAST,UP,LOWER_UP> MTU theQdisc Pfifo_fast State up Qlen +Link/etherxx: 0c: in: -: in: theBRD ff:ff:ff:ff:ff:ff inet192.168.192.135/ -Brd192.168.192.255Scope Global Dynamic eth1 valid_lft 1482sec preferred_lft 1482sec inet6 fe80::20c:29ff:fe17:2966/ -scope link Valid_lft forever Preferred_lft forever
Solve:
#CP/etc/sysconfig/network-scripts/ifcfg-eth0/etc/sysconfig/network-scripts/ifcfg-Eth1#vim/etc/sysconfig/network-scripts/ifcfg-eth1hwaddr=xx: 0C: in: -: in: the#修改为eth1的mac地址TYPE=Ethernetbootproto=Staticdefroute=Nopeerdns=yespeerroutes=Yesipv4_failure_fatal=Noipv6init=yesipv6_autoconf=Yesipv6_defroute=Yesipv6_peerdns=yesipv6_peerroutes=Yesipv6_failure_fatal=NoNAME=eth1 #修改为eth1 #uuid=93285a79-5ad6-4d55-ae5a-b417ce7f4d31 #注释掉ONBOOT=Yes#service Network Restart
Adding a new NIC to a VMware virtual machine no configuration file