+++++++++++++++++++++++++++ M-VPN +++++++++++++++++++++++++++ ****************************************************** Lab 1 - Configuring an Intra-AS MPLS VPN ****************************************************** ===================================================== 1. Configure Routing within the SP Core ===================================================== ------ CSR1 ------ en config t ! hostname CSR1 ! no ip domain-lookup ! line con 0 no exec-timeout logging sync ! Interface Gig1 ip address 192.1.12.1 255.255.255.0 no shut ! Interface Gig2 ip address 192.1.13.1 255.255.255.0 no shut ! Interface Loopback10 ip address 10.1.1.1 255.255.255.255 ! router ospf 1 router-id 0.0.0.1 network 192.1.12.0 0.0.0.255 area 0 network 192.1.13.0 0.0.0.255 area 0 network 10.0.0.0 0.255.255.255 area 0 ------ CSR2 ------ en config t ! hostname CSR2 ! no ip domain-lookup ! line con 0 no exec-timeout logging sync ! Interface Gig1 ip address 192.1.12.2 255.255.255.0 no shut ! Interface Gig2 ip address 192.1.23.2 255.255.255.0 no shut ! Interface Loopback10 ip address 10.1.1.2 255.255.255.255 ! router ospf 1 router-id 0.0.0.2 network 192.1.12.0 0.0.0.255 area 0 network 192.1.23.0 0.0.0.255 area 0 network 10.0.0.0 0.255.255.255 area 0 ------ CSR3 ------ en config t ! hostname CSR3 ! no ip domain-lookup ! line con 0 no exec-timeout logging sync ! Interface Gig1 ip address 192.1.23.3 255.255.255.0 no shut ! Interface Gig2 ip address 192.1.13.3 255.255.255.0 no shut ! Interface Loopback10 ip address 10.1.1.3 255.255.255.255 ! router ospf 1 router-id 0.0.0.3 network 192.1.13.0 0.0.0.255 area 0 network 192.1.23.0 0.0.0.255 area 0 network 10.0.0.0 0.255.255.255 area 0 ============================================================== 2. Configure MPLS Unicast Routing (LDP) within the SP Core ============================================================== ------ CSR1 ------ mpls ldp router-id loopback10 ! Interface Gig1 mpls ip ! Interface Gig2 mpls ip ------ CSR2 ------ mpls ldp router-id loopback10 ! Interface Gig1 mpls ip ! Interface Gig2 mpls ip ------ CSR3 ------ mpls ldp router-id loopback10 ! Interface Gig1 mpls ip ! Interface Gig2 mpls ip ============================================================== 3. Configure MP-BGP between the PE Routers ============================================================== ------ CSR1 ------ router bgp 100 neighbor 10.1.1.2 remote-as 100 neighbor 10.1.1.2 update-source loopback10 ! address-family vpnv4 neighbor 10.1.1.2 activate ------ CSR3 ------ router bgp 100 neighbor 10.1.1.2 remote-as 100 neighbor 10.1.1.2 update-source loopback10 ! address-family vpnv4 neighbor 10.1.1.2 activate ------ CSR2 ------ router bgp 100 neighbor IBGP peer-group neighbor IBGP remote-as 100 neighbor IBGP update-source loopback10 neighbor 10.1.1.1 peer-group IBGP neighbor 10.1.1.3 peer-group IBGP ! address-family vpnv4 neighbor 10.1.1.1 activate neighbor 10.1.1.3 activate neighbor IBGP route-reflector-client ============================================================== 4. Configure PE Routers ============================================================== ------ CSR1 ------ vrf definition KBITS rd 100:1 address-family ipv4 route-target both 100:1 ! Interface Gig3 vrf forwarding KBITS ip address 192.1.14.1 255.255.255.0 no shut ! router bgp 100 address-family ipv4 vrf KBITS neighbor 192.1.14.4 remote-as 65004 ------ CSR3 ------ vrf definition KBITS rd 100:1 address-family ipv4 route-target both 100:1 ! Interface Gig3 vrf forwarding KBITS ip address 192.1.35.3 255.255.255.0 no shut ! router bgp 100 address-family ipv4 vrf KBITS neighbor 192.1.35.5 remote-as 65005 ============================================================== 5. Configure CE Routers ============================================================== ------ R4 ------ en config t ! hostname R4 ! no ip domain-lookup ! line con 0 no exec-timeout logging sync ! Interface E0/0 ip address 192.1.14.4 255.255.255.0 no shut ! Interface Loopback10 ip address 10.4.4.4 255.255.255.0 ! router bgp 65004 neighbor 192.1.14.1 remote-as 100 network 10.4.4.0 mask 255.255.255.0 ------ R5 ------ en config t ! hostname R5 ! no ip domain-lookup ! line con 0 no exec-timeout logging sync ! Interface E0/0 ip address 192.1.35.5 255.255.255.0 no shut ! Interface Loopback10 ip address 10.5.5.5 255.255.255.0 ! router bgp 65005 neighbor 192.1.35.3 remote-as 100 network 10.5.5.0 mask 255.255.255.0 ******************************************************** Lab 2 - Configuring the SP Core with Multicast Routing ******************************************************** ------ CSR1 ------ ip multicast-routing distributed ! Interface Gig1 ip pim dense-mode ! Interface Gig2 ip pim dense-mode ! Interface loopback10 ip pim dense-mode ip igmp join-group 225.1.2.3 ------ CSR2 ------ ip multicast-routing distributed ! Interface Gig1 ip pim dense-mode ! Interface Gig2 ip pim dense-mode ! Interface loopback10 ip pim dense-mode ip igmp join-group 225.1.2.3 ------ CSR3 ------ ip multicast-routing distributed ! Interface Gig1 ip pim dense-mode ! Interface Gig2 ip pim dense-mode ! Interface loopback10 ip pim dense-mode ip igmp join-group 225.1.2.3 ****************************************************** Lab 3 - Configuring M-VPN - Multicast-Enabled Core ****************************************************** ====================================================================== 1. Configure the PE Routers for Multicat Routing for the VRF (KBITS) ====================================================================== ------ CSR1 ------ ip multicast-routing vrf KBITS distributed ! vrf definition KBITS address-family ipv4 mdt default 239.1.1.1 mdt data 232.1.1.0 0.0.0.255 ! Interface Gig3 ip pim sparse-mode ! ip pim vrf KBITS rp-address 10.4.4.4 ------ CSR1 ------ ip multicast-routing vrf KBITS distributed ! vrf definition KBITS address-family ipv4 mdt default 239.1.1.1 mdt data 232.1.1.0 0.0.0.255 ! Interface Gig3 ip pim sparse-mode ! ip pim vrf KBITS rp-address 10.4.4.4 ====================================================================== 2. Configure the CE Routers for Multicat Routing ====================================================================== ------ R4 ------ ip multicast-routing ! Interface loopback10 ip pim sparse-mode ! Interface E0/0 ip pim sparse-mode ! ip pim rp-address 10.4.4.4 ------ R5 ------ ip multicast-routing ! Interface loopback10 ip pim sparse-mode ! Interface E0/0 ip pim sparse-mode ! ip pim rp-address 10.4.4.4 ====================================================================== 3. Configure the Static Joins for testing ====================================================================== ------ R4 ------ Interface loopback10 ip igmp join-group 225.10.10.10 ------ R5 ------ Interface loopback10 ip igmp join-group 225.10.10.10 ****************************************************** Lab 4 - Configuring M-VPN - mLDP in the Core ****************************************************** ====================================================================== 1. De-Configure the PE Routers for Multicat Routing within the Core ====================================================================== ------ CSR1 ------ Interface Gig1 no ip pim dense-mode ! Interface Gig2 no ip pim dense-mode ! Interface loopback10 no ip pim dense-mode ! vrf definition KBITS address-family ipv4 no mdt default 239.1.1.1 no mdt data 232.1.1.0 0.0.0.255 ------ CSR2 ------ Interface Gig1 no ip pim dense-mode ! Interface Gig2 no ip pim dense-mode ! Interface loopback10 no ip pim dense-mode ------ CSR3 ------ Interface Gig1 no ip pim dense-mode ! Interface Gig2 no ip pim dense-mode ! Interface loopback10 no ip pim dense-mode ! vrf definition KBITS address-family ipv4 no mdt default 239.1.1.1 no mdt data 232.1.1.0 0.0.0.255 ====================================================================== 2. Configure the Core for mLDP for KBITS ====================================================================== ------ CSR1 ------ vrf definition KBITS address-family ipv4 mdt default mpls mldp 10.1.1.3 mdt data mpls mldp 245 ------ CSR3 ------ vrf definition KBITS address-family ipv4 mdt default mpls mldp 10.1.1.1 mdt data mpls mldp 245 +++++++++++++++++++++++++++ MPLS-TE +++++++++++++++++++++++++++ Pre-requisite: Routing Protocol [OSPF or IS-IS] & LDP ****************************************************** Lab 1 - Configuring the SP Core for MPLS-TE ****************************************************** ===================================================== 1. Enable MPLS-TE globally and under the interface ===================================================== ------ R1 ------ mpls traffic-eng tunnels ! Interface E0/0 mpls traffic-eng tunnels ! Interface E0/1 mpls traffic-eng tunnels ! Interface E0/2 mpls traffic-eng tunnels ------ R2 ------ mpls traffic-eng tunnels ! Interface E0/0 mpls traffic-eng tunnels ! Interface E0/1 mpls traffic-eng tunnels ! Interface E0/2 mpls traffic-eng tunnels ------ R3 ------ mpls traffic-eng tunnels ! Interface E0/0 mpls traffic-eng tunnels ! Interface E0/1 mpls traffic-eng tunnels ! Interface E0/2 mpls traffic-eng tunnels ------ R4 ------ mpls traffic-eng tunnels ! Interface E0/0 mpls traffic-eng tunnels ! Interface E0/1 mpls traffic-eng tunnels ! Interface E0/2 mpls traffic-eng tunnels =================================================================== 2. Enable RSVP Under the Interface and reserve bandwidth for RSVP =================================================================== ------ R1 ------ Interface E0/0 ip rsvp bandwidth 512 ! Interface E0/1 ip rsvp bandwidth 512 ! Interface E0/2 ip rsvp bandwidth 192 ------ R2 ------ Interface E0/0 ip rsvp bandwidth 512 ! Interface E0/1 ip rsvp bandwidth 512 ! Interface E0/2 ip rsvp bandwidth 192 ------ R3 ------ Interface E0/0 ip rsvp bandwidth 512 ! Interface E0/1 ip rsvp bandwidth 512 ! Interface E0/2 ip rsvp bandwidth 192 ------ R4 ------ Interface E0/0 ip rsvp bandwidth 512 ! Interface E0/1 ip rsvp bandwidth 512 ! Interface E0/2 ip rsvp bandwidth 192 ===================================================== 3. Enable the Routing Protocol with MPLS TE ===================================================== ------ R1 ------ router ospf 1 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 ------ R2 ------ router ospf 1 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 ------ R3 ------ router ospf 1 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 ------ R4 ------ router ospf 1 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 ****************************************************** Lab 2 - Configuring Static Tunnels ****************************************************** =================================================================================== 1. Configure a Tunnel from R1 to 4.4.4.4 via R2 reserving 150 kbps along the path =================================================================================== ------ R1 ------ ip explicit-path name TO-R4 enable next-address 2.2.2.2 next-address 4.4.4.4 ! Interface Tunnel 4 ip unnumbered Loopback0 tunnel destination 4.4.4.4 tunnel mode mpls traffic-eng tunnel mpls traffic-eng bandwidth 150 tunnel mpls traffic-eng path-option 1 explicit name TO-R4 tunnel mpls traffic-eng priority 3 3 tunnel mpls traffic-eng autoroute announce Verification: --------------- sh ip rsvp interface sh mpls traffic-eng tunnels sh ip route ospf =================================================================================== 2. Configure a Tunnel from R1 to 3.3.3.3 direct reserving 192 kbps along the path =================================================================================== ------ R1 ------ ip explicit-path name TO-R3 enable next-address 3.3.3.3 ! Interface Tunnel 3 ip unnumbered Loopback0 tunnel destination 3.3.3.3 tunnel mode mpls traffic-eng tunnel mpls traffic-eng bandwidth 192 tunnel mpls traffic-eng path-option 1 explicit name TO-R3 tunnel mpls traffic-eng priority 3 3 tunnel mpls traffic-eng autoroute announce Verification: --------------- sh ip rsvp interface sh mpls traffic-eng tunnels sh ip route ospf ======================================================================================================== 3. Configure a Tunnel from R1 to 2.2.2.2 via any available path with a Bandwidth requirement of 400kbps ======================================================================================================== ------ R1 ------ ip explicit-path name TO-R2 enable next-address 4.4.4.4 next-address 3.3.3.3 next-address 2.2.2.2 ! Interface Tunnel 2 ip unnumbered Loopback0 tunnel destination 2.2.2.2 tunnel mode mpls traffic-eng tunnel mpls traffic-eng bandwidth 400 tunnel mpls traffic-eng path-option 1 explicit name TO-R2 tunnel mpls traffic-eng priority 3 3 tunnel mpls traffic-eng autoroute announce Verification: --------------- sh ip rsvp interface sh mpls traffic-eng tunnels sh ip route ospf ======================================================================================================== 4. Configure a Tunnel from R2 to 4.4.4.4 via any available path with a Bandwidth requirement of 400kbps ======================================================================================================== ------ R2 ------ ip explicit-path name TO-R4 enable next-address 3.3.3.3 next-address 4.4.4.4 ! Interface Tunnel 4 ip unnumbered Loopback0 tunnel destination 4.4.4.4 tunnel mode mpls traffic-eng tunnel mpls traffic-eng bandwidth 400 tunnel mpls traffic-eng path-option 1 explicit name TO-R4 tunnel mpls traffic-eng priority 3 3 tunnel mpls traffic-eng autoroute announce Verification: --------------- sh ip rsvp interface sh mpls traffic-eng tunnels sh ip route ospf ****************************************************** Lab 3 - Configuring Static Tunnels with Priority ****************************************************** ======================================================================================================= 1. Configure a Tunnel from R4 to 2.2.2.2 via R1 reserving 400 kbps along the path. This is an important tunnel and should be given priority in case bandwidth is not available ======================================================================================================= ------ R4 ------ ip explicit-path name TO-R2 enable next-address 1.1.1.1 next-address 2.2.2.2 ! Interface Tunnel 2 ip unnumbered Loopback0 tunnel destination 2.2.2.2 tunnel mode mpls traffic-eng tunnel mpls traffic-eng bandwidth 400 tunnel mpls traffic-eng path-option 1 explicit name TO-R2 tunnel mpls traffic-eng priority 2 2 tunnel mpls traffic-eng autoroute announce Verification: --------------- sh ip rsvp interface sh mpls traffic-eng tunnels sh ip route ospf ****************************************************** Lab 4 - Configuring Dynamic Tunnels ****************************************************** =================================================================================== 1. De-configure all the existing tunnels =================================================================================== ------ R1 ------ no interface Tunnel2 no interface Tunnel3 no interface Tunnel4 ------ R2 ------ no interface Tunnel4 ------ R4 ------ no interface Tunnel2 =================================================================================== 2. Configure a Tunnel from R1 to 4.4.4.4 reserving 150 kbps along the path =================================================================================== ------ R1 ------ Interface Tunnel 4 ip unnumbered Loopback0 tunnel destination 4.4.4.4 tunnel mode mpls traffic-eng tunnel mpls traffic-eng bandwidth 150 tunnel mpls traffic-eng path-option 1 dynamic tunnel mpls traffic-eng priority 3 3 tunnel mpls traffic-eng autoroute announce Verification: --------------- sh ip rsvp interface sh mpls traffic-eng tunnels sh ip route ospf =================================================================================== 3. Configure a Tunnel from R1 to 3.3.3.3 reserving 192 kbps along the path =================================================================================== ------ R1 ------ Interface Tunnel 3 ip unnumbered Loopback0 tunnel destination 3.3.3.3 tunnel mode mpls traffic-eng tunnel mpls traffic-eng bandwidth 192 tunnel mpls traffic-eng path-option 1 dynamic tunnel mpls traffic-eng priority 3 3 tunnel mpls traffic-eng autoroute announce Verification: --------------- sh ip rsvp interface sh mpls traffic-eng tunnels sh ip route ospf ======================================================================================================== 4. Configure a Tunnel from R4 to 2.2.2.2 with a Bandwidth requirement of 400kbps ======================================================================================================== ------ R4 ------ Interface Tunnel 2 ip unnumbered Loopback0 tunnel destination 2.2.2.2 tunnel mode mpls traffic-eng tunnel mpls traffic-eng bandwidth 400 tunnel mpls traffic-eng path-option 1 dynamic tunnel mpls traffic-eng priority 3 3 tunnel mpls traffic-eng autoroute announce Verification: --------------- sh ip rsvp interface sh mpls traffic-eng tunnels sh ip route ospf ======================================================================================================== 5. Configure a Tunnel from R1 to 2.2.2.2 with a Bandwidth requirement of 300kbps ======================================================================================================== ------ R1 ------ Interface Tunnel 2 ip unnumbered Loopback0 tunnel destination 2.2.2.2 tunnel mode mpls traffic-eng tunnel mpls traffic-eng bandwidth 300 tunnel mpls traffic-eng path-option 1 dynamic tunnel mpls traffic-eng priority 3 3 tunnel mpls traffic-eng autoroute announce Verification: --------------- sh ip rsvp interface sh mpls traffic-eng tunnels sh ip route ospf ****************************************************** Lab 5 - Configuring IS-IS for MPLS-TE ****************************************************** =================================================================================== 1. De-configure OSPF on all Routers =================================================================================== ------ R1 ------ no router ospf 1 ------ R2 ------ no router ospf 1 ------ R3 ------ no router ospf 1 ------ R4 ------ no router ospf 1 ===================================================== 2. Enable IS-IS as the Routing Protocol ===================================================== ------ R1 ------ router isis net 49.0000.0000.0000.0001.00 is-type level-2 metric-style wide ! Interface loopback0 ip router isis ! Interface E0/0 ip router isis ! Interface E0/1 ip router isis ! Interface E0/2 ip router isis ------ R2 ------ router isis net 49.0000.0000.0000.0002.00 is-type level-2 metric-style wide ! Interface loopback0 ip router isis ! Interface E0/0 ip router isis ! Interface E0/1 ip router isis ! Interface E0/2 ip router isis ------ R3 ------ router isis net 49.0000.0000.0000.0003.00 is-type level-2 metric-style wide ! Interface loopback0 ip router isis ! Interface E0/0 ip router isis ! Interface E0/1 ip router isis ! Interface E0/2 ip router isis ------ R4 ------ router isis net 49.0000.0000.0000.0004.00 is-type level-2 metric-style wide ! Interface loopback0 ip router isis ! Interface E0/0 ip router isis ! Interface E0/1 ip router isis ! Interface E0/2 ip router isis ===================================================== 3. Enable IS-IS for MPLS-TE ===================================================== ------ R1 ------ router isis mpls traffic-eng router-id Loopback0 mpls traffic-eng level-2 ------ R2 ------ router isis mpls traffic-eng router-id Loopback0 mpls traffic-eng level-2 ------ R3 ------ router isis mpls traffic-eng router-id Loopback0 mpls traffic-eng level-2 ------ R4 ------ router isis mpls traffic-eng router-id Loopback0 mpls traffic-eng level-2 ****************************************************** Lab 6 - Configuring MPLS-TE with FRR ****************************************************** ======================================================================================================= 1. Configure the routers with OSPF and LDP ======================================================================================================= ------ R1 ------ mpls ldp router-id loopback0 ! router ospf 1 router-id 0.0.0.1 network 192.1.13.0 0.0.0.255 area 0 network 1.0.0.0 0.255.255.255 area 0 ! Interface E0/0 mpls ip ------ R2 ------ mpls ldp router-id loopback0 ! router ospf 1 router-id 0.0.0.2 network 192.1.23.0 0.0.0.255 area 0 network 192.1.24.0 0.0.0.255 area 0 network 2.0.0.0 0.255.255.255 area 0 ! Interface E0/0 mpls ip ! Interface E0/1 mpls ip ------ R3 ------ mpls ldp router-id loopback0 ! router ospf 1 router-id 0.0.0.3 network 192.1.13.0 0.0.0.255 area 0 network 192.1.23.0 0.0.0.255 area 0 network 192.1.24.0 0.0.0.255 area 0 network 3.0.0.0 0.255.255.255 area 0 ! Interface E0/0 mpls ip ! Interface E0/1 mpls ip ! Interface E0/2 mpls ip ------ R4 ------ mpls ldp router-id loopback0 ! router ospf 1 router-id 0.0.0.4 network 192.1.45.0 0.0.0.255 area 0 network 192.1.24.0 0.0.0.255 area 0 network 192.1.34.0 0.0.0.255 area 0 network 4.0.0.0 0.255.255.255 area 0 ! Interface E0/0 mpls ip ! Interface E0/1 mpls ip ! Interface E0/2 mpls ip ------ R5 ------ mpls ldp router-id loopback0 ! router ospf 1 router-id 0.0.0.5 network 192.1.45.0 0.0.0.255 area 0 network 5.0.0.0 0.255.255.255 area 0 ! Interface E0/0 mpls ip ======================================================================================================= 2. Configure the Underlay for MPLS-TE (Enable Globally/Interface, OSPF & RSVP) ======================================================================================================= ------ R1 ------ mpls traffic-eng tunnels ! Interface E0/0 mpls traffic-eng tunnels ip rsvp bandwidth 512 ! router ospf 1 mpls traffic-eng router-id loopback0 mpls traffic-eng area 0 ------ R2 ------ mpls traffic-eng tunnels ! Interface E0/0 mpls traffic-eng tunnels ip rsvp bandwidth 512 ! Interface E0/1 mpls traffic-eng tunnels ip rsvp bandwidth 512 ! router ospf 1 mpls traffic-eng router-id loopback0 mpls traffic-eng area 0 ------ R3 ------ mpls traffic-eng tunnels ! Interface E0/0 mpls traffic-eng tunnels ip rsvp bandwidth 512 ! Interface E0/1 mpls traffic-eng tunnels ip rsvp bandwidth 512 ! Interface E0/2 mpls traffic-eng tunnels ip rsvp bandwidth 512 ! router ospf 1 mpls traffic-eng router-id loopback0 mpls traffic-eng area 0 ------ R4 ------ mpls traffic-eng tunnels ! Interface E0/0 mpls traffic-eng tunnels ip rsvp bandwidth 512 ! Interface E0/1 mpls traffic-eng tunnels ip rsvp bandwidth 512 ! Interface E0/2 mpls traffic-eng tunnels ip rsvp bandwidth 512 ! router ospf 1 mpls traffic-eng router-id loopback0 mpls traffic-eng area 0 ------ R5 ------ mpls traffic-eng tunnels ! Interface E0/0 mpls traffic-eng tunnels ip rsvp bandwidth 512 ! router ospf 1 mpls traffic-eng router-id loopback0 mpls traffic-eng area 0 ======================================================================================================= 3. Configure the Backup Tunnel from R3 to R4 via R2 ======================================================================================================= ------ R3 ------ ip explicit-path name TO-R4 enable next-address 2.2.2.2 next-address 4.4.4.4 ! interface Tunnel 4 ip unnumbered Loopback0 tunnel destination 4.4.4.4 tunnel mode mpls traffic-eng tunnel mpls traffic-eng bandwidth 400 tunnel mpls traffic-eng path-option 1 explicit name TO-R4 tunnel mpls traffic-eng priority 3 3 ! Interface E0/1 mpls traffic-eng backup-path Tunnel 4 ======================================================================================================= 4. Configure a MPLS-TE Tunnel from R1 to R5 dynamically ======================================================================================================= ------ R1 ------ interface Tunnel 5 ip unnumbered Loopback0 tunnel destination 5.5.5.5 tunnel mode mpls traffic-eng tunnel mpls traffic-eng bandwidth 400 tunnel mpls traffic-eng path-option 1 dynamic tunnel mpls traffic-eng priority 3 3 tunnel mpls traffic-eng fast-reroute Verification: --------------- sh mpls traffic-eng fast-reroute database (R3)