First, the Linux minimized installation, unable to find the network card problem:
Using the vi editor, edit the NIC configuration file:
Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Device=eth0
Onboot=no
Bootproto=static
Ontrolled= "No"
ipaddr=192.168.1.1
netmask=255.255.255.0
gateway=192.168.1.254
Hwaddr=00:0c:29:96:38:f8 Note that onboot=no change it to Yes, the network card is active, ontrolled= "no" to "no" re-service network Restart the IP address and gateway ifconfig appear under test
Second, Linux multi-block network card replication, change the MAC address problem:
1, the first virtual machine Add network card:
2. Change the NIC configuration file:
cd/etc/sysconfig/network-scripts/
#ls
#cp Ifcfg-eth0 ifcfg-eth1
3, see the network card MAC address, there are two ways. First shut down, locate the Linxu installation location, locate the file with the suffix. VMX, view the MAC address associated with the network card, start the Linxu System VI edit vi/etc/sysconfig/network-scripts/ifcfg-eth1, change the MAC address to
Restart the NIC service with the same MAC address as the suffix. vmx file.
Two ways:
To view the network card MAC address:
#ip A
To edit the NIC configuration file:
#vi/etc/sysconfig/network-scripts/ifcfg-eth1
Change the MAC address consistent with the above display, the graph line interface can be copied, save exit, restart the network card service.
This article is from the "Network Information security" blog, make sure to keep this source http://lamborg.blog.51cto.com/4704204/1744184
Linux Experience Summary