cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
8691
Views
23
Helpful
9
Replies

Command to see all vlan encap's in use

sean.cheney
Level 1
Level 1

Is there a command that will show me all vlan encap's that are configured?  

9 Replies 9

aleccham
Cisco Employee
Cisco Employee

Hey Sean,

You can see what encaps are deployed on the leaves by using the following command:

rtp-calo-pod1-leaf101# show vlan extended

VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
7 infra:default active Eth1/1, Eth1/2, Eth1/7, Po3
8 common:recreate active Eth1/9
9 common:default:gg:recreate active Eth1/9
10 common:rth-test active Eth1/7, Po3
11 common:rth-test:vm active Eth1/7, Po3
12 dpita-tenant:dpita-BD1 active --
13 rth1:AD active Eth1/7, Po3
14 rth1:AD:Port390 active Eth1/7, Po3
15 tn-680837724:bd-680837724 active Eth1/17, Eth1/45, Po2
16 tn-680837724:680837724:VLAN_15 active Eth1/17, Eth1/45, Po2
17 GG:BD1 active Eth1/9
18 rth1:AD:Port391 active Eth1/7, Po3
19 rth1:AD:Port389 active Eth1/7, Po3
20 tn-680837724:680837724:VLAN_11 active Eth1/17, Eth1/45, Po2
21 GG:2561 active Eth1/19, Eth1/21
22 GG:681029714:2561 active Eth1/19, Eth1/21
23 tn-680837724:680837724:VLAN_10 active Eth1/17, Eth1/45, Po2
24 tn-680837724:680837724:VLAN_14 active Eth1/17, Eth1/45, Po2
27 GG:EPG:mcast active Eth1/9
28 GG:2560 active Eth1/16
29 GG:681029714:2560 active Eth1/16
30 tn-680837724:680837724:VLAN_13 active Eth1/17, Eth1/45, Po2
31 GG:ipv6-L2 active Eth1/19
32 GG:EPG:ipv6-L2 active Eth1/19
33 tn-680837724:680837724:VLAN_12 active Eth1/17, Eth1/45, Po2
36 GG2:bd1 active Eth1/13
37 GG2:1:a active Eth1/13

VLAN Type Vlan-mode Encap
---- ----- ---------- -------------------------------
7 enet CE vxlan-16777209, vlan-3967
8 enet CE vxlan-16089026
9 enet CE vlan-273
10 enet CE vxlan-16646016
11 enet CE vlan-935
12 enet CE vxlan-15925207
13 enet CE vxlan-16121793
14 enet CE vlan-934
15 enet CE vxlan-16089027
16 enet CE vlan-15
17 enet CE vxlan-16580486
18 enet CE vlan-968
19 enet CE vlan-967
20 enet CE vlan-11
21 enet CE vxlan-16383905
22 enet CE vlan-2561
23 enet CE vlan-10
24 enet CE vlan-14
27 enet CE vlan-267
28 enet CE vxlan-16318375
29 enet CE vlan-2560
30 enet CE vlan-13
31 enet CE vxlan-15957971
32 enet CE vlan-2100
33 enet CE vlan-12
36 enet CE vxlan-16220082
37 enet CE vlan-202
rtp-calo-pod1-leaf101#

Yeah, that just shows me what is deployed on a particular leaf.


I want to see every configured encap(whether deployed or not).

If you run the following from the APIC CLI you can see what VLAN encap blocks you have configured. However this will not display if they have been deployed.

admin@rtp-calo-pod1-apic1:~> moquery -c "fvnsAEncapBlk"
Total Objects shown: 45

# fvns.EncapBlkDef
from : vlan-200
to : vlan-299
allocMode : inherit
childAction :
descr :
dn : uni/vmmp-VMware/dom-GG-DVS-VPC/vlannsdef-[gg-phy]-dynamic/deffrom-[vlan-200]-to-[vlan-299]
lcOwn : local
modTs : 2016-08-03T15:07:15.899+00:00
name :
rn : deffrom-[vlan-200]-to-[vlan-299]
status :
uid : 0

# fvns.EncapBlkDef
from : vlan-2100
to : vlan-2100
allocMode : inherit
childAction :
descr :
dn : uni/vmmp-VMware/dom-GG-DVS-VPC/vlannsdef-[gg-phy]-dynamic/deffrom-[vlan-2100]-to-[vlan-2100]
lcOwn : local
modTs : 2016-09-24T15:27:58.667+00:00
name :
rn : deffrom-[vlan-2100]-to-[vlan-2100]
status :
uid : 0

That just shows the pools, not the individual encap's that are actually configured and mapped down to a port(static path binding) under the epg's...

This info is in there somewhere, just struggling to find a way to see it.

Sean,

A good command to see all the VLAN relations is under vsh_lc (linecard shell) is:

show system internal eltmc info vlan brief

Another good command to see the relation of the endpoint to its hardware:

show endpoint ip <endpoint ip> detail

Here you will see the encap vlan on the leaf and the set vlan pool. The encap will then correspond to an endpoint group.

Hope this helps,

Michael G.

Thank you for participating in the Cisco Support Forum for ACI! If you have other questions related to this post, please let us know. If this response answers your questions, please mark this post "answered" and assign a rating to the response(s) provided. This will help notify other viewers that your question(s) is answered and this helps us provide better responses for this and future questions

Sean,

What Alec and I provided was for a per leaf basis. My apologies. This moquery should show you what you are looking for. Run the following command on your APIC:

moquery -c fvIfConn | grep dn | grep vlan

Regards,

Michael G.

