cisco — Configuring Layer 2 VPN EVPN on a VTEP

Configuring EVPN VXLAN Layer 2 Overlay Network Configuring Layer 2 VPN EVPN on a VTEP Command or Action Purpose Step 10 route-target auto vni Example: Device(config-evpn)# route-target auto vni (Optional) Specifies to use VNI instead of EVPN instance number to auto-generate route target. Step 11 exit Example: Device(config-evpn)# exit Exits EVPN configuration mode and enters global configuration mode. Step 12 l2vpn evpn instance evpn-instance-number vlan-based Example: Device(config)# l2vpn evpn instance 1 vlan-based Configures a VLAN based EVPN instance in Layer 2 VPN configuration mode.

An EVPN instance needs to be explicitly configured only when something needs to be configured per EVPN instance such as a route target. Step 13 encapsulation vxlan Example: Device(config-evpn-evi)# encapsulation vxlan (Optional) Defines the encapsulation format as VXLAN. The encapsulation format is VXLAN by default. Step 14 replication-type {ingress | static} Example: Device(config-evpn-evi)# replication-type ingress (Optional) Sets the replication type for the EVPN instance. In case a global replication type has already been configured, this overrides the global setting. Step 15 default-gateway advertise {enable | disable} Example:

Device(config-evpn-evi)# default-gateway advertise disable (Optional) Enables or disables the default gateway advertisement for the EVPN instance. In case default gateway advertisement has already been globally configured, this overrides the global setting. This command is mandatory only if the same MAC address is not manually configured on all the access SVIs. To configure distributed anycast gateway in a VXLAN network using MAC aliasing, enable default gateway advertisement on all the leaf switches in the network. Step 16 ip local-learning {enable | disable} Example:

Device(config-evpn-evi)# ip local-learning disable (Optional) Enables or disables local IP address learning for the specified EVPN instance. In case IP address learning has already been globally configured, this overrides the global setting. Configuring EVPN VXLAN Layer 2 Overlay Network 7