The experimental platform for this blog is: VMWare 9 +redhat Enterprise 6
Before you say the configuration, it's important to be clear: because it's a network configuration for Linux under a virtual machine, it involves VMware Network settings and Linux network settings
The first is: VMware network settings
VMware offers three network modes of operation for users to choose from, namely:
1. Bridged (bridging mode) 2. NAT (network address translation mode) 3. Host-only (host mode)
For the above three kinds of network working mode do not understand, you can consult the network topology map of three modes.
If more than one IP address is available on the network, the bridging mode is used
Use host mode if the host on which the virtual machine is installed is not connected to any external network
If only one IP address is available on the network, use the NAT method
Note: Before you select VMware's network mode, to stop the Linux system in the virtual machine from running, after you set up VMware's network mode, restart the system in the virtual machine
Again: Network settings for Linux
Configuration steps:
1,/etc/init.d/network Restart: Restart each network card
Add: If the following error condition occurs
The reason for the error:/etc/init.d/network and NetworkManager conflict.
Workaround: Close the NetworkManager execution instruction to: service Networkmager stop
3, ifconfig operation result: did not find Ethernet card "eth0" eth0: the 1th physical network card in the system
Problem solving: Ifconfig not appear after eth0
Modify the configuration file of the eth0 Nic and change onboot= "no" to "Yes" file location:/etc/sysconfig/network-scripts/ifcfg-eth0
4,/etc/init.d/network Restart Restart the network then the router will automatically assign an IP address to the Linux system in the virtual machine