Configure a Dot1q Tunnel and the interfaces for use in the tunnel using the NX-OS Style CLI.
Before you begin
Configure the tenant that will use the Dot1q Tunnel.
Follow these steps to configure 802.1Q tunnels using the NX-OS style CLI:
Note
You can use ports, port-channels, or virtual port channels for interfaces included in a Dot1q Tunnel. Detailed steps are included for configuring ports. See the examples below for the commands to configure edge and core port-channels and virtual port channels.
Note
Dot1q Tunnels must include 2 or more interfaces. Repeat the steps (or configure two interfaces together), to mark each interface for use in a Dot1q Tunnel. In this example, two interfaces are configured as edge-switch ports, used by a single customer.
Create a Dot1q Tunnel and configure the interfaces for use in the tunnel using the NX-OS Style CLI, with the following steps:
-
Configure at least two interfaces for use in the tunnel.
-
Create a Dot1q Tunnel.
-
Associate all the interfaces with the tunnel.
Procedure
-
configure
Enters configuration mode.
Example:
apic1# configure
-
Configure two interfaces for use in an 802.1Q tunnel, with the following steps:
-
leaf ID
Identifies the leaf where the interfaces of the Dot1q Tunnel will be located.
Example:
apic1(config)# leaf 101
-
interface ethernet slot/port
Identifies the interface or interfaces to be marked as ports in a tunnel.
Example:
apic1(config-leaf)# interface ethernet 1/13-14
-
switchport mode dot1q-tunnel {edgePort | corePort}
Marks the interfaces for use in an 802.1Q tunnel, and then leaves the configuration mode.
The example shows configuring some interfaces for edge port use. Repeat steps 3 to 5 to configure more interfaces for the tunnel.
Example:
apic1(config-leaf-if)# switchport mode dot1q-tunnel edgePort
apic1(config-leaf-if)# exit
apic1(config-leaf)# exit
apic1(config)# exit
-
Create an 802.1Q tunnel with the following steps:
-
leaf ID
Returns to the leaf where the interfaces are located.
Example:
apic1(config)# leaf 101
-
interface ethernetslot/port
Returns to the interfaces included in the tunnel.
Example:
apic1(config-leaf)# interface ethernet 1/13-14
-
switchport tenanttenant-namedot1q-tunnel tunnel-name
Associates the interfaces to the tunnel and exits the configuration mode.
Example:
apic1(config-leaf-if)# switchport tenant tenant64 dot1q-tunnel vrf64_edgetunnel
apic1(config-leaf-if)# exit
-
Repeat steps 7 to 10 to associate other interfaces with the tunnel.