Configuring a Layer 3 VXLAN gateway
A layer 3 VXLAN gateway provides routing between VXLAN segment and any other network segment such as VXLAN, VLAN or L3VPN. The following sections show how to configure an ASR 9000 series router as a Layer 3 VXLAN gateway between a VLAN and a VXLAN segment in different networks.
Prerequisites
The following are the prerequisites to configuring a Cisco ASR 9000 series router as a VXLAN Layer 2 gateway:
-
Configure a loopback interface. It serves as a source interface for the local VTEP.
-
Configure unicast reachability to remote VTEPs.
-
Configure Bidirectional Protocol Independent Multicast (Bidir PIM) or PIM Sparse Mode. For more information, see the Multicast Configuration Guide for Cisco ASR 9000 Series Routers.
Restrictions
-
You configure VXLAN only on Overlay Transport Virtualization (OTV) and VXLAN UDP ports.
-
The source interface can only be a loopback interface.
-
You cannot share a VNI or a multicast group or a source interface across multiple NVE interfaces.
-
The VNI range and the multicast range both can only be specified contiguously. A non-contiguous range with comma separated values is not supported.
-
The VNI to multicast group mapping can be only either 1:1 or N:1. For example, -
The "member vni 5000 mcast-group 239.1.1.1" command configures a valid 1:1 mapping.
-
The "member vni 5000-5005 mcast-group 239.1.1.1" command configures a valid N:1 mapping.
-
-
When a VNI is configured as a part of a VNI range, it can be modified or deleted only as part of the same range. For example, if the "member vni 5000-5002 mcast-group 239.1.1.1" command is configured, you cannot disassociate just the VNI 5001 from the NVE interface with a "no member vni 5001" command.
-
Static MAC configuration is not supported.
-
You can configure a maximum of 128k Layer 2 and Layer 3 sub-interfaces per system. The configuration can be a combination of both Layer 2 sub-interfaces and Layer 3 sub-interfaces; or either fully Layer 2 sub-interfaces or Layer 3 sub-interfaces.
Though the system allows you to configure more than 128k sub-interfaces per system, you cannot use this configuration for services. Though the system displays a warning message on reaching the threshold of 128k sub-interfaces, the configuration is still applied. However, you cannot use this configuration for services.
Creating and configuring the Network Virtualization Endpoint (NVE) interface
Perform this task to create an NVE interface and configure it as a VXLAN Tunnel EndPoint (VTEP) for VxLAN.
SUMMARY STEPS
- interface nve nve-identifier
- source-interface loopback loopback-interface-identifier
- member vni vni_number [ -end_vni_range ] mcast-group ip_address [ end_ip_address_range ]
- Use the commit or end command.
DETAILED STEPS
Step 1 |
interface nve nve-identifier Example:
Creates the NVE interface and enters the NVE interface configuration sub-mode. |
||
Step 2 |
source-interface loopback loopback-interface-identifier Example:
Sets a loopback interface as the source interface for the VTEP. |
||
Step 3 |
member vni vni_number [ -end_vni_range ] mcast-group ip_address [ end_ip_address_range ] Example:
|
||
Step 4 |
Use the commit or end command. commit - Saves the configuration changes and remains within the configuration session. end - Prompts user to take one of these actions:
|
Configuring the L3 bridge virtual interface
Perform this task to configure the IPv4 address for a bridge virtual interface for L3 routing.
SUMMARY STEPS
- interface BVI BVI-identifier
- ipv4 address ip-address{ /prefix | subnet mask}
- Use the commit or end command.
DETAILED STEPS
Step 1 |
interface BVI BVI-identifier Example:
|
Step 2 |
ipv4 address ip-address{ /prefix | subnet mask} Example:
Sets the IPv4 address for the bridge virtual interface. |
Step 3 |
Use the commit or end command. commit - Saves the configuration changes and remains within the configuration session. end - Prompts user to take one of these actions:
|
Configuring a bridge domain
Perform this task to configure a bridge domain.
SUMMARY STEPS
- l2vpn
- bridge group bridge-group-name
- bridge-domain bridge-domain-name
- member vni vxlan-id
- routed interface BVI BVI-id
- Use the commit or end command.
DETAILED STEPS
Step 1 |
l2vpn Example:
Enters the l2vpn configuration mode. |
Step 2 |
bridge group bridge-group-name Example:
Enters the bridge group configuration mode. |
Step 3 |
bridge-domain bridge-domain-name Example:
|
Step 4 |
member vni vxlan-id Example:
|
Step 5 |
routed interface BVI BVI-id Example:
|
Step 6 |
Use the commit or end command. commit - Saves the configuration changes and remains within the configuration session. end - Prompts user to take one of these actions:
|