Cisco APIC Layer 2 Networking Configuration Guide, Release 6.2(x)

PDF

Cisco APIC Layer 2 Networking Configuration Guide, Release 6.2(x)

Mapping EPGs to Q-in-Q Encapsulated Leaf Interfaces Using the NX-OS Style CLI

Want to summarize with AI?

Log in

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

  1. Configure

    Enters global configuration mode.

    Example:

    apic1# configure
  2. leaf number

    Specifies the leaf to be configured.

    Example:

    apic1(config)# leaf 101
  3. interface ethernet slot/port

    Specifies the interface to be configured.

    Example:

    apic1 (config-leaf)# interface ethernet 1/25
  4. switchport mode dot1q-tunnel doubleQtagPort

    Enables an interface for Q-in-Q encapsulation.

    Example:

    apic1(config-leaf-if)# switchport mode dot1q-tunnel doubleQtagPort
  5. switchport trunk qinq outer-vlan vlan-number inner-vlan vlan-number tenant tenant-name application application-name epg epg-name

    Associates the interface with an EPG.

    Example:

    apic1(config-leaf-if)# switchport trunk qinq outer-vlan 202 inner-vlan 203 tenant tenant64 application AP64 epg EPG64

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