A, LINUX the related operations
Open iou-web virtual machine. The authors find that the production is Scientific Linux. Login information, user name root, password cisco.
Operating with root privileges
NIC configuration
1. Initialize NIC documents
Rm /etc/udev/rules.d/70-persistent-net.rules
Or
Rm -f /etc/udev/rules.d/70-persistent-net.rules
Then restart init 6
2. Configure LAN IP and mode
Vi /etc/sysconfig/network-scripts/ifcfg-eth0
Press the edit mode to enter the letter O, configured as follows:
DEVICE=eth0
BOOTPROTO=dhcp
NM_CONTROLLED=yes
ONBOOT=yes
TYPE=Ethernet
IPV6INIT=no
USERCTL=no
Configure a static IP requires filling the following few:
BOOTPROTO=static
BROADCAST=192.168.174.255
IPADDR=192.168.174.128
NETMASK=255.255.255.0
Once configured, press ESC to exit edit mode, enter ":! Wq" to save (without the quotation marks)
When the above configuration, use the command: / sbin / service network restart to see whether or not the status is OK with the NIC
Second, the virtual machine configuration
1. Network configuration must have the card in a NAT mode, and with the relevant IP (When you configure a static IP, pay attention to the network configuration in the same segment with its own configuration)
2. In the model built in a virtual machine network card device configuration should be set to NAT