Check a Nexus Switch Port's VLAN Setting

In a Cisco Nexus fabric, use the following steps to check the VLAN membership for ports of a FEX.

Overall steps:

  • Login to a Nexus switch in the fabric
  • Use show FEX to locate the switch FEX number
  • Check the interfaces on the FEX to see VLAN membership

Connect to one of the Cisco Nexus switches using ssh.

[mbraden@vm04 ~]$ ssh mbraden@LAB1-AS01-01A23

Find the fex number

LAB1-AG01-01A20# show fex
  FEX         FEX           FEX                       FEX               
Number    Description      State            Model            Serial     
------------------------------------------------------------------------
100  LAB1-AS01-01A26                Online    N2K-C2232PP-10GE   SSI15......
101  LAB1-AS02-01A26                Online     N2K-C2248TP-1GE   SSI14......
102  LAB1-AS01-01A29                Online     N2K-C2248TP-1GE   SSI14......
103  LAB1-AS02-01A29                Online     N2K-C2248TP-1GE   SSI14......
104  LAB1-AS03-01A29                Online    N2K-C2232PP-10GE   SSI15......
105  LAB1-AS03-01A26                Online     N2K-C2248TP-1GE   SSI14......
106  LAB1-AS01-01A23                Online     N2K-C2248TP-1GE   SSI15......
107  LAB1-AS02-01A23                Online     N2K-C2248TP-1GE   SSI15......
LAB1-AG01-01A20# 

The FEX number is:

106 LAB1-AS01-01A23

Now list the ports using the number of the FEX.

LAB1-AG01-01A20# show int status fex 106

--------------------------------------------------------------------------------
Port          Name               Status    Vlan      Duplex  Speed   Type
--------------------------------------------------------------------------------
Eth106/1/1    LAB1-AS01-01A23    connected 1206      full    1000    --         
Eth106/1/2    LAB1-AS01-01A23    connected 1206      full    1000    --         
Eth106/1/3    LAB1-AS01-01A23    connected 1209      full    100     --         
Eth106/1/4    LAB1-AS01-01A23    connected 1206      full    1000    --         
Eth106/1/5    LAB1-AS01-01A23    connected 1206      full    1000    --         
Eth106/1/6    LAB1-AS01-01A23    connected 1209      full    100     --         
Eth106/1/7    LAB1-AS01-01A23    connected 1206      full    1000    --         
Eth106/1/8    LAB1-AS01-01A23    connected 1206      full    1000    --         
Eth106/1/9    LAB1-AS01-01A23    connected 1206      full    1000    --         
Eth106/1/10   LAB1-AS01-01A23    connected 1209      full    100     --         
Eth106/1/11   LAB1-AS01-01A23    connected 1206      full    1000    --         
Eth106/1/12   LAB1-AS01-01A23    connected 1206      full    1000    --         
Eth106/1/13   LAB1-AS01-01A23    connected 1206      full    1000    --         
Eth106/1/14   LAB1-AS01-01A23    connected 1209      full    100     --         
Eth106/1/15   LAB1-AS01-01A23    connected 1209      full    1000    --         
Eth106/1/16   LAB1-AS01-01A23    connected 1209      full    1000    --         
Eth106/1/17   LAB1-AS01-01A23    connected 1         full    1000    --         
Eth106/1/18   LAB1-AS01-01A23    connected 1         full    1000    --         
Eth106/1/19   LAB1-AS01-01A23    connected 1         full    1000    --         
Eth106/1/20   LAB1-AS01-01A23    connected 1         full    1000    --         
Eth106/1/21   LAB1-AS01-01A23    connected 1         full    1000    --         
Eth106/1/22   LAB1-AS01-01A23    connected 1         full    1000    --         
Eth106/1/23   LAB1-AS01-01A23    notconnec 1         auto    auto    --         
Eth106/1/24   LAB1-AS01-01A23    notconnec 1         auto    auto    --     

In this case, port 17 is on VLAN 1 which is not correct.

Advertisement