none
Connecting 2 HyperV Servers and communication VM's

    Question

  • Dear All,

    I am setting up testing enviornment at my office and using two HyperV servers. I would like to connect all the VM's from both the server.

    Example, I am setting up contoso.com domain. One hyperV server contains DC,ADC and ADC's of different sites having different IP schema for each site. For communication purpose i have installed one xp machine having 4 network adapters and gave different IP's to communcate with sites.

    Now on another server i would like to install two more ADC's and Exchange server and one xp machine for communication.A

    And I would like to connect two of these HyperV server to each other.

    My two servers are having IP 172.30.84.21 and 172.30.84.50 and I would like to set up testing enviornment in 192.168.2.0/24.

    How to do this ???

    Regards,

    Nilesh

    Thursday, April 12, 2012 7:37 AM

Answers

  • Hi Nilesh,

    Thanks for posting here.

    After reading you post I understand that we basically want VMs at two physical isolated Hyper-V servers to connect with each other by going through two XP VMs with physical NIC attached where on both hyper-v hosts . the issue we are facing now mostly is the routing configurations , If I misunderstand please let me know .

    172.30.82.0/24                                                                                                                                                     172.30.23.0/24

    172.30.42.0/24-----(Hyerp-V-1)-----XP----- (Physical network) -----XP-----(Hyerp-V-2)-----172.30.29.0/24

    172.30.14.0/24

    First at all please make such only physical NIC has a default on both XP virtual machines and leave it empty on other virtual interfaces . and using the IP address that we assign to the physical NIC on XP machines at opposite at the default gateway address. For instant , I assume both XP machines connect with each other via physical NIC with IP address form IP segment 192.168.1.0/24, so we have IP addresses on :

    XP on Hyper-V-1

    IP address

    Default gateway

    Type

    192.168.1.10

    192.168.1.20

    External

    172.30.82.1

    empty

    private

    172.30.42.1

    empty

    private

    172.30.14.1

    empty

    private

    XP on Hyper-V-2

    IP address

    Default gateway

    Type

    192.168.1.20

    192.168.1.10

    External

    172.30.23.1

    empty

    private

    172.30.29.1

    empty

    private

    Finally , Please TCP/IP Forwarding on both XP matches and rest routing stuffs should be finished automatically by system itself :)

    How to Enable TCP/IP Forwarding in Windows XP

    http://www.itgeared.com/articles/1067-how-to-enable-tcpip-forwarding-in/

    If we have any further question please post to platform network forum :

    http://social.technet.microsoft.com/Forums/en-US/winserverPN/threads

    Thanks.

    Tiger Li


    Tiger Li

    TechNet Community Support

    • Marked as answer by Nilesh_1 Monday, April 23, 2012 9:57 AM
    Friday, April 20, 2012 6:55 AM

