Virtual Machine implements DHCP Relay
Virtual machine experiment: two window server 2008
A client is implemented to get another network segment.
1. Build an environment
First: windows server 2008 address vm1:192.168.1.1
Second: windows server 2008 address vm1: 192.168.1.2 vm8: 1.1.1.1 (two network cards need to be added, mostly in the second configuration)
The third: VM8: automatic acquisition of ip
two。 Install the role dhcp on the first console, see the figure:
3. Add the ip addresses of two network segments to it.
4. Wait for the installation to complete.
After installation, set up in DHCP:
(note that the address of the second windows server 2008 should be filled in here, because the second is a router. )
To complete the result, you can change the second operation.
5. Add two network cards to the second virtual machine and set them to VM1 VM2
6. Enter ip address
7. Installation role
8. Configure DHCP trunking.
9. Then right-click in ipv4 to add a relay agent.
10. Add local connection 2 to the relay agent
11. Right-click the property to fill in the address of the dhcp.
twelve。 Disable the local connection before enabling it in window 7. You can then view the acquired 1.1.1.0 network segment.