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 virtual port-channels with the NX-OS style CLI

Want to summarize with AI?

Log in

Configure an 802.1Q tunnel using virtual port-channels (vPCs) by marking edge-port and core-port interfaces, creating the tunnel, and associating the virtual port-channels with the tunnel.


This example marks two virtual port-channels (vPCs) as edge-port 802.1Q interfaces for theDot1q Tunnel, marks two more vPCs as core-port interfaces for the tunnel, creates the tunnel, and associates the virtual port-channels with the tunnel.

Procedure

  1. Configure the first vPC domain and set up the edge-port interface.

    Example:

    apic1# configure
    apic1(config)# vpc domain explicit 1 leaf 101 102
    apic1(config)# vpc context leaf 101 102
    apic1(config-vpc)# interface vpc vpc1
    apic1(config-vpc-if)# switchport mode dot1q-tunnel edgePort
    apic1(config-vpc-if)# exit
    apic1(config-vpc)# exit
  2. Configure the second vPC domain and set up the core-port interface.

    Example:

    apic1(config)# vpc domain explicit 1 leaf 103 104
    apic1(config)# vpc context leaf 103 104
    apic1(config-vpc)# interface vpc vpc2
    apic1(config-vpc-if)# switchport mode dot1q-tunnel corePort
    apic1(config-vpc-if)# exit
    apic1(config-vpc)# exit
  3. Create the tenant and configure the 802.1Q tunnel with protocol tunneling and access encapsulation settings.

    Example:

    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
  4. Configure the physical interfaces and associate them with the vPC and the tunnel.

    Example:

    apic1(config)# leaf 103
    apic1(config-leaf)# interface ethernet 1/6
    apic1(config-leaf-if)# channel-group vpc1 vpc
    apic1(config-leaf-if)# exit
    apic1(config-leaf)# exit
    apic1(config)# leaf 104
    apic1(config-leaf)# interface ethernet 1/6
    apic1(config-leaf-if)# channel-group vpc1 vpc
    apic1(config-leaf-if)# exit
    apic1(config-leaf)# exit 
    apic1(config-vpc)# interface vpc vpc1
    apic1(config-vpc-if)# switchport tenant tenant64 dot1q-tunnel vrf64_tunnel 
    apic1(config-vpc-if)# exit