Configure two NICs for CentOS 6.5, one for eth0, one for eth1, and the Master for example
1. Select "Master" and "Edit virtual machine settings" as shown below
2, click "Add", as follows
3. Select "Network Adapter" and click "Next", as follows
4. the network I configured is NAT mode, and here by default, click Finish
5. Click "OK" to complete the NIC add
6. Start the system and switch to the/etc/sysconfig/network-scripts/directory.
7, configure the first network card, that is, configure the Ifcfg-eth0 file
Ifcfg-eth0 file contents are as follows
device=eth0# hwaddr=: 0C:e1:b2:0etype=ethernet# uuid=e92af1d5-eaa7- 4480-b464-0e064cbb9497onboot=yesnm_controlled=yes# bootproto=dhcpbootproto=Static ipaddr=192.168. 46.128 netmask= 255.255. 255.0 gateway= 192.168. 46.2
IP, gateway, subnet mask, please modify it according to your own situation
8. Configure the second network card, that is, configure the ifcfg-eth1 file, the default file does not exist, you need to create the file first
ifcfg-eth1 file contents are as follows
device=eth1# hwaddr=: 0C:e1:b2:0etype=ethernet# uuid=e92af1d5-eaa7- 4480-b464-0e064cbb9497onboot=yesnm_controlled=yes# bootproto=dhcpbootproto=Static ipaddr=192.168. 46.129 netmask= 255.255. 255.0 gateway= 192.168. 46.2
IP, Gateway, subnet mask, please modify it according to your own situation
9. Enter "Service network restart" to restart the network
10. enter "Ifconfig" to view configuration status
11, through the Xshell and other tools to connect, can also be connected to success
If you think reading this blog gives you something to gain, you might want to click " recommend " in the lower right corner.
If you want to find my new blog more easily, click on " Follow me " in the lower left corner.
If you are interested in what my blog is talking about, please keep following my follow-up blog, I am " Liu Chao ★ljc".
This article is copyright to the author and the blog Park, Welcome to reprint, but without the consent of the author must retain this paragraph, and in the article page obvious location to the original link, otherwise reserves the right to pursue legal responsibility.
Two network cards configured for CentOS 6.5 based on VMware