Bridging settings under Vmware

Source: Internet
Author: User

Operating Environment

HOST: win7 x86 SP1

Virtual Machine: VMWare Station 8

System in the Virtual Machine: fedora 15

In the environment, no matter what system or version of the virtual machine, the usage is similar. After all, the core is unchanged.

 

In a Linux system under a vmvm, both the bridging and Nat modes can be temporarily switched to take effect immediately, so you don't have to worry about which one to use.

 
For how Virtual Machine VMware works in three network modes (bridging, Nat, host-only), see my other blog http://www.cnblogs.com/gylei/archive/2012/04/06/2435087.html

 

1. There is nothing to say about the NAT method. If you don't, you should stop learning Linux. Study virtual machines and networks first.

Ii. Small solution for bridging mode setting:
Step 2

After the Virtual Machine fedora is installed, open the vmvm menu bar, click Edit ------ Virtual Network Editor, select the "host Virtual Network ing" tab, and then manually select vmnet0 as your local physical NIC (Select the network card in use. For example, your computer has a wireless network card and a wired network card. If you are using a wireless network, connect the network card to the wireless network card, if you are using a wired network card, connect it to the wired network card.), Do not select automatic settings. Click OK.

Step 2

Enter the operating system of the VM, open the Super Terminal, enter ifconfig eth0, and check the network settings of eth0.
Check whether the VM and the host are in the same network segment. If the host machine IP address is 192.168.0.2, the virtual machine IP address should be from 192.168.0.1 to 192.168.0.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.

Step 2

Set the host system and Linux under the virtual machine.
1) disable the firewall of the host machine; Omitted

2) disable the firewall of the virtual machine;
# Chkconfig iptables off // takes effect after restart and is permanently disabled
#/Etc/init. d/iptables status // you can view the Firewall Status.

3) Disable SELinux of the virtual machine;
# Vi/etc/SELinux/config // change SELinux = enforcing to SELinux = disabled // save and exit. the restart takes effect and is permanently disabled.

# Getenforce // you can view the SELinux status.

Step 2

Test whether the settings take effect.
1) when 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) If the VM is pinged to the Host IP address, the firewall on the host is not closed.

3) Ping each other to complete the settings. // Enjoy !!

If there is still a problem, check whether the firewall is set up, and check whether some operations that need to be restarted take effect have been restarted. Generally, this is not a problem. Start the VM again. Internet access should be available. For users who use dial-up Internet access, they can only be online at the same time under the host and virtual machine.

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.