Modify the network card information, copy the mac address of the second network card.
vim /etc/udev/rules.d/70-persistent-net.rules
Modify card information
vim /etc/sysconfig/network-scripts/ifcfg-eth0
Modify the host's hostname
vim /etc/sysconfig/network
Modify host mapping relationship
vim /etc/hosts
Modify window Host Configuration hosts
Note:
1.ip address, gateway, subnet mask, and other related information can not be erroneous.
2. NIC configuration file ONBOOT be amended as ONBOOT = yes , otherwise the network card configuration can not take effect.
3. Configure a static need to IPBOOTPROTO = static , automatically obtain IP configuration BOOTPROTO = dhcp .
4.DNS relevant information to the card in the configuration file, or can not use the ping .