++++++++++++++++++++++++++++++++++ MPLS QoS ++++++++++++++++++++++++++++++++++ ************************************************************* Lab 1 - Configuring an Intra-AS MPLS VPN ************************************************************* =============================================== 1. Configure the SP Core IGP =============================================== ----- R1 ----- router eigrp 1000 network 1.0.0.0 network 192.1.12.0 ----- R2 ----- router eigrp 1000 network 2.0.0.0 network 192.1.12.0 network 192.1.23.0 ----- R3 ----- router eigrp 1000 network 3.0.0.0 network 192.1.23.0 network 192.1.34.0 ----- R4 ----- router eigrp 1000 network 4.0.0.0 network 192.1.34.0 =============================================== 2. Configure LDP for MPLS Unicast Routing =============================================== ----- R1 ----- mpls ldp router-id loopback0 ! Interface E0/0 mpls ip ----- R2 ----- mpls ldp router-id loopback0 ! Interface E0/0 mpls ip ! Interface E0/1 mpls ip ----- R3 ----- mpls ldp router-id loopback0 ! Interface E0/0 mpls ip ! Interface E0/1 mpls ip ----- R4 ----- mpls ldp router-id loopback0 ! Interface E0/0 mpls ip =============================================== 3. Configure MP-iBGP between the PE's =============================================== ----- R1 ----- router bgp 1000 neighbor 4.4.4.4 remote-as 1000 neighbor 4.4.4.4 update-source loopback0 ! address-family vpnv4 neighbor 4.4.4.4 activate ----- R4 ----- router bgp 1000 neighbor 1.1.1.1 remote-as 1000 neighbor 1.1.1.1 update-source loopback0 ! address-family vpnv4 neighbor 1.1.1.1 activate =============================================== 4. Configure VRFs on the PE Routers =============================================== ----- R1 ----- vrf definition KBITS rd 1000:1 address-family ipv4 route-target both 1000:1 ! Interface E0/1 vrf forwarding KBITS ip address 192.1.15.1 255.255.255.0 no shut ! router bgp 1000 address-family ipv4 vrf KBITS neighbor 192.1.15.5 remote-as 65005 ----- R4 ----- vrf definition KBITS rd 1000:1 address-family ipv4 route-target both 1000:1 ! Interface E0/2 vrf forwarding KBITS ip address 192.1.48.4 255.255.255.0 no shut ! router bgp 1000 address-family ipv4 vrf KBITS neighbor 192.1.48.8 remote-as 65008 =============================================== 5. Configure the CE Routers =============================================== ----- R5 ----- interface loopback 0 ip address 10.5.5.5 255.255.255.0 ! interface E0/0 ip address 192.1.15.5 255.255.255.0 no shut ! router bgp 65005 neighbor 192.1.15.1 remote-as 1000 network 10.5.5.0 mask 255.255.255.0 ----- R8 ----- interface loopback 0 ip address 10.8.8.8 255.255.255.0 ! interface E0/0 ip address 192.1.48.8 255.255.255.0 no shut ! router bgp 65008 neighbor 192.1.48.4 remote-as 1000 network 10.8.8.0 mask 255.255.255.0 ************************************************************* Lab 2 - Configuring MPLS QoS using Uniform Mode ************************************************************* Requirement: IP Precedence 5 - 10% LLQ IP Precedence 3 - 5% Bandwidth Reservation SP => R2 - R3 - R4 using 7 & 5 respectively to give the same QoS mechanism ===================================================== 1. Configure the CE Router (R5) to mark the traffic ===================================================== ----- R5 ----- access-list 101 permit tcp any any eq 23 access-list 102 permit icmp any any ! class-map CM-TELNET match access-group 101 ! class-map CM-PING match access-group 102 ! policy-map PM-QOS class CM-TELNET priority percent 10 set ip precedence 5 class CM-PING bandwidth percent 5 set ip precedence 3 ! Interface E0/0 service-policy output PM-QOS ======================================================================================== 2. Configure the PE Router (R1 - E0/1) to set the EXP Bits based on the IP Precedence ======================================================================================== ----- R1 ----- ! 1. Configure a Class Map to match the Precedence value class-map CM-PREC-5 match ip precedence 5 class-map CM-PREC-3 match ip precedence 3 ! 2. Configure a Class Map to match the Precedence value policy-map PE-IN class CM-PREC-5 set mpls experimental imposition 5 class CM-PREC-3 set mpls experimental imposition 3 ! 3. Apply the Policy Map to the incoming traffic Interface E0/1 service-policy input PE-IN ======================================================================================== 3. Configure the appropriate QoS between R1 & R2 based on the EXP Bits ======================================================================================== ----- R1 ----- ! 1. Configure a Class Map to match the EXP bits class-map CM-PREC-5-MPLS match mpls experimental topmost 5 class-map CM-PREC-3-MPLS match mpls experimental topmost 3 ! 2. Configure a Class Map to match the Precedence value policy-map PE-OUT class CM-PREC-5-MPLS priority percent 10 class CM-PREC-3-MPLS bandwidth percent 10 ! 3. Apply the Policy Map to the incoming traffic Interface E0/0 service-policy output PE-OUT =========================================================================================== 4. Configure the PE Router (R2 - E0/0) to set the EXP Bits based on SP Marking (5=6 & 3=4) =========================================================================================== ----- R2 ----- ! 1. Configure a Class Map to match the EXP value of either 5 or 3 class-map CM-PREC-5-EXP match mpls experimental topmost 5 class-map CM-PREC-3-EXP match mpls experimental topmost 3 ! 2. Configure a Class Map to match the Precedence value policy-map PE-IN class CM-PREC-5-EXP set mpls experimental topmost 6 class CM-PREC-3-EXP set mpls experimental topmost 4 ! 3. Apply the Policy Map to the incoming traffic Interface E0/0 service-policy input PE-IN ======================================================================================== 5. Configure the appropriate QoS between R2 & R3 based on the EXP Bits (6 LLQ; 4 BW) ======================================================================================== ----- R2 ----- ! 1. Configure a Class Map to match the EXP bits class-map CM-PREC-6-MPLS match mpls experimental topmost 6 class-map CM-PREC-4-MPLS match mpls experimental topmost 4 ! 2. Configure a Class Map to match the Precedence value policy-map PE-OUT class CM-PREC-6-MPLS priority percent 10 class CM-PREC-4-MPLS bandwidth percent 10 ! 3. Apply the Policy Map to the incoming traffic Interface E0/1 service-policy output PE-OUT =========================================================================================== 6. Configure the PE Router (R3 - E0/0) to set the QoS Group based on the Transport Label =========================================================================================== ----- R3 ----- ! 1. Configure a Class Map to match the EXP value of either 6 or 4 class-map CM-PREC-6-EXP match mpls experimental topmost 6 class-map CM-PREC-4-EXP match mpls experimental topmost 4 ! 2. Configure a Policy to set the QoS Group based on the appropriate EXP value (6/4) policy-map PE-IN class CM-PREC-6-EXP set qos-group mpls experimental topmost class CM-PREC-4-EXP set qos-group mpls experimental topmost ! 3. Apply the Policy Map to the incoming traffic Interface E0/0 service-policy input PE-IN ======================================================================================== 7. Configure the appropriate QoS between R3 & R4 based on the QoS Group values ======================================================================================== ----- R3 ----- ! 1. Configure a Class Map to match the QoS-Group class-map CM-QOS-GROUP-6 match qos-group 6 class-map CM-QOS-GROUP-4 match qos-group 4 ! 2. Configure a Class Map to match the Precedence value policy-map PE-OUT class CM-QOS-GROUP-6 priority percent 10 set mpls experimental topmost qos-group class CM-QOS-GROUP-4 bandwidth percent 10 set mpls experimental topmost qos-group ! 3. Apply the Policy Map to the incoming traffic Interface E0/1 service-policy output PE-OUT =========================================================================================== 8. Configure the Egress P Router (R4 - E0/0) to set the QoS Group based on the VPN Label =========================================================================================== ----- R4 ----- ! 1. Configure a Class Map to match the EXP value of either 6 or 4 class-map CM-PREC-6-EXP match mpls experimental topmost 6 class-map CM-PREC-4-EXP match mpls experimental topmost 4 ! 2. Configure a Policy to set the QoS Group based on the appropriate EXP value (6/4) policy-map PE-IN class CM-PREC-6-EXP set qos-group mpls experimental topmost class CM-PREC-4-EXP set qos-group mpls experimental topmost ! 3. Apply the Policy Map to the incoming traffic Interface E0/0 service-policy input PE-IN ======================================================================================== 9. Configure the appropriate QoS between R4 to the CE router based on the QoS Group ======================================================================================== ----- R4 ----- ! 1. Configure a Class Map to match the QoS-Group class-map CM-QOS-GROUP-6 match qos-group 6 class-map CM-QOS-GROUP-4 match qos-group 4 ! 2. Configure a Class Map to match the Precedence value policy-map PE-OUT class CM-QOS-GROUP-6 priority percent 10 set precedence 6 class CM-QOS-GROUP-4 bandwidth percent 10 set precedence 4 ! 3. Apply the Policy Map to the incoming traffic Interface E0/2 service-policy output PE-OUT ======================================================================================== 10. Verifying the marking on the CE router ======================================================================================== ----- R8 ----- class-map CM-PREC-3 match ip precedence 3 class-map CM-PREC-4 match ip precedence 4 class-map CM-PREC-5 match ip precedence 5 class-map CM-PREC-6 match ip precedence 6 ! policy-map PM-QOS class CM-PREC-3 set ip precedence 3 class CM-PREC-4 set ip precedence 4 class CM-PREC-5 set ip precedence 5 class CM-PREC-6 set ip precedence 6 ! Interface E0/0 service-policy input PM-QOS ************************************************************* Lab 3 - Configure MPLS QOS using Long Pipe ************************************************************* Requirement: IP Precedence 5 - 10% LLQ IP Precedence 3 - 5% Bandwidth Reservation SP => R2 - R3 - R4 using 7 & 5 respectively to give the same QoS mechanism SP Marking not copied into the Customer Markings. They are used on the last leg ============================================================================================ 1. Change the Outbound Policy not to copy the QoS into the Customer Precedence Value on R4 ============================================================================================ ----- R4 ----- Interface E0/2 no service-policy output PE-OUT ! no policy-map PE-OUT ! policy-map PE-OUT class CM-QOS-GROUP-6 priority percent 10 class CM-QOS-GROUP-4 bandwidth percent 10 Interface E0/2 service-policy output PE-OUT ************************************************************* Lab 4 - Configure MPLS QOS using Short Pipe ************************************************************* Requirement: IP Precedence 5 - 10% LLQ IP Precedence 3 - 5% Bandwidth Reservation SP => R2 - R3 - R4 using 7 & 5 respectively to give the same QoS mechanism SP Marking not copied into the Customer Markings. The CE Marking on used on the last leg ============================================================================================ 1. Change the Outbound Policy not to copy the QoS into the Customer Precedence Value on R4 ============================================================================================ ----- R4 ----- Interface E0/2 no service-policy output PE-OUT ! no policy-map PE-OUT ! class-map CM-PREC-5 match ip precedence 5 class-map CM-PREC-3 match ip precedence 3 ! policy-map PE-OUT class CM-PREC-5 priority percent 10 class CM-PREC-3 bandwidth percent 10 Interface E0/2 service-policy output PE-OUT ++++++++++++++++++++++++++++++++++ MPLS L2VPNs ++++++++++++++++++++++++++++++++++ ******************************************************************************* Lab 1 - Configuring a MPLS L2VPN to connect 2 Customer Sites using Ethernet ******************************************************************************* =============================================== 1. Configure the Service Provider for L2VPN =============================================== ----- R1 ----- Interface E0/1 xconnect 3.3.3.3 45 encapsulation mpls no shut ----- R3 ----- Interface E0/1 xconnect 1.1.1.1 45 encapsulation mpls no shut =============================================== 2. Configure the Customer Edge router =============================================== ----- R4 ----- Interface E0/0 ip address 10.45.45.4 255.255.255.0 no shut ! Interface loopback0 ip address 10.4.4.4 255.255.255.0 ! router eigrp 123 network 10.0.0.0 ----- R5 ----- Interface E0/0 ip address 10.45.45.5 255.255.255.0 no shut ! Interface loopback0 ip address 10.5.5.5 255.255.255.0 ! router eigrp 123 network 10.0.0.0 ************************************************************************************************** Lab 2 - Configuring a MPLS L2VPN to connect 2 Customer Sites using Ethernet Sub-interface (VLANs) ************************************************************************************************** =============================================== 1. Configure the Service Provider for L2VPN =============================================== ----- R1 ----- default Interface E0/1 ! Interface E0/1 no shut Interface E0/1.4 encapsulation dot1q 4 xconnect 3.3.3.3 45 encapsulation mpls no shut ----- R3 ----- default Interface E0/1 ! Interface E0/1 no shut Interface E0/1.4 encapsulation dot1q 5 xconnect 1.1.1.1 45 encapsulation mpls no shut =============================================== 2. Configure the Customer Edge router =============================================== ----- R4 ----- Interface E0/0 no shut Interface E0/0.1 encapsulation dot1q 4 ip address 10.45.45.4 255.255.255.0 no shut ! Interface loopback0 ip address 10.4.4.4 255.255.255.0 ! router eigrp 123 network 10.0.0.0 ----- R5 ----- Interface E0/0 no shut Interface E0/0.1 encapsulation dot1q 5 ip address 10.45.45.5 255.255.255.0 no shut ! Interface loopback0 ip address 10.5.5.5 255.255.255.0 ! router eigrp 123 network 10.0.0.0 ************************************************************************************************** Lab 2 - Configuring a MPLS L2VPN to connect 2 Customer Sites using Ethernet Sub-interface (VLANs) ************************************************************************************************** =============================================== 1. Configure the Service Provider for L2VPN =============================================== ----- R1 ----- default Interface E0/1 ! Interface E0/1 no shut Interface E0/1.4 encapsulation dot1q 4 xconnect 3.3.3.3 45 encapsulation mpls no shut ----- R3 ----- default Interface E0/1 ! Interface E0/1 no shut Interface E0/1.4 encapsulation dot1q 5 xconnect 1.1.1.1 45 encapsulation mpls no shut =============================================== 2. Configure the Customer Edge router =============================================== ----- R4 ----- Interface E0/0 no shut Interface E0/0.1 encapsulation dot1q 4 ip address 10.45.45.4 255.255.255.0 no shut ! Interface loopback0 ip address 10.4.4.4 255.255.255.0 ! router eigrp 123 network 10.0.0.0 ----- R5 ----- Interface E0/0 no shut Interface E0/0.1 encapsulation dot1q 5 ip address 10.45.45.5 255.255.255.0 no shut ! Interface loopback0 ip address 10.5.5.5 255.255.255.0 ! router eigrp 123 network 10.0.0.0 ************************************************************************************************** Lab 3 - Configuring a MPLS L2VPN to connect 2 Customer Sites using Serial (PPP) connections ************************************************************************************************** =============================================== 1. Configure the Service Provider for L2VPN =============================================== ----- R1 ----- Interface S1/0 encap ppp xconnect 3.3.3.3 67 encapsulation mpls no shut ----- R3 ----- Interface S1/0 encap ppp xconnect 1.1.1.1 67 encapsulation mpls no shut =============================================== 2. Configure the Customer Edge router =============================================== ----- R6 ----- Interface S1/0 encap ppp ip address 10.67.67.6 255.255.255.0 no shut ! Interface loopback0 ip address 10.6.6.6 255.255.255.0 ! router eigrp 123 network 10.0.0.0 ----- R7 ----- Interface S1/0 encap ppp ip address 10.67.67.7 255.255.255.0 no shut ! Interface loopback0 ip address 10.7.7.7 255.255.255.0 ! router eigrp 123 network 10.0.0.0 ************************************************************************************************** Lab 4 - Configuring a MPLS L2VPN to connect 2 Customer Sites using Ethernet/PPP Connection ************************************************************************************************** =============================================== 1. Configure the Service Provider for L2VPN =============================================== ----- R1 ----- default interface E0/1 default interface E0/1.4 default interface S1/0 ! pseudowire-class ABC encapsulation mpls interworking ip ! interface E0/1 xconnect 3.3.3.3 45 pw-class ABC no shut ----- R3 ----- default interface E0/1 default interface E0/1.4 default interface S1/0 ! pseudowire-class ABC encapsulation mpls interworking ip ! interface S1/0 encap ppp xconnect 1.1.1.1 45 pw-class ABC no shut =============================================== 2. Configure the Customer Edge router =============================================== ----- R4 ----- Interface E0/0 ip address 10.47.47.4 255.255.255.0 no shut ! Interface loopback0 ip address 10.4.4.4 255.255.255.0 ! router eigrp 123 network 10.0.0.0 ----- R7 ----- Interface S1/0 encap ppp ip address 10.47.47.7 255.255.255.0 no shut ! Interface loopback0 ip address 10.7.7.7 255.255.255.0 ! router eigrp 123 network 10.0.0.0 ************************************************************************************************** Lab 5 - Configuring VPLS Connection ************************************************************************************************** =============================================== 1. Configure the Service Provider Network =============================================== ----- CSR1 ----- en conf t ! hostname CSR1 ! Interface loopback0 ip address 10.1.1.1 255.255.255.255 ip ospf 1 area 0 ! mpls ldp router-id loopback0 ! router ospf 1 router-id 0.0.0.1 ! Interface Gig1 ip address 192.1.12.1 255.255.255.0 ip ospf 1 area 0 mpls ip no shut ! Interface Gig2 ip address 192.1.13.1 255.255.255.0 ip ospf 1 area 0 mpls ip no shut ----- CSR2 ----- en conf t ! hostname CSR2 ! Interface loopback0 ip address 10.1.1.2 255.255.255.255 ip ospf 1 area 0 ! mpls ldp router-id loopback0 ! router ospf 1 router-id 0.0.0.2 ! Interface Gig1 ip address 192.1.12.2 255.255.255.0 ip ospf 1 area 0 mpls ip no shut ! Interface Gig2 ip address 192.1.23.2 255.255.255.0 ip ospf 1 area 0 mpls ip no shut ----- CSR3 ----- en conf t ! hostname CSR3 ! Interface loopback0 ip address 10.1.1.3 255.255.255.255 ip ospf 1 area 0 ! mpls ldp router-id loopback0 ! router ospf 1 router-id 0.0.0.3 ! Interface Gig1 ip address 192.1.23.3 255.255.255.0 ip ospf 1 area 0 mpls ip no shut ! Interface Gig2 ip address 192.1.13.3 255.255.255.0 ip ospf 1 area 0 mpls ip no shut =============================================== 2. Configure the CE Router =============================================== ----- R4 ----- en conf t ! hostname R4 ! Interface E0/0 no shut ! Interface E0/0.1 encapsulation dot1q 10 ip address 10.10.10.4 255.255.255.0 no shut ! Interface Loopback0 ip address 10.4.4.4 255.255.255.0 ! router eigrp 456 network 10.0.0.0 ----- R5 ----- en conf t ! hostname R5 ! Interface E0/0 no shut ! Interface E0/0.1 encapsulation dot1q 10 ip address 10.10.10.5 255.255.255.0 no shut ! Interface Loopback0 ip address 10.5.5.5 255.255.255.0 ! router eigrp 456 network 10.0.0.0 ----- R6 ----- en conf t ! hostname R5 ! Interface E0/0 no shut ! Interface E0/0.1 encapsulation dot1q 10 ip address 10.10.10.6 255.255.255.0 no shut ! Interface Loopback0 ip address 10.6.6.6 255.255.255.0 ! router eigrp 456 network 10.0.0.0 =============================================== 3. Configure the SP with the VPLS Configuration =============================================== ----- CSR1 ----- Interface Gig3 no shut service instance 10 ethernet encapsulation dot1q 10 bridge-domain 100 ! L2 VFI ABC manual vpn id 456 bridge-domain 100 neighbor 10.1.1.2 encapsulation mpls neighbor 10.1.1.3 encapsulation mpls ----- CSR2 ----- Interface Gig3 no shut service instance 10 ethernet encapsulation dot1q 10 bridge-domain 100 ! L2 VFI ABC manual vpn id 456 bridge-domain 100 neighbor 10.1.1.1 encapsulation mpls neighbor 10.1.1.3 encapsulation mpls ----- CSR3 ----- Interface Gig3 no shut service instance 10 ethernet encapsulation dot1q 10 bridge-domain 100 ! L2 VFI ABC manual vpn id 456 bridge-domain 100 neighbor 10.1.1.1 encapsulation mpls neighbor 10.1.1.2 encapsulation mpls