Setting up a nvgre script – Dell Emulex Family of Adapters User Manual
Page 629

Emulex Drivers for Windows User Manual
P010077-01A Rev. A
3. Configuration
NIC Driver Configuration
629
7. Expose a NIC interface into the VM for each of the vSwitches:
Make sure “Enable virtual machine queue” is selected under
Network Adapter -> Hardware Acceleration of the VMs.
Record the MAC addresses located under the Network Adapter -> Advanced
Features. These will be used in the add/remove policy scripts.
8. Rename the Network Connection name being used for NVGRE to WNVNIC (for
example: Control Panel->Network and Internet->Network Connections, rename
Ethernet 3 to WNVNIC).
9. Set up a NVGRE script.
Setting up a NVGRE Script
The following sample script is required for network virtualization:
Example of a Script Adding the NVGRE Tunnel Between Two Hosts
# Add the locator records for Blue subnet
Get-NetVirtualizationLookupRecord | where {$_.VirtualSubnetID -eq "5001"} |
Remove-NetVirtualizationLookupRecord;
New-NetVirtualizationLookupRecord -VirtualSubnetID "5001" -CustomerAddress "10.0.0.5"
-ProviderAddress "192.x.x.x" -MACAddress "060600000005" -Rule "TranslationMethodEncap"
New-NetVirtualizationLookupRecord -VirtualSubnetID "5001" -CustomerAddress "10.0.0.7"
-ProviderAddress "192.x.x.x" -MACAddress "060600000007" -Rule "TranslationMethodEncap"
# Add the customer route records for Blue subnet
Get-NetVirtualizationCustomerRoute | where {$_.VirtualSubnetID -eq "5001"} |
Remove-NetVirtualizationCustomerRoute;
New-NetVirtualizationCustomerRoute -RoutingDomainID
"{11111111-2222-3333-4444-000000005001}" -VirtualSubnetID "5001" -DestinationPrefix
"10.0.0.0/24" -NextHop "0.0.0.0" -Metric 255
########################################################################################
#########################
# Red Virtual Network Information
#
# RoutingDomainID="{11111111-2222-3333-4444-000000006001}"
# VirtualSubnetID=6001
# (Both RDID and VSID are defined by administrators, MUST be unique in the datacenter)
#
# [Customer Addresses]
# VM Name Host VSID CA PA MAC DefaultGW
# --------------------------------------------------------------------------------------
# Red1 Host1 6001 10.0.0.5 192.x.x.x 08-08-00-00-00-05 10.0.0.1
# Red2 Host2 6001 10.0.0.7 192.x.x.x 08-08-00-00-00-07 10.0.0.1
#
# [Customer Routes]
# DestPrefix NextHopGW Note
# -------------------------------------------------------------------------------------
# 10.0.0.0/24 0.0.0.0 Onlink route for Red subnet
# Add the locator records for Red subnet
Get-NetVirtualizationLookupRecord | where {$_.VirtualSubnetID -eq "6001"} |