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

PDF

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

Example: Configure an 802.1Q tunnel using port-channels with the NX-OS style CLI

Want to summarize with AI?

Log in

Configure two port-channels as edge-port 802.1Q interfaces, two more port-channels as core-port 802.1Q interfaces, create a Dot1q Tunnel, and associate the port-channels with the tunnel.


The example marks two port-channels as edge-port 802.1Q interfaces, marks two more port-channels as core-port 802.1Q interfaces, creates a Dot1q Tunnel, and associates the port-channels with the tunnel.

Procedure

  1. Configure the tenant and dot1q-tunnel settings.

    Example:

    
    apic1# configure
    apic1(config)# tenant tenant64
    apic1(config-tenant)# dot1q-tunnel vrf64_tunnel
    apic1(config-tenant-tunnel)# l2protocol-tunnel cdp
    apic1(config-tenant-tunnel)# l2protocol-tunnel lldp
    apic1(config-tenant-tunnel)#  access-encap 200
    apic1(config-tenant-tunnel)# mac-learning disable
    apic1(config-tenant-tunnel)# exit
    apic1(config-tenant)# exit
    
  2. Configure leaf 101 with port-channel pc1 as edge port.

    Example:

    
    apic1(config)# leaf 101
    apic1(config-leaf)# interface port-channel pc1
    apic1(config-leaf-if)# exit
    apic1(config-leaf)# interface ethernet 1/2-3
    apic1(config-leaf-if)# channel-group pc1
    apic1(config-leaf-if)# exit
    apic1(config-leaf)# interface port-channel pc1
    apic1(config-leaf-if)# switchport mode dot1q-tunnel edgePort
    apic1(config-leaf-if)# switchport tenant tenant64 dot1q-tunnel vrf64_tunnel
    apic1(config-tenant-tunnel)# exit
    apic1(config-tenant)# exit
    
  3. Configure leaf 102 with port-channel pc2 as core port.

    Example:

    
    
    apic1(config)# leaf 102
    apic1(config-leaf)# interface port-channel pc2
    apic1(config-leaf-if)# exit
    apic1(config-leaf)# interface ethernet 1/4-5
    apic1(config-leaf-if)# channel-group pc2
    apic1(config-leaf-if)# exit
    apic1(config-leaf)# interface port-channel pc2
    apic1(config-leaf-if)# switchport mode dot1q-tunnel corePort
    apic1(config-leaf-if)# switchport tenant tenant64 dot1q-tunnel vrf64_tunnel