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? ??? ?????.
?? ?? ???? ?? 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? ?????.
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 ??? ?????.
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 ???? ???? ? ????.
- Back-end Network? Network Virtualization? ??? ???? Network ??? ?? Option ??? “Allow new VM networks created on this logical netowrk to use network virtualization”? ???? ???.
Step4 Creating and assigning an IP pool to the Provider Address network
- PA? ?? IP pool? ?????.
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 ??
- Virtual Machine?? ??? Virtual Network Adapter? Port Profile?? ?? “Allow guest specified IP Addresses” ??? ???? ???.
Creating a port classification for tenants using NVGRE
Uplink Port Profile
- ?? NIC? ?? ?? ????? Uplink profile? ??? ??? ???.
- ?? Internet Access? ?? ??? NIC? ?? ???? ?? NIC? ?? Uplink profile? ??? ?????.
- ? ????? Management, Cluster, Live Migration, Internet Access? ?? ??? NIC?? ????? ??? Uplink Port profile? ??????.
2012 R2 Host ??? ???? ?? "Enable Hyper-V Network Virtualization" ??? ??? ??? ????. Default? Eanble ?? ????.
Logical Switch
- Logical Switch? Uplink profile? Virtual port profile? Container ??? ???.
- NIC? ??? ??? ?? Teaming? ?? ?????.
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" ??? ????? ?? ??? ????? ???.
Step 8 Configuring networking on the hosts
- Host ??? Logical Swtich? ???? ???, physical NIC? logical network? ?????? ???.
- VM? Hosting?? Hyper-V Host?? Management Virtual Adapter? ????? ?????.
- Gateway VM? Hosting?? Hyper-V Host ??? Logical Switch ? ?????.
Step9 Configure the gateway hosts
- Gateway VM? ?? Dedicated Host? Network Virtualization Host? ?????.
Step 10 Creating the Network Virtualization Gateway
- ?? Gateway VM? ???? Domain? Join ??? RRAS ??? ?????.
- ??? NIC? Front-end Network? ???? ??? NIC? ?? ??? ?? None?? ?? ???.
--> None? Provider Address? ?? Network, ? Tenant Network? ?????.
Step 11 Post configuration of virtualization gateway service
- ??? Virtual Network Adapter? ??? ?? IP? ?????.
- Front-end?? ?? Internet Access? ??? ??? Back-end(Network Virtualization ??)?? IP? ???? ????.
Step 12 Adding the virtualization gateway Network Service in VMM
- Gateway VM? Network Service? ?????. Network Service? ?????? S2S VPN, NAT ??? BPG? ??? ? ????.
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? ?????.
- VM? Internet Access? ????? ?? ??? NAT ??? ???.
- VM Network ?? ?? IP Pool? ??????.
- ?? VSID ? ????? ??? 10.0.1.0/24? Subnet? ?? ? ??? ???.
- 10.0.1.0/24? ???? IP Pool? ??????.
- 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? ?????.
- NAT ?? ? VM?? ?? ??? ??? ??? ???.
- 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
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
?????.