Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

Cisco Employee

Migrate physical adapter to Nexus 1000v's specific uplink port Group

When I run the below script in vmware powercli, the physical adapters get added to N1K's "Unused_Or_Quarantine_Uplink" port group. I got "sys-uplink" PortGroup in my N1K (VSM-DVS-SCALE), and I want the physical adapters to get added to this "sys-uplink".


Issue is Add-VDSwitchPhysicalNetworkAdapter does not have a option to specify which Port-Group the adapter should be added to. Any workarounds to solve this issue. Looks like customers are facing similar issue and moving away from N1k to vmware's dvs (see

https://communities.vmware.com/thread/442897?start=0&tstart=0)

$vmhost = Get-Datacenter Dao | Get-VMHost "192.100.12.16"

$myVDSwitch = Get-VDSwitch -Name "VSM-DVS-SCALE" -Location Dao

$hostsphysicalnic = $vmhost | Get-VMHostNetworkAdapter -name vmnic2,vmnic1

$myVDPortGroup = get-vdportgroup -name $myVDPortGroup  -vdswitch $myVDSwitch

Add-VDSwitchPhysicalNetworkAdapter -VMHostNetworkAdapter $hostsPhysicalNic -DistributedSwitch "VSM-DVS-SCALE"

.

Everyone's tags (3)
707
Views
0
Helpful
0
Replies