beautypg.com

Dell Emulex Family of Adapters User Manual

Page 630

background image

Emulex Drivers for Windows User Manual

P010077-01A Rev. A

3. Configuration

NIC Driver Configuration

630

Remove-NetVirtualizationLookupRecord;

New-NetVirtualizationLookupRecord -VirtualSubnetID "6001" -CustomerAddress "10.0.0.5"

-ProviderAddress "192.x.x.x" -MACAddress "080800000005" -Rule "TranslationMethodEncap"

New-NetVirtualizationLookupRecord -VirtualSubnetID "6001" -CustomerAddress "10.0.0.7"

-ProviderAddress "192.x.x.x" -MACAddress "080800000007" -Rule "TranslationMethodEncap"

# Add the customer route records for Red subnet

Get-NetVirtualizationCustomerRoute | where {$_.VirtualSubnetID -eq "6001"} |

Remove-NetVirtualizationCustomerRoute;

New-NetVirtualizationCustomerRoute -RoutingDomainID

"{11111111-2222-3333-4444-000000006001}" -VirtualSubnetID "6001" -DestinationPrefix

"10.0.0.0/24" -NextHop "0.0.0.0" -Metric 255

#

# [2] Configure the Host Provider Addresses and Routes required for this setup

#

# [Host PA Address & Route information required by the VM policy]

#

# Host Hostname {PA's} {VM:VirtualSubnetID} ==> Set on the VMNetworkAdapter

on eash host

# --------------------------------------------------------------------------------------

# Host1 example-host1 192.x.x.x {Blue1:5001, Red1:6001}

# Host2 example-host2 192.x.x.x {Blue2:5001, Red2:6001}

# [2-1] Host1

#

# (a) Configure Provider Address and Route:

# Get the interface, assign the PA and the default route

Get-NetVirtualizationProviderAddress | where {$_.ProviderAddress -eq "192.x.x.x"} |

Remove-NetVirtualizationProviderAddress;

$iface = Get-NetAdapter $WNVNIC

New-NetVirtualizationProviderAddress -InterfaceIndex $iface.InterfaceIndex

-ProviderAddress "192.x.x.x" -PrefixLength 24

# (b) Set VirtualSubnetID on the VM network port

Get-VMNetworkAdapter "Blue1" | where {$_.MacAddress -eq "060600000005"} |

Set-VMNetworkAdapter -VirtualSubnetID 5001;

Get-VMNetworkAdapter "Red1" | where {$_.MacAddress -eq "080800000005"} |

Set-VMNetworkAdapter -VirtualSubnetID 6001;

Example of a Script Removing the NVGRE Tunnel Between Two Hosts

########################################################################################

#########################

# Blue Virtual Network Information

#

# RoutingDomainID="{11111111-2222-3333-4444-000000005001}"

# VirtualSubnetID]=5001

# (Both RDID and VSID are defined by administrators, MUST be unique in the datacenter)

#

# [Customer Addresses]

# VM Name Host VSID CA PA MAC DefaultGW