Thank you for participating in the Cisco Support Forum for ACI! If you have other questions related to this post, please let us know. If this response answers your questions, please mark this post "answered" and assign a rating to the response(s) provided. This will help notify other viewers that your question(s) is answered and this helps us provide better responses for this and future questions.

melgebal
Cisco Employee
Cisco Employee

Try this on the APIC:

 

moquery -c fvAEPg -x rsp-subtree=children | egrep "encap        :" | sort -u

skatragadda1
Level 1
Level 1

If you are looking for the List pf Tenants, App Profiles listed.. use below command.

APIC2# moquery -c fvAEPg | egrep "dn :" | sort -u

@RedNectar gave me another command at https://community.cisco.com/t5/application-centric-infrastructure/show-all-vlan-encaps-used-in-aci-fabric/m-p/4870867#M14292 : (NodeIDs here are a sampling to reduce the output)

 

apic01# fabric 101-102,201,203,205-206 show vlan encap-id 100-200 extended
----------------------------------------------------------------
 Node 101 (spine01)
----------------------------------------------------------------

 VLAN Name                             Encap            Ports
 ---- -------------------------------- ---------------- ------------------------

----------------------------------------------------------------
 Node 102 (spine02)
----------------------------------------------------------------

 VLAN Name                             Encap            Ports
 ---- -------------------------------- ---------------- ------------------------

----------------------------------------------------------------
 Node 201 (leaf.Row1Pod1Cab1Sw1)
----------------------------------------------------------------

 VLAN Name                             Encap            Ports
 ---- -------------------------------- ---------------- ------------------------

----------------------------------------------------------------
 Node 203 (leaf.Row2Pod1Cab1Sw1)
----------------------------------------------------------------

 VLAN Name                             Encap            Ports
 ---- -------------------------------- ---------------- ------------------------
 10   ComputerScience:General_AP:Priva vlan-135         Eth1/42, Eth1/43
      te_Vl135_EPG
 14   ComputerScience:General_AP:NAT_1 vlan-117         Eth1/13, Eth1/14,
      17_EPG                                            Eth1/15, Eth1/16,
                                                        Eth1/17, Eth1/18,
                                                        Eth1/19, Eth1/20,
                                                        Eth1/21, Eth1/22,
                                                        Eth1/23, Eth1/24,
                                                        Eth1/25, Eth1/26,
                                                        Eth1/27, Eth1/28,
                                                        Eth1/29, Eth1/30,
                                                        Eth1/31, Eth1/32,
                                                        Eth1/33, Eth1/34,
                                                        Eth1/35, Eth1/36,
                                                        Eth1/37, Eth1/38,
                                                        Eth1/39, Eth1/40,
                                                        Eth1/41
 18   ComputerScience:Atlas_AP:Atlas_V vlan-169         Eth1/44, Eth1/45
      l169_EPG

----------------------------------------------------------------
 Node 205 (leaf.Row1Pod2Cab1Sw1)
----------------------------------------------------------------

 VLAN Name                             Encap            Ports
 ---- -------------------------------- ---------------- ------------------------
 6    ComputerScience:General_AP:Priva vlan-135         Eth1/21, Eth1/22,
      te_Vl135_EPG                                      Eth1/23, Eth1/24,
                                                        Eth1/25, Eth1/26,
                                                        Eth1/27, Eth1/28,
                                                        Eth1/29, Eth1/30,
                                                        Eth1/31, Eth1/32,
                                                        Eth1/33, Eth1/34,
                                                        Eth1/35, Eth1/36,
                                                        Eth1/37, Eth1/38,
                                                        Eth1/39, Eth1/40,
                                                        Eth1/41, Po2, Po3, Po5
 12   ComputerScience:General_AP:Publi vlan-115         Eth1/13, Eth1/14,
      c_Vl115_EPG                                       Eth1/15, Eth1/16,
                                                        Eth1/17, Eth1/18,
                                                        Eth1/19, Eth1/20, Po4
 17   ComputerScience:TOR_AP:TOR_Vl100 vlan-100         Eth1/42, Eth1/43
      _EPG

----------------------------------------------------------------
 Node 206 (leaf.Row1Pod2Cab1Sw2)
----------------------------------------------------------------

 VLAN Name                             Encap            Ports
 ---- -------------------------------- ---------------- ------------------------
 8    ComputerScience:General_AP:Priva vlan-135         Eth1/21, Eth1/22,
      te_Vl135_EPG                                      Eth1/23, Eth1/24,
                                                        Eth1/25, Eth1/26,
                                                        Eth1/27, Eth1/28,
                                                        Eth1/29, Eth1/30,
                                                        Eth1/31, Eth1/32,
                                                        Eth1/33, Eth1/34,
                                                        Eth1/35, Eth1/36,
                                                        Eth1/37, Eth1/38,
                                                        Eth1/39, Eth1/40,
                                                        Eth1/41, Eth1/52, Po2,
                                                        Po3, Po4
 12   ComputerScience:General_AP:NAT_1 vlan-117         Eth1/52
      17_EPG
 16   ComputerScience:General_AP:Publi vlan-115         Eth1/13, Eth1/14,
      c_Vl115_EPG                                       Eth1/15, Eth1/16,
                                                        Eth1/17, Eth1/18,
                                                        Eth1/19, Eth1/20, Po5
 18   ComputerScience:TOR_AP:TOR_Vl100 vlan-100         Eth1/42, Eth1/43,
      _EPG                                              Eth1/52
 24   ComputerScience:Atlas_AP:Atlas_V vlan-169         Eth1/52
      l169_EPG

comm665-apic-pr01#

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Save 25% on Day-2 Operations Add-On License