26.2.5 Configuring VXLAN Access Ports
When you set a VNI ID for a VXLAN Access, make sure that the corresponding VNI ID belongs to VTEP first. If VXLAN Access portis set to a VNI ID that does not belong to VTEP, communication may occur at the corresponding VNI ID.
- <Structure of this section>
(1) VLAN Mapping
Set the configuration to connect base A and base B through VXLAN tunneling. Use VLAN mapping as VNI mapping method. The following figure shows a sample configuration for VLAN mapping.
|
- Points to note
-
Set the following for VLAN mapping.
-
mode
To operate in a mode that extends the capacity limit, specify vxlan vlan-mapping mode command.. If you set vxlan vlan-mapping mode command, the overlay (VXLAN) program restarts. Make this setting prior to starting operation.
-
Mapping VNI
-
Mapping VLAN to Ports
After assigning a VNI ID to VLAN, configure VLAN ID that corresponds to the physical port or channel group. If a VLAN ID is assigned to a physical port or channel group and a VNI ID is set to the corresponding VLAN, frames received on VXLAN Access port may be temporarily looped back for communication.
-
Command examples
-
(config)# vlan 20
(config-vlan)# vxlan-vni 2
(config-vlan)# exit
Assign a VNI ID to VLAN.
-
(config)# interface gigabitethernet 1/0/1
(config-if)# switchport mode access
(config-if)# switchport access vlan 20
(config-if)# exit
Assign VLAN 20 to ports 1/0/1.
-
(config)# interface gigabitethernet 1/0/2
(config-if)# switchport mode access
(config-if)# switchport access vlan 20
(config-if)# exit
Assign VLAN 20 to ports 1/0/2.
Set the same VNI on Site B in the same way.
- Notes
-
When deleting a VXLAN Access port, delete VLAN ID from the physical port or channel group, and then delete VNI ID set for the corresponding VLAN. When a VLAN ID is assigned to a physical port or channel group and a VNI ID is deleted from the corresponding VLAN, frames received on VXLAN Access port may be temporarily looped back for communication.
(2) Subinterface mapping
Set the configuration to connect base A and base B, base A and base C with VXLAN tunneling. Use subinterface mapping as VNI mapping method. The following figure shows an example configuration for subinterface mapping.
|
- Points to note
-
The following information is set for subinterface mapping:
-
Sub interface
-
Mapping VNI
-
Command examples
-
(config)# interface gigabitethernet 1/0/1
(config-if)# no switchport
(config-if)# exit
Disable Layer 2 interface configuration on port 1/0/1.
-
(config)# interface gigabitethernet 1/0/1.100
(config-subif)# encapsulation dot1q 10
(config-subif)# vxlan-vni 2
(config-subif)# exit
Sets subinterface 1/0/1.100 on port 1/0/1 and 10 as VLAN ID. It is assigned to VNI 2.
-
(config)# interface gigabitethernet 1/0/1.200
(config-subif)# encapsulation dot1q 20
(config-subif)# vxlan-vni 3
(config-subif)# exit
Sets subinterface 1/0/1.200 on port 1/0/1 and 20 as VLAN ID. It is assigned to VNI 3.