21
# Create a VXLAN tunnel to Switch B. The tunnel interface name is
Tunnel 3
.
[SwitchC] interface tunnel 3 mode vxlan
[SwitchC-Tunnel3] source 3.3.3.3
[SwitchC-Tunnel3] destination 2.2.2.2
[SwitchC-Tunnel3] quit
# Assign Tunnel 1 and Tunnel 3 to VXLAN 10.
[SwitchC] vsi vpna
[SwitchC-vsi-vpna] vxlan 10
[SwitchC-vsi-vpna-vxlan10] tunnel 1
[SwitchC-vsi-vpna-vxlan10] tunnel 3
[SwitchC-vsi-vpna-vxlan10] quit
[SwitchC-vsi-vpna] quit
# Create VLAN 2, and assign the site-facing interface Ten-GigabitEthernet 1/1/1 to VLAN 2.
[SwitchC] vlan 2
[SwitchC-vlan2] quit
[SwitchC] interface ten-gigabitethernet 1/1/1
[SwitchC-Ten-GigabitEthernet1/1/1] port link-type trunk
[SwitchC-Ten-GigabitEthernet1/1/1] port trunk permit vlan 2
# On Ten-GigabitEthernet 1/1/1, create Ethernet service instance 1000 to match VLAN 2.
[SwitchC-Ten-GigabitEthernet1/1/1] service-instance 1000
[SwitchC-Ten-GigabitEthernet1/1/1-srv1000] encapsulation s-vid 2
# Map Ethernet service instance 1000 to the VSI
vpna
.
[SwitchC-Ten-GigabitEthernet1/1/1-srv1000] xconnect vsi vpna
[SwitchC-Ten-GigabitEthernet1/1/1-srv1000] quit
[SwitchC-Ten-GigabitEthernet1/1/1] quit
Verifying the configuration
1.
Verify the VXLAN settings on the VTEPs. This example uses Switch A.
# Verify that the VXLAN tunnel interfaces on the VTEP are up.
[SwitchA] display interface tunnel 1
Tunnel1
Current state: UP
Line protocol state: UP
Description: Tunnel1 Interface
Bandwidth: 64kbps
Maximum Transmit Unit: 64000
Internet protocol processing: disabled
Last clearing of counters: Never
Tunnel source 1.1.1.1, destination 2.2.2.2
Tunnel protocol/transport UDP_VXLAN/IP
# Verify that the VXLAN tunnels have been assigned to the VXLAN.
[SwitchA] display l2vpn vsi verbose
VSI Name: vpna
VSI Index : 0
VSI State : Up
MTU : 1500
Bandwidth : -
Broadcast Restrain : -