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. And see here for current known issues.

New Member

Nexus1000V and mac-pinning

Hello,

I have configured mac-pinning. How can I see in Nexus which VEthernet interface is pinned to which Ethernet-NIC ?  I didn't find it.

This is our used nx-version: 4.0(4)SV1(3)

Thanks

Hendrik

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Nexus1000V and mac-pinning

To show the pinning you need to query the VEM module. You can do this directly on the ESX host via vemcmd on the command line or you can remotely query the VEM from the VSM.

From the VSM run the following command.

n1000v-MV# module vem 5 execute vemcmd show port
  LTL    IfIndex   Vlan    Bndl  SG_ID Pinned_SGID  Type  Admin State  CBL Mode   Name
    6          0      1 T     0     32          32  VIRT     UP    UP    0  Trunk vns
    8          0   3969       0     32          32  VIRT     UP    UP    1 Access
    9          0   3969       0     32          32  VIRT     UP    UP    1 Access
   10          0      2       0     32           1  VIRT     UP    UP    1 Access
   11          0   3968       0     32          32  VIRT     UP    UP    1 Access
   12          0      2       0     32           2  VIRT     UP    UP    1 Access
   13          0      1       0     32          32  VIRT     UP    UP    0 Access
   14          0   3967       0     32          32  VIRT     UP    UP    1 Access
   15          0   3967       0     32          32  VIRT     UP    UP    1 Access
   16          0      1 T     0     32          32  VIRT     UP    UP    1  Trunk arp
   18   25010040      1 T   305      1          32  PHYS     UP    UP    1  Trunk vmnic1
   19   25010080      1 T   305      2          32  PHYS     UP    UP    1  Trunk vmnic2
  305   16000004      1 T     0     32          32  CHAN     UP    UP    1  Trunk

Find your vmnic interfaces.and in the output and cross reference with the SG_ID column. Here you can see that vmnic1 is SGID 1 and vmnic2 is SGID 2

Next find the line with your VM and cross reference with the Pinned_SGID column. The number in that column will be either 1 or 2. If it's 1 then the VM is pinned to vmnic1 and 2 would mean vmnic2

louis

2 REPLIES

Re: Nexus1000V and mac-pinning

hello,


after more then one hour I stop searching for a solution on nexus. So if you configure pinning manually, the assignments are readable in the config. If you choose automatic assignment by cdp, have a look at the mac-address-table interface x/y on the connected physical switch. There you can find the mac address from all vm`s which use this uplink.

regards

Thilo

Cisco Employee

Re: Nexus1000V and mac-pinning

To show the pinning you need to query the VEM module. You can do this directly on the ESX host via vemcmd on the command line or you can remotely query the VEM from the VSM.

From the VSM run the following command.

n1000v-MV# module vem 5 execute vemcmd show port
  LTL    IfIndex   Vlan    Bndl  SG_ID Pinned_SGID  Type  Admin State  CBL Mode   Name
    6          0      1 T     0     32          32  VIRT     UP    UP    0  Trunk vns
    8          0   3969       0     32          32  VIRT     UP    UP    1 Access
    9          0   3969       0     32          32  VIRT     UP    UP    1 Access
   10          0      2       0     32           1  VIRT     UP    UP    1 Access
   11          0   3968       0     32          32  VIRT     UP    UP    1 Access
   12          0      2       0     32           2  VIRT     UP    UP    1 Access
   13          0      1       0     32          32  VIRT     UP    UP    0 Access
   14          0   3967       0     32          32  VIRT     UP    UP    1 Access
   15          0   3967       0     32          32  VIRT     UP    UP    1 Access
   16          0      1 T     0     32          32  VIRT     UP    UP    1  Trunk arp
   18   25010040      1 T   305      1          32  PHYS     UP    UP    1  Trunk vmnic1
   19   25010080      1 T   305      2          32  PHYS     UP    UP    1  Trunk vmnic2
  305   16000004      1 T     0     32          32  CHAN     UP    UP    1  Trunk

Find your vmnic interfaces.and in the output and cross reference with the SG_ID column. Here you can see that vmnic1 is SGID 1 and vmnic2 is SGID 2

Next find the line with your VM and cross reference with the Pinned_SGID column. The number in that column will be either 1 or 2. If it's 1 then the VM is pinned to vmnic1 and 2 would mean vmnic2

louis

813
Views
3
Helpful
2
Replies