Overview of the CentOS connectivity network on VMware

Source: Internet
Author: User

I. BASIC ISSUES

After installing a virtual machine on VMware, we often need to connect to the network, and we may switch between wireless network, wired network, dial-up Internet, three kinds of network environment (I use the notebook at home is dial, the company is Wired). If you use the physical bridging mode in the above three cases, you may need to change the configuration to use it very cumbersome, the following we bridge to bridge the way to solve the above problems.


Ii. process of Settlement

1. Scenario Description

A new virtual machine has not added a network card, and now the physical host is connected to the wireless network, and the newly added virtual machine needs to connect to the Internet. The following is the network connection diagram for the solution:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/3B/wKiom1X34GnBOgELAAE8_bChwVk080.jpg "title=" Network basic diagram. jpg "alt=" wkiom1x34gnbogelaae8_bchwvk080.jpg "/>

2. Now add a virtual network card to the machine

Currently I have a network card:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/38/wKioL1X34xjA0ZqUAAH6kMffFtM230.jpg "title=" 01.jpg "alt=" wkiol1x34xja0zquaah6kmffftm230.jpg "/> add virtual network card:

Note When adding a Microsoft loopback port, the current system already has a loopback port, now add the name "#2".

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/73/3B/wKiom1X34TvDM2pOABQqXlepfxc364.gif "title=" add_ Net.gif "alt=" Wkiom1x34tvdm2poabqqxlepfxc364.gif "/>


3. Configure the address for the newly added loopback adapter and bridge to the wireless network card

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/73/3B/wKiom1X34lnhWrEWABAvcOw1qfE791.gif "title=" Qieojie.gif "alt=" Wkiom1x34lnhwrewabavcow1qfe791.gif "/>

4. Configure the VMware virtual network and add a new network bridge to the new virtual NIC

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/73/3B/wKiom1X34v-B7RuyAAvsFBpwEIU895.gif "title=" Netconf.gif "alt=" Wkiom1x34v-b7ruyaavsfbpweiu895.gif "/>

5.CENTOS Virtual machine configuration nic

Since this virtual machine has already added the network card, now to re-add, you need to remove the network card information before. Each time you add a network card in the virtual machine will also produce the corresponding network card information in the file, the file information must be added to the network card one by one or when the network card will be error.

[Email protected] ~]# Vi/etc/udev/rules.d/70-persistent-net.rules

Clear outdated NIC information and restart:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/39/wKioL1X4Bp3wpdwvAAQn_BGW7bE054.gif "title=" Rmudev.gif "alt=" Wkiol1x4bp3wpdwvaaqn_bgw7be054.gif "/> add a new NIC for the virtual machine (select US VMnet10):


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/3C/wKiom1X4BPni4P0-AAdbHf_EQyc044.gif "title=" Addnet.gif "alt=" wkiom1x4bpni4p0-aadbhf_eqyc044.gif "/> Configure the virtual machine NIC and verify that you can connect to the Internet:

First check if the/etc/udev/rules.d/70-persistent-net.rules file only eth0 a network card information

Then configure the NIC information

Finally verify that you can ping the gateway and the 114.114.114.114-DNS server in the Internet

device=eth0type=ethernetonboot=yesbootproto=staticipaddr=192.168.137.20netmask=255.255.255.0gateway= 192.168.137.1dns1=114.114.114.114dns2=8.8.8.8

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/73/3C/wKiom1X4BXvwNq8BABAPaOhskmg994.gif "title=" Connfnet.gif "alt=" Wkiom1x4bxvwnq8babapaohskmg994.gif "/>


Iii. Summary

The above method basically can deal with VMware on the virtual machine on the Internet, usually we have to access the virtual machine in the physical machine directly use 192.168.137.20 can, if the virtual confidential connection network then we create a virtual network card can be bridged to the Internet network card. Other virtual machines also bridge to VMnet10, and they are also directly accessible to each other.

If your machine is also accessible to other machines on the LAN, use the bridge provided by VMware directly to the physical network.

This article is from "Linux Novice learning" blog, please be sure to keep this source http://xzb2015.blog.51cto.com/8796643/1695085

Overview of the CentOS connectivity network on VMware

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.