First, in the case of interconnection, the host as the client, the virtual machine as the server.
1. Network card
Click the bottom right corner of the virtual machine interface to open the settings
2. Select Network adapter, add
3, follow the steps and click
4, it should be noted that this time to select "Host mode only"
Then click: Finish
5, this time found that there will be two network cards
Then click: OK
6. After the hardware is reloaded, change the adapter settings below
7, at this time we first disable Bluetooth, right-click and then disable it, then change the IP, right click on the point properties
8, according to the graphic selection
9, select: Use the same IP address
The IP address can be filled in by itself, the first three bits to be with the following we want to fill the corresponding
Just fill it out and make sure it's okay.
10. Similarly, change the IP address of the other
11, on the same operation, change to: Use the following IP address
Then click OK
12, after this, we need to shut down the firewall
Follow the instructions, and then click
13, at this time, the host's IP address to the virtual machine IP address interoperability, as shown in
14, when we open a command prompt, enter ping 192.168.1.100 interworking, and then enter ping 192.168.1.110 at this time display as
15, this time we want to open Windows features
16, add a new hard disk, used to put files
Similar to adding network adapters
17, select the hard drive to add, always point next, the last point to determine
18. Right click on the computer, select Manage, then action, click OK
19. Right-click on Disk 1, click, create a new simple volume
After coming out of the wizard. Keep the next step.
20. After the new, the desktop display
21. Create a new two folder on a fresh disk
22, and in each file to create a new index-named HTML file (you can create a new text document, write the corresponding content, and then change the suffix name)
23. Click the Start menu and enter IIS
24. After opening, select the first site basic settings
25. You need to select a site here
26, the first one we choose ACCP
27. After you confirm, click Bind
28, then click Edit, assign IP address
Then OK, close
29, then the first site is bound, then right click on the site
Click Add Site
30. Then, in turn, site name, select path, assign IP, click OK
31, at this time to the host, open the browser, enter the appropriate IP address
In this way, our first approach is complete.
Second, based on different ports
1. Click Bindings on the interface
2, then edit, change IP and port number
Click OK
3, this time we use the browser to see
Iii. using the change Hosts file
1. Click on the first website, click Bind, edit, add host name
2, click the Second website, the same way, here to note is the port number to change back to the original
3. Re-open a virtual machine here, change the IP address
4, and then look, whether it can exchange
This is possible.
5, open the C drive, according to the following path, find the Hosts file
6, open the way: Notepad
7, the input content
8. Click Save
9. Open the browser and enter the website
Here are three ways to test it.
One host to build multiple sites, using three ways