cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
12472
Views
15
Helpful
6
Replies

How can i find the EPG and physical port binding?

Navjyot Bains
Level 1
Level 1

Hi Guys, 

How can i find the EPG and physical port binding? For example, if one physical port in multiple EPGs

Thanks 

NB

1 Accepted Solution

Accepted Solutions

Hi Navjyot,

You could also use MO(Managed Object) to get the information.

There are two main MOs for your purpose.

fvStPathAtt  :   for static-binding path (& l3out)

fvDyPathAtt  :   for dynamic such as vmm integration

The command would be like this.

apic1# moquery -c fvStPathAtt | grep dn | grep 'eth1/40'
dn : uni/epp/rtd-[uni/tn-TK/out-INB_L3OUT/instP-EPG1]/node-101/stpathatt-[eth1/40]

dn : uni/epp/fv-[uni/tn-EP_Test/ap-Storage/epg-Storage]/node-102/stpathatt-[eth1/40]

This one shows you fvStPathAtt. As I highlighted, it shows you both l3out EPG (instP-EPG1) and normal EPG (epg-Storage) on eth1/40.

You can change the grep parameter to whatever the interface you would like to check.

This command gives you all leaf nodes information when it's done on APIC, and gives you only for the particular node when it's done on the particular node.

If you are not sure which one(static, dynamic) is used on the interface , you can use fvAPathApp instead. It will display both static-binding and vmm integrated ports. The example output below shows it's using static-binding(stpathatt-xxx).

apic1# moquery -c fvAPathAtt | grep dn | grep 'eth1/11'
dn : uni/epp/fv-[uni/tn-TK/ap-SPAN_APP/epg-SPAN]/node-101/stpathatt-[eth1/11]
dn : uni/epp/fv-[uni/tn-TK/ap-APP1/epg-EPG1]/node-101/stpathatt-[eth1/11]
dn : uni/epp/fv-[uni/tn-TK/ap-APP1/epg-EPG2]/node-102/stpathatt-[eth1/11]

Thanks,

-Takuya

View solution in original post

6 Replies 6

Jason Williams
Level 1
Level 1

If I understand correctly, you want to know which EPG/VLANs are allowed across an interface. 

If you log into the CLI of a switch try running these commands: 

show interface eth x/y switchport - This provides the VLANs allowed on the interface.  You will find the platform indepedent (PI) VLANs. PI VLANs map to Encap VLANs IDs (EPG) and VXLAN IDs (Bridge Domains). To translate the PI to encap VLANs/EPGs then run the command below

show vlan extended

leaf1# show int eth1/5 switchport
Name: Ethernet1/5
Switchport: Enabled
Switchport Monitor: not-a-span-dest
Operational Mode: trunk
Access Mode Vlan: unknown (default)
Trunking Native Mode VLAN: unknown (default)
Trunking VLANs Allowed: 18-20
FabricPath Topology List Allowed: 0
Administrative private-vlan primary host-association: none
Administrative private-vlan secondary host-association: none
Administrative private-vlan primary mapping: none
Administrative private-vlan secondary mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none

leaf1# show vlan ext

VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
7 infra:default active Eth1/48
18 shdu:BD-VM active Eth1/5
19 shdu:AP-VMM:EPG1 active Eth1/5
20 shdu:AP-VMM:EPG2 active Eth1/5

VLAN Type Vlan-mode Encap
---- ----- ---------- -------------------------------
7 enet CE vxlan-16777209, vlan-3967
18 enet CE vxlan-14712828
19 enet CE vlan-1300
20 enet CE vlan-1314

Hi Jason,

The provided information will do the job for me. i wonder if there is any easy way. 

something like 

#show interface ethx/y epg list ...... so this will show list of configured EPGs on port x/y

Thanks 

NB

NB,

I the vlans will include VRFs, BDs, and EPGs.  But if you have strategically named your EPGs with epg in the name then something like this would work:

fab1-p2-leaf2# show vlan ext | grep Eth1/47 | grep epg
22 mgmt:Management:rtp1-mgmt-epg active Eth1/47, Eth1/48, Po2, Po4
24 deadbeef-red:red-ap3:red-epg3 active Eth1/47, Eth1/48, Po2, Po4
26 deadbeef-red:red-ap2:red-epg2 active Eth1/47, Eth1/48, Po2, Po4
32 deadbeef-blue:blue-ap1:blue-epg2 active Eth1/47, Eth1/48, Po2, Po4
40 deadbeef-blue:blue-ap1:blue-epg1 active Eth1/47, Eth1/48, Po2, Po4
54 deadbeef-red:red-ap1:red-epg1 active Eth1/47, Eth1/48, Po2, Po4

Cheers

T.

Hi Tomas, 

Thanks for your time. 

unfortunately, we don't have keyword epg in the name. 

Cheers

N B

Hi Navjyot,

You could also use MO(Managed Object) to get the information.

There are two main MOs for your purpose.

fvStPathAtt  :   for static-binding path (& l3out)

fvDyPathAtt  :   for dynamic such as vmm integration

The command would be like this.

apic1# moquery -c fvStPathAtt | grep dn | grep 'eth1/40'
dn : uni/epp/rtd-[uni/tn-TK/out-INB_L3OUT/instP-EPG1]/node-101/stpathatt-[eth1/40]

dn : uni/epp/fv-[uni/tn-EP_Test/ap-Storage/epg-Storage]/node-102/stpathatt-[eth1/40]

This one shows you fvStPathAtt. As I highlighted, it shows you both l3out EPG (instP-EPG1) and normal EPG (epg-Storage) on eth1/40.

You can change the grep parameter to whatever the interface you would like to check.

This command gives you all leaf nodes information when it's done on APIC, and gives you only for the particular node when it's done on the particular node.

If you are not sure which one(static, dynamic) is used on the interface , you can use fvAPathApp instead. It will display both static-binding and vmm integrated ports. The example output below shows it's using static-binding(stpathatt-xxx).

apic1# moquery -c fvAPathAtt | grep dn | grep 'eth1/11'
dn : uni/epp/fv-[uni/tn-TK/ap-SPAN_APP/epg-SPAN]/node-101/stpathatt-[eth1/11]
dn : uni/epp/fv-[uni/tn-TK/ap-APP1/epg-EPG1]/node-101/stpathatt-[eth1/11]
dn : uni/epp/fv-[uni/tn-TK/ap-APP1/epg-EPG2]/node-102/stpathatt-[eth1/11]

Thanks,

-Takuya

Perfect! thank you for your time and help Takuya!!

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