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