Linux Learning: Virtual machine vmware Configuration Network

Source: Internet
Author: User

1. Newly installed virtual system

1.1 Viewing virtual machine gateways

Example: 192.168.64.2

Description: The virtual gateway is only available in NAT mode

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/8E/2E/wKioL1i34-OCrcYnAABB4eHy3Pk434.png "title=" twz1o ' 2ls%c0sw_p_s0{tig.png ' alt= "Wkiol1i34-ocrcynaabb4ehy3pk434.png"/>

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/8E/2E/wKioL1i35CeAJcedAAFI4YmfrJc758.png "title=" yq7b{ Tj~g0_480@ekd1j%kt.png "alt=" Wkiol1i35ceajcedaafi4ymfrjc758.png "/>

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/8E/30/wKiom1i35FODrggjAACVa7pCCZs617.png "title=" Oiardtil3{ki~2 ({1sv8ka5.png "alt=" Wkiom1i35fodrggjaacva7pcczs617.png "/>

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/8E/2E/wKioL1i35IzxhKqyAAGIt1Ob_ic080.png "title=" OEN0QS) cg5g$h0{9$ff_{yw.png "alt=" Wkiol1i35izxhkqyaagit1ob_ic080.png "/>

1.2 Configuring the WIN virtual network card IP

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/8E/30/wKiom1i35Q3S3aE-AADnfc1-3f4402.png "title=" _ Bjca66ii0424s]r0tgu$of.png "alt=" Wkiom1i35q3s3ae-aadnfc1-3f4402.png "/>

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/8E/31/wKiom1i35Zminfr9AAGaa7c6veA712.png "title=" 48b9n ' Ivni6xmx2qsb3o ' uo.png "alt=" Wkiom1i35zminfr9aagaa7c6vea712.png "/>

1.3 Configuring the Virtual NIC IP for Linux

Example: 192.168.64.3

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/8E/31/wKiom1i355DADou2AAB4zceCBUI626.png "title="]_m$ FO) q0i$@8glp98u697k.png "alt=" Wkiom1i355dadou2aab4zcecbui626.png "/>

Or

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/8E/2F/wKioL1i359fg_AusAABq0V9qSRE079.png "title=" C1~TJ [Iuufew8$ds[{jj7r5.png "alt=" Wkiol1i359fg_ausaabq0v9qsre079.png "/>



650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/8E/2F/wKioL1i35_rjD-ZMAAFFhVXkAHM159.png "title=" 0LTR1N (DF) (UCUK4) 4w9ytp.png "alt=" Wkiol1i35_rjd-zmaaffhvxkahm159.png "/>


Note: If you do not modify it with the root user, it will not take effect immediately.

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/8E/31/wKiom1i36DXS_CuxAACoMUAxnTo092.png "title=" gv3y6wvnst~7% ' PK@0X_37K.png "alt=" Wkiom1i36dxs_cuxaacomuaxnto092.png "/>

1.4 Exception resolution

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/8E/2F/wKioL1i36Lfhl07pAAAs2y4y08c375.png "title=" Fufa0tvr3t0 ' U5} $I%ygc]o.png "alt=" Wkiol1i36lfhl07paaas2y4y08c375.png "/>


Solve:

First step :vim Edit file /etc/sysconfig/network-scripts/ifcfg-eth0

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/8E/2F/wKioL1i36RSjYYIeAABAn6GmVng409.png "title=" Y4ta534{w24ugyuzkzb~z (q.png "alt=" Wkiol1i36rsjyyieaaban6gmvng409.png "/>

Step Two: Restart the network

Service Network restart

2. Cloned virtual machines

After restarting the network service, it appears:

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/8E/31/wKiom1i37JTDIkPnAAAbAyDN_wg041.png "title=" X ' MNY ' Pns[h$mn0iy{]7 ' ba.png "alt=" Wkiom1i37jtdikpnaaabaydn_wg041.png "/>


Causes of failure:
Because cloning a virtual machine, VMware simply modifies the name of the virtual machine, and does not modify any information on the virtual hard disk, causing

The MAC address of the NIC after cloning does not match the MAC address recorded in the operating system, causing the eth0 to start up. The operating system records a

Add new network card, the name of the new network card ETH1,MAC address is the new MAC address assigned by VMware

Workaround:

Method 1:

Ifconfig eth0 (corresponding ETH network card) look at its Mac, replace the original Mac with today's Mac, then restart the network service,

Problem solving. (This method applies to 4 and 5 before the Redhat 6 version.)

Method 2:

/etc/udev/rules.d/70-persistent-net.rules configuration file.

The new Mac will appear in this file. Therefore, you need to change two files after Redhat 6:

Modify the/etc/udev/rules.d/70-persistent-net.rules file

Delete the information about eth0. The name of the network card that modifies the second eth1 is eth0.
Modify the MAC address in/etc/sysconfig/network-scripts/ifcfg-eth0 to

/etc/udev/rules.d/70-persistent-net.rules the MAC address of the modified eth0.

Restart the Network service for problem resolution.


Note: If you are still prompted with the error message "Device eth0 does not seem to be present, delaying

Initialization. " Then the reboot can be solved.

This article is from "I Love Big gold" blog, please be sure to keep this source http://1754966750.blog.51cto.com/7455444/1902745

Linux Learning: Virtual machine vmware Configuration Network

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.