Maps EPGs to Q-in-Q encapsulated leaf interfaces using the NX-OS style CLI. This procedure enables an interface for Q-in-Q encapsulation and associates the interface with an EPG.
Enable an interface for Q-in-Q encapsulation and associate the interface with an EPG.
Before you begin
Create the tenant, application profile, and application EPG that will be mapped with an interface configured for Q-in-Q mode.
Procedure
The following example enables Q-in-Q encapsulation (with outer-VLAN ID 202 and inner-VLAN ID 203) on the leaf interface 101/1/25, and associates the interface with EPG64.
apic1(config)# leaf 101
apic1(config-leaf)# interface ethernet 1/25
apic1(config-leaf-if)#switchport mode dot1q-tunnel doubleQtagPort
apic1(config-leaf-if)# switchport trunk qinq outer-vlan 202 inner-vlan 203 tenant tenant64 application AP64 epg EPG64