VMware in the FreeBSD system using NAT-mode Internet

Source: Internet
Author: User

This article addresses the following issues:

1, why the use of NAT Internet

2, respectively to Win7 and how to configure the VM can access the Internet

3, how to configure FreeBSD, you can use DHCP to automatically obtain IP and DNS

Process:

VM can be used in the network mode see: Virtual network card and host network interface between the relationship, in order to facilitate travel or solve the company using IP/MAC binding conditions of virtual machine access problems, host_only and bridge methods can not be very good to solve the above problems, so the use of NAT program.

Configuration process:

The following work should be done on the basis of understanding NAT

1, set the VMNET8 IP

2, set the VMnet1 IP

3, configure the VM virtual network

4. Configure FreeBSD

Specific work:

1, set the VMNET8 IP

2, set VMnet1

Re-configure VM1 adapter mode vmnet1->property-> sharing

Note: If the system prompts you to force the IP to be 192.168.137.1 or the like in the above procedure, it will be prompted to enforce the IP. In the first use of the author found that do not use the mandatory IP after the normal operation, but can be normal operation and then change the IP and can work properly, it is inconceivable.

3, configure the VM virtual network

The following NAT set IP must be in the same network segment as VMnet8

NAT Setting:

As for Gatway IP as long as not with VMNET8 repeat can

4. Modify FreeBSD for DHCP mode

Command mode: #ee/etc/rc.conf

You can then restart the NIC by using several ways:

The first method: # SH/ETC/RC

The second method: #/etc/netstart

The Third Way: Reboot the Machine

Then look at the IP configuration:

#netstat-rn

Test again:

Network has been unblocked, the back can do a variety of tests, do not worry about travel caused by a variety of network problems OH.

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.