Prerequisites
In setting up a MPLS EVPN network, certain prerequisites are essential to ensure proper functionality and connectivity.
| • | Ensure MPLS EVPN Configuration: Confirm that MPLS EVPN and MPLS MH filtering are already enabled in all leaf and root nodes of the network as they are required for MPLS EVPN Multihoming. |
Copy
!hardware-profile filter evpn-mpls-mh enable
!
evpn mpls enable
!
evpn mpls multihoming enable
!
qos enable
!
| • | Define Interfaces and Loopback Addresses: Configure Layer 2 interfaces, like port channel interfaces (e.g., po1), and assign specific system MAC addresses for proper identification and routing. Additionally, assign loopback IP addresses to establish essential points of connectivity. These configurations establish the efficient network routing and communication. |
Copy
!
interface po1
switchport
load-interval 30
evpn multi-homed system-mac 0000.4321.1234
!
interface lo
ip address 8.8.8.8/32 secondary
ip router isis ISIS-IGP
!
interface xe8
switchport
!
interface xe26
channel-group 1 mode active
!
| • | Configure ISIS and BGP for Dynamic Routing: Enable ISIS to facilitate dynamic routing on all Leaf and Root nodes within the network. Define ISIS router instances to match loopback IP addresses and add network segments to ISIS areas for proper route distribution. Additionally, establish BGP sessions to advertise routes between different nodes. Set up neighbor relationships using loopback IP addresses, ensuring efficient route advertisement and convergence for optimal network performance. |
Copy
!
router isis ISIS-IGP
is-type level-1
ignore-lsp-errors
lsp-gen-interval 5
spf-interval-exp level-1 50 2000
metric-style wide
mpls traffic-eng router-id 8.8.8.8
mpls traffic-eng level-1
capability cspf
dynamic-hostname
fast-reroute terminate-hold-on interval 10000
fast-reroute per-prefix level-1 proto ipv4 all
fast-reroute per-prefix remote-lfa level-1 proto ipv4 tunnel mpls-ldp
bfd all-interfaces
net 49.0001.0000.0000.0008.00
!
router bgp 65535
neighbor 9.9.9.9 remote-as 65535
neighbor 24.24.24.24 remote-as 65535
neighbor 26.26.26.26 remote-as 65535
neighbor 29.29.29.29 remote-as 65535
neighbor 9.9.9.9 update-source lo
neighbor 9.9.9.9 fall-over bfd
neighbor 24.24.24.24 update-source lo
neighbor 24.24.24.24 fall-over bfd
neighbor 26.26.26.26 update-source lo
neighbor 26.26.26.26 fall-over bfd
neighbor 29.29.29.29 update-source lo
neighbor 29.29.29.29 fall-over bfd
!
address-family l2vpn evpn
neighbor 9.9.9.9 activate
neighbor 24.24.24.24 activate
neighbor 26.26.26.26 activate
neighbor 29.29.29.29 activate
exit-address-family
!
exit
!
| • | Configure LDP and RSVP for Efficient Network Operation: Enable Label Distribution Protocol (LDP) and Resource Reservation Protocol (RSVP) on all Leaf and Root nodes to optimize traffic routing and quality of service. LDP assigns labels for packet forwarding, while RSVP reserves network resources along specified paths to enhance network performance and reliability. |
Copy
!
router ldp
router-id 8.8.8.8
fast-reroute
graceful-restart full
graceful-restart timers neighbor-liveness 120
graceful-restart timers max-recovery 120
session-protection duration 10
targeted-peer ipv4 9.9.9.9
exit-targeted-peer-mode
targeted-peer ipv4 24.24.24.24
exit-targeted-peer-mode
transport-address ipv4 8.8.8.8
!
router rsvp
!
rsvp-path LEAF1-ROOT2 mpls
24.1.4.24 strict
!
rsvp-path LEAF1-ROOT1 mpls
26.1.2.26 strict
!
rsvp-trunk LEAF1-ROOT1 ipv4
primary fast-reroute protection facility
primary path LEAF1-ROOT1
to 9.9.9.9
!
rsvp-trunk LEAF1-ROOT2 ipv4
primary fast-reroute protection facility
primary path LEAF1-ROOT2
to 24.24.24.24
!
| • | Create VRF for Isolated Routing Instances: Configure VRF on all Leaf and Root nodes to create isolated routing instances within the network. This enables separate routing tables and forwarding behaviors for different groups of network resources. |
Copy
!
mac vrf vrf103
rd 8.8.8.8:103
route-target both 65535:103
!
| • | Connect Network Interfaces: Configure network interfaces on all Leaf and Root nodes with connection details, IP addresses, and protocol settings. Enable label-switching and configure participation in the ISIS routing protocol, including support for protocols like LDP and RSVP for IPv4. These configurations optimize routing and resource management across the network. |
Copy
!
interface xe11
description connected to ROOT2 int xe9
ip address 24.1.4.25/24
label-switching
ip router isis ISIS-IGP
enable-ldp ipv4
enable-rsvp
!
interface xe20
description connected to ROOT1 int xe20
ip address 26.1.2.27/24
label-switching
ip router isis ISIS-IGP
enable-ldp ipv4
enable-rsvp
!
Copy
!
bridge 1 protocol rstp vlan-bridge
!
vlan database
vlan-reservation 4030-4094
vlan 2-3010 bridge 1 state enable
!
interface po100
switchport
bridge-group 1
switchport mode trunk
switchport trunk allowed vlan all
!
interface lo
ip address 32.32.32.32/32 secondary
!
interface xe9
channel-group 100 mode active
!
interface xe17
channel-group 100 mode active
!
interface xe1
switchport
bridge-group 1
switchport mode trunk
switchport trunk allowed vlan all
!
exit
!