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.