Linux dual card configuration, super-detailed (applicable to cloud computing iaas build)

table of Contents

 

Step one: Check the firewall

Step two: turn off the firewall

Step three: View Network

Step Four: Modify and edit network

Step five: Check the virtual machine configuration

Step Six: modify the network configuration is

Step 7: preparation of a virtual machine static IP

(1) Configuration of a default card

After entering the command, the Enter key

Save and exit (: wq)

(2) configuring the second block default NIC

Step eight: Restart the network card

Step 9: connecting the external network, ping Baidu


Step one: Check the firewall

Check is in the closed off from the state.

 

 

Step two: turn off the firewall

All must turn off the firewall before they can configure the network.

 

Step three: View Network

V1 and V8 virtual machine network.

Step Four: Modify and edit network

After setting on the machine, you can build a new virtual machine. Because if you have built virtual machines, physical machines in the configuration of IP , errors may occur.

Step five: Check the virtual machine configuration

 

Edit virtual machine CD / DVD (IDE) first mirror must be CentOS , or when entering the interface, will go wrong. The first network adapter must be the NAT , because in the construction of the virtual machine IP first card when they use NAT , even when a card is created, it must when NAT.

 

 

Step Six: Modifying Virtual Network Editor

The first one is the NAT card, corresponding to v8   second card, as v1 card

 

Step 7: preparation of a virtual machine static IP

(1) Configuration of a default card

After entering the command, the Enter key

Save and exit (: wq)

(2) configuring the second block default NIC

 

After entering the command, the Enter key

 

Save and exit (: wq)

In the second card, the default gateway to be omitted.

Note: 1, BOOTPROTO has three settings, BOOTPROTO = static (Static the IP BOOTPROTO = DHCP  (Dynamic the IP ) BOOTPROTO = none  None (not specified) , DHCP automatic acquisition ip address , none fixed ip address , static fixed ip address here we set up for a static IP .

2 , IPADDR: network ip address, NETMASK: network mask, GATEWAY: the default gateway .

3 , the DNS domain name

 

 

Step eight: Restart the network card

Step 9: connecting the external network, ping Baidu

 

Nine steps to complete the connection to external networks, then we can also cross ping IP to test our intranet.

Different computer may have different problems, this method is only for reference.

Published 32 original articles · won praise 11 · views 6202

Guess you like

Origin blog.csdn.net/Cai1010110/article/details/100183615