How Route between two different virtual networks in Hyper-V

When new internal network is created from “Virtual Network Manager”, new virtual “Local Area Connection X” is automatically created under “Control Panel > Network Connections”. We can use RRAS (routing and remote access) to route between virtual “Local Area Connection”.

  1. Open Hyper-V console
  2. Click on “Virtual Network Manager” under “Actions” Pane
  3. Enter Name, choose “Internal”, click “Add”, click “OK”
  4. You will noticed that new Local Area Connection is created under “Control Panel > Network Connections”
  5. Right click on the newly created Local Area Connection, choose properties.
  6. On TCP/IPv4 screen, enter IP: 10.1.0.1 , Subnet: 255.255.255.0 and no gateway. ( Repeat step 2 to 6 if you would like to create multiple networks )
  1. Open “Routing and Remote Access” console. ( Server Manager > Network Policy and Access > Routing and Remote Access)
  1. Right click on “Routing and Remote Access” and choose “Configure and Enable Routing and Remote Access”
  1. Choose “Custom Configuration”
  1. Choose “NAT” and “LAN routing”, click Next
    NAT allows your VMs to access the internet without exposing them.
    LAN routing allows you route between Local Area Connections
  1. Click Finish and Start the service.
  1. Browse to “NAT” under IPv4, Right click and choose “New Interface”, choose the interface that you use to connect to the internet.
  1. Choose “Public interface connected to the internet”, check “Enable NAT on this interface”, click OK

Now use 10.1.0.1 as the gateway on Hyper-V guest VM and you will be able to access the internet and to other subnets.

SCREENSHOTS

Hyper-V RRAS

Hyper-V RRAS

Hyper-V RRAS

Hyper-V RRAS

Hyper-V RRAS

Hyper-V RRAS

Hyper-V RRAS

Hyper-V RRAS

Hyper-V RRAS

Hyper-V RRAS

Hyper-V RRAS

 

Source: http://www.infotechguyz.com/server2008/hypervrouting.html

Gửi phản hồi

Mời bạn điền thông tin vào ô dưới đây hoặc kích vào một biểu tượng để đăng nhập:

WordPress.com Logo

Bạn đang bình luận bằng tài khoản WordPress.com Log Out / Thay đổi )

Twitter picture

Bạn đang bình luận bằng tài khoản Twitter Log Out / Thay đổi )

Facebook photo

Bạn đang bình luận bằng tài khoản Facebook Log Out / Thay đổi )

Google+ photo

Bạn đang bình luận bằng tài khoản Google+ Log Out / Thay đổi )

Connecting to %s

%d bloggers like this: