Linux switching Nic mode from Nat to bridge in virtual machine unable to display NIC

Source: Internet
Author: User

Linux centos6.5 switch network card mode from Nat to bridge in virtual machine unable to display NIC


Today, in the virtual machine mounted system, using ifconfig to see the address of the next network card, found not in the LAN, and later found that the virtual machine is set to NAT, so the NAT switched to bridging mode immediately but there is a situation:

1. Use Ifconfig to display the following information

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5C/96/wKiom1Ud7BehCzF8AAF-ElqKXVs297.jpg "title=" 3.jpg " alt= "Wkiom1ud7behczf8aaf-elqkxvs297.jpg"/>

and using Dhclient to get from the motion:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5C/96/wKiom1Ud7GnhBkx3AAE3wHhIlS0374.jpg "title=" 2.jpg " alt= "Wkiom1ud7gnhbkx3aae3whhils0374.jpg"/>


This is still no address, restart the network service

/etc/init.d/network restart


2, use the VI command to open the network card configuration configuration information, and then change the Onboot=no to Onboot=yes.

Vi/etc/sysconfig/network-suripts/ifcf-eth0

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5C/96/wKiom1Ud7yOhBFLZAADGH0TR9lY629.jpg "title=" 4.png " alt= "Wkiom1ud7yohbflzaadgh0tr9ly629.jpg"/>

3. Restart the Network Service

4, the use of ifconfig, this network card information finally came out

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5C/92/wKioL1Ud8YDSAmMWAAJjmMhRKRc133.jpg "title=" 5.png " alt= "Wkiol1ud8ydsammwaajjmmhrkrc133.jpg"/>


The above is only one mistake in the experiment, there may be other solutions, but I solved it by this way. There is no wrong place also ask the big God correct!


This article is from the It Exchange Learning blog, so be sure to keep this source http://sxct168.blog.51cto.com/824373/1627900

Linux switching Nic mode from Nat to bridge in virtual machine unable to display NIC

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.