All replies

  • Hi,
     
    You can create an External Virtual Network bind to a physical network adapter on each Hyper-V host machine, connect virtual machines to the External Virtual Network, then they can communicate with each other.
     
     

    Vincent Hu

    TechNet Community Support

    Friday, April 13, 2012 2:46 AM
    Moderator
  • Thanks for replying,

    I configured as told by you and two IP's are now pinging with each other. But I would like to connect VM's from both the server.

    Regards,

    Nilesh K.

    Monday, April 16, 2012 10:41 AM
  • Hello Nilesh,

    Do you mean you want to be able to move the virtual machines from one server to the other?

    Joe

    Monday, April 16, 2012 1:18 PM
  • Hi,
     
    But I would like to connect VM's from both the server.
    >> What did you mean? Please provide details.
     

    Vincent Hu

    TechNet Community Support

    Tuesday, April 17, 2012 9:11 AM
    Moderator
  • Thanks for replying joe & Vincent Hu MSFT CSG,

    But let me clear what I exactly want....

    HyperV1 Server

    is having DC(contoso.com) & ADC at one site with same IP subnet. One the same server I configured another two ADC server and place them at virtual sites giving different IP subnet for each server. 2 different IP subnet can not communicate with each other without router.

    For router purpose I install Windows xp machine and added 4 virtual nic cards and gave them the IP of different sites. Now my all the sites are communicating and getting replications.

    IP of DC 172.18.14.135   :-   255.255.255.0  Gateway is 172.18.14.1

    IP of ADC 172.18.14.134 :-   255.255.255.0  Gateway is 172.18.14.1

    IP of ADC on different site 172.30.82.21  255.255.255.0 Gateway is 172.30.82.1

    IP of ADC On another site  172.30.42.21 255.255.255.0 Gateway is 172.30.42.1

    And windows XP is having ip's

    1)172.30.82.1

    2)172.30.42.1

    3)172.18.14.1

    4) this one is configured with physical network settings.

    Above IP's will work as a default gateway for servers.

    On HyperV 2: -

    I would like to install 2 ADC, 1 exchange server and wants add these servers into contoso.com domain.

    IP of ADC

    172.30.29.21  255.255.255.0  172.30.29.1

    172.30.23.21  255.255.255.0  172.30.23.1

    The IP subnet is different for 2 ADC and 1 exchange server. Also I have install 1 windows XP machine as like in HyperV1 server and added 3 NIC's.

    And windows XP is having ip's

    1) 172.30.29.1

    2) 172.30.23.1

    3) this one is configured with physical network settings.

    Now, I would like to connect VM(172.30.29.21) & VM(172.30.23.21) of HyperV1 server to VM(172.18.14.135) & VM(172.18.14.134).

    What should I do??

    Regards,

    Nilesh

    Tuesday, April 17, 2012 12:06 PM
  • Dear All,

    I am still waiting for your reply.

    Please help me out.

    Thanks,

    Nilesh

    Friday, April 20, 2012 6:06 AM
  • Hi Nilesh,

    Thanks for posting here.

    After reading you post I understand that we basically want VMs at two physical isolated Hyper-V servers to connect with each other by going through two XP VMs with physical NIC attached where on both hyper-v hosts . the issue we are facing now mostly is the routing configurations , If I misunderstand please let me know .

    172.30.82.0/24                                                                                                                                                     172.30.23.0/24

    172.30.42.0/24-----(Hyerp-V-1)-----XP----- (Physical network) -----XP-----(Hyerp-V-2)-----172.30.29.0/24

    172.30.14.0/24

    First at all please make such only physical NIC has a default on both XP virtual machines and leave it empty on other virtual interfaces . and using the IP address that we assign to the physical NIC on XP machines at opposite at the default gateway address. For instant , I assume both XP machines connect with each other via physical NIC with IP address form IP segment 192.168.1.0/24, so we have IP addresses on :

    XP on Hyper-V-1

    IP address

    Default gateway

    Type

    192.168.1.10

    192.168.1.20

    External

    172.30.82.1

    empty

    private

    172.30.42.1

    empty

    private

    172.30.14.1

    empty

    private

    XP on Hyper-V-2

    IP address

    Default gateway

    Type

    192.168.1.20

    192.168.1.10

    External

    172.30.23.1

    empty

    private

    172.30.29.1

    empty

    private

    Finally , Please TCP/IP Forwarding on both XP matches and rest routing stuffs should be finished automatically by system itself :)

    How to Enable TCP/IP Forwarding in Windows XP

    http://www.itgeared.com/articles/1067-how-to-enable-tcpip-forwarding-in/

    If we have any further question please post to platform network forum :

    http://social.technet.microsoft.com/Forums/en-US/winserverPN/threads

    Thanks.

    Tiger Li


    Tiger Li

    TechNet Community Support

    • Marked as answer by Nilesh_1 Monday, April 23, 2012 9:57 AM
    Friday, April 20, 2012 6:55 AM
  • Hi Nilesh,

    I also found a good article for reference :

    http://www.infotechguyz.com/server2008/hypervhostrouting.html

    Thanks.

    Tiger Li


    Tiger Li

    TechNet Community Support

    Friday, April 20, 2012 6:58 AM
  • Thanks For replying.

    The solution given by you works.

    Thanks & Regards,

    Nilesh

    Monday, April 23, 2012 9:56 AM