VM bridging mode configuration

Source: Internet
Author: User
1. after centos is installed under the VM, open the vmvm menu bar, click Edit ------ Virtual Network editor, and select the "host Virtual Network ing" tab, then manually select vmnet0 as your local physical NIC (select the NIC you are using, for example, your computer has a wireless Nic and a wired Nic; you are using a wireless network now, connect to the wireless network card. If you are using a wired network card, connect to the wired network card.) do not select automatic settings. Click OK. 2. Enter the virtual machine operating system, open the Super Terminal, enter ifconfig eth0, and check eth0's network settings. Check whether the VM and the host are in the same network segment. If the host machine IP address is 192.168.15.2, the virtual machine IP address should be from 192.168.15. 1 to 192.168.15.254. The most important step is to set the Virtual Machine gateway as the physical IP address of the host. This is very important. Many people may not be connected to the virtual machine, and the Host IP address is used as the gateway of the virtual machine. 3. configure/etc/sysconfig/network-script/ifcfg-Lo device = eth0 # Nic name bootproto = static # static hwaddr = 00: 0C: 29: 69: 54: 1D # for MAC addresses, use ifconfig eth0 to view onboot = yes # ipaddr = 192.168.15.225 # your IP address netmask = 255.255.255.0 # your subnet mask network = 192.168.15.0 # broadcast = 192.168.15.255 # gateway = 192.168.15.1 # Default Gateway 4. service Network restart 5. test whether the settings take effect. 1) if the host is pinged to the IP address of the eth0 Nic of the VM, the firewall or SELinux of the VM is not disabled. 2) the Virtual Machine is pinged to the Host IP address // The firewall on the host is not closed 3) Ping each other to complete the settings. // Enjoy !!
6. This device is not active.
Recommended service NetworkManager restart
/Etc/init. d/network restart
Pop-up interface eth0: Error: Unknown connection: f7d2609a-d666-4c4e-9ce8-01ae908dc239
[Failed] 
However, I have another problem: 
Pop-up interface eth0: Error: Unknown connection: f7d2609a-d666-4c4e-9ce8-01ae908dc239 
[Failed] 
This problem only need to/etc/sysconfig/network-scripts/ifcfg-eth0 configuration file UUID = "f7d2609a-d666-4c4e-9ce8-01ae908dc23 9" comment out OK, of course, delete is not affected. 


 

VM bridging mode configuration

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.