Share via


Network Virtualization with NVGRE

?????. ?? ??????? ???? ??????.

??? Windows Server 2012 R2?? NVGRE Gateway? ???? Network Virtualization ? Virtual Machine? Internet Access?? ???? ??? ??? ????????.

??, ??? ??? Network ? Server ??? ???????.

1. GatewayVM? Hosting ? Server 1?

2. VM? Hosting ? Server 1? ??

Host ?? Internet Access? ??? ?????.

image

 

?? ?? ???? ?? Step? ????? Network Virtualization? ???? ? ????.

Step1. Configuring Management, Front-end, Cluster and Live Migration networks in Fabric

- Management, Cluster, Live Migration? ???? ?????.

- Front-end? Tenant ?? VM? Internet? Access?? ??? Gateway VM? Attach?? Network? ?????.

clip_image001

image

 

Step2 Creating IP pools for your Management, Front-end, Cluster and Live Migration network

- Front-end? Logical Network?? ?????? Front-end?? IP Pool? ?????.

- Internet Access? ???? ?? Network??? Default Gateway? DNS ??? ?????.

clip_image003

image

 

Step 3 Creating the Provider Address logical network used for network virtualization

- Network Virtualization?? PA(Provider Address)? ??? Network? ?????.

- ?? ??? ????? 192.168.4.11? ?? PA ???. ? PA ?? IPConfig ???? ???? ? ????.

clip_image007

- Back-end Network? Network Virtualization? ??? ???? Network ??? ?? Option ??? “Allow new VM networks created on this logical netowrk to use network virtualization”? ???? ???.

clip_image008

clip_image009

 

Step4 Creating and assigning an IP pool to the Provider Address network

- PA? ?? IP pool? ?????.

clip_image010

clip_image011

clip_image012

image

 

Step5 Creating Logical Switches with Port Profiles

- Virtual Port profile ? Uplink Port profile? ?????.

- ??? Uplink profile? Port profile? ??? Logical Switch ?????.

 

Creating the Virtual Port Profile for tenants using NVGRE

- Virtual network adapter port profile ??

clip_image014

clip_image015

- Virtual Machine?? ??? Virtual Network Adapter? Port Profile?? ?? “Allow guest specified IP Addresses” ??? ???? ???.

clip_image016

clip_image017

 

 

Creating a port classification for tenants using NVGRE

clip_image018

 

 

Uplink Port Profile

- ?? NIC? ?? ?? ????? Uplink profile? ??? ??? ???.

- ?? Internet Access? ?? ??? NIC? ?? ???? ?? NIC? ?? Uplink profile? ??? ?????.

- ? ????? Management, Cluster, Live Migration, Internet Access? ?? ??? NIC?? ????? ??? Uplink Port profile? ??????.

clip_image019

2012 R2 Host ??? ???? ?? "Enable Hyper-V Network Virtualization" ??? ??? ??? ????. Default? Eanble ?? ????.

clip_image020

clip_image021

clip_image022

 

Logical Switch

- Logical Switch? Uplink profile? Virtual port profile? Container ??? ???.

clip_image023

- NIC? ??? ??? ?? Teaming? ?? ?????.

clip_image024

clip_image025

clip_image026

 

Step 7 Creating VM Networks

- Logical Network ?? ?? "Create a VM network with the same name to allow virtual machines to access this logical network directly" ??? ????? ?? ??? ????? ???.

clip_image027

 

Step 8 Configuring networking on the hosts

- Host ??? Logical Swtich? ???? ???, physical NIC? logical network? ?????? ???.

- VM? Hosting?? Hyper-V Host?? Management Virtual Adapter? ????? ?????.

image

 

- Gateway VM? Hosting?? Hyper-V Host ??? Logical Switch ? ?????.

image

 

Step9 Configure the gateway hosts

- Gateway VM? ?? Dedicated Host? Network Virtualization Host? ?????.

image

 

Step 10 Creating the Network Virtualization Gateway

- ?? Gateway VM? ???? Domain? Join ??? RRAS ??? ?????.

- ??? NIC? Front-end Network? ???? ??? NIC? ?? ??? ?? None?? ?? ???.

--> None? Provider Address? ?? Network, ? Tenant Network? ?????.

clip_image032

 

Step 11 Post configuration of virtualization gateway service

- ??? Virtual Network Adapter? ??? ?? IP? ?????.

- Front-end?? ?? Internet Access? ??? ??? Back-end(Network Virtualization ??)?? IP? ???? ????.

image

Step 12 Adding the virtualization gateway Network Service in VMM

- Gateway VM? Network Service? ?????. Network Service? ?????? S2S VPN, NAT ??? BPG? ??? ? ????.

clip_image034

clip_image035

clip_image036

clip_image037

 

Step 13 Creating VM Networks with NAT

- Network Virtualization? ???? ???? Network Virtualization? Enable ? Logical Network? Bind? VM Network? ???? ??.

- ?? Back-end Network? ???? ???.

- ???? ??? Contoso Tenant? Fabrikam Tenant Network? ?????.

clip_image038

clip_image039

clip_image040

- VM? Internet Access? ????? ?? ??? NAT ??? ???.

clip_image041

image

clip_image043

clip_image044

 

- VM Network ?? ?? IP Pool? ??????.

clip_image045

clip_image046

clip_image047

clip_image048

- ?? VSID ? ????? ??? 10.0.1.0/24? Subnet? ?? ? ??? ???.

clip_image049

- 10.0.1.0/24? ???? IP Pool? ??????.

clip_image050

clip_image051

clip_image052

clip_image053

- Gateway VM? ??? NAT IP Address ??

 

Step 14 Deploying Virtual Machines connected to VM Networks

- 10.0.0.0/24? 10.0.1.0/24 Subnet? ???? VM? ?????.

clip_image057

clip_image058

clip_image059

clip_image060

- NAT ?? ? VM?? ?? ??? ??? ??? ???.

image

 

- Gateway VM?? NAT ?? ???? ??? ???.

PS C:\> Get-NetNat

PS C:\> Get-NetNatExternalAddress

PS C:\> Get-NetNatSession

 

Step 15 Verifying connectivity and troubleshooting

1) Provider Address ??

PS C:\> Get-NetVirtualizationProviderAddress

ProviderAddress : 192.168.1.11

InterfaceIndex : 13

PrefixLength : 0

VlanID : 0

AddressState : Preferred

MACAddress : 001dd8b71c16

ManagedByCluster : False

 

2) VM network? ??? IP ??? ?? Record Policy ??? ??

PS C:\> Get-NetVirtualizationLookupRecord

CustomerAddress : 10.0.1.2

VirtualSubnetID : 10571160

MACAddress : 001dd8b71c0f

ProviderAddress : 192.168.1.12

CustomerID : {DAF9A3B7-7FA5-459B-B6D6-AC662C42E41B}

Context : SCVMM-MANAGED

Rule : TranslationMethodEncap

VMName : ContosoVM2

UseVmMACAddress : False

Type : Static

CustomerAddress : 10.0.0.2

VirtualSubnetID : 638418

MACAddress : 001dd8b71c0e

ProviderAddress : 192.168.1.11

CustomerID : {DAF9A3B7-7FA5-459B-B6D6-AC662C42E41B}

Context : SCVMM-MANAGED

Rule : TranslationMethodEncap

VMName : ContosoVM1

UseVmMACAddress : False

Type : Static

 

- ?? ??? ????? ?? Tenant ?? ?? ?? Subnet ?? ???? Flow? ???? ? ????.

- Blue1 ?? Blue2? Packet ?? ?? Flow

clip_image062

clip_image063

clip_image064

clip_image065

clip_image066

 

3) Routing ?? ??

- ?? ??? ?? ??? VM Network?? ?? Subnet?? ??? RoutingDomainID(RDID)? ????.

- VirtualSubnetID(VSID)? ?? Subnet? ??? ??? ??? ???.

PS C:\> Get-NetVirtualizationCustomerRoute

RoutingDomainID : {DAF9A3B7-7FA5-459B-B6D6-AC662C42E41B}

VirtualSubnetID : 10571160

DestinationPrefix : 10.0.1.0/24

NextHop : 0.0.0.0

Metric : 0

RoutingDomainID : {DAF9A3B7-7FA5-459B-B6D6-AC662C42E41B}

VirtualSubnetID : 638418

DestinationPrefix : 10.0.0.0/24

NextHop : 0.0.0.0

Metric : 0

 

?????.