CentOS 7 and network card settings, centos network card

Source: Internet
Author: User

CentOS 7 and network card settings, centos network card

Installing LinuxOS in VMWare is very common. However, I would like to summarize some questions about the VM's Internet access. I hope I can get answers from my predecessors.


I. Three options for setting the VMWare NIC:

Bridged bridging, NAT Network Address Translation, Host-ony Host mode. The preceding three methods are commonly used. Of course, there are two methods: Custom and LAN segment. However, I don't know much about them. I won't talk about them here.

In the Bridged Bridge Mode, the bridge mode is to use the host where the virtual machine is located to access the Internet. Generally, the NIC is set to DHCP, so that the Internet can be accessed. In this mode, the host and virtual machine can be pinged;

NAT Network Address Translation. In this mode, the IP address of the virtual machine can be configured at will. The nic ip address of the Virtual Machine and the IP address of the host can not be in the same network segment. The principle is to convert the Virtual Machine IP address into the host's Internet IP address for Internet access. However, in this mode, the ping between the VM and the host fails.

Host-only Host mode. In this mode, you can regard a virtual machine as a real Host. The communication between the VM and the host needs to be routed. Otherwise, the communication will fail. In this mode, the virtual machine environment can be completely closed for experimentation.


Speaking of experience, when I set up an OpenStack environment, I added several more NICs to the virtual machine, one of which is set to the NAT form, which is mainly used for surfing the internet; other virtual NICs can be set to Host-only for internal experiments.


Ii. problems encountered in the experiment:

2.1 experiment environment

Hardware: Thinkpad T420

OS: windows 7

Virtual Machine: VMWare 11.1.0

Linux: CentOS 7

2.2 Environment Introduction

First, expand three NICs on VMWare. Now there are four NICs on VMWare, one being NAT and the other three being Host-only,


Note: a strange phenomenon occurs when you use a NAT network adapter to access the Internet. However, when you add a default gateway to one of the Host-only network adapters, you will not be able to access the Internet. When you disable or delete the default gateway, you can access the Internet.


Please explain the cause. Thank you!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.