Part 2 Core Routing Protocols The core routing protocol is an important content in Part 1 Core Routing of the CCIE Service Provider Lab Exam Version 4.0 (Operator CCIE Experimental Exam v4.0) syllabus published by Cisco
Implementing EIGRP and RIP protocols in XR systems - implementing static routing
-This article comes from QYTang CCIE certification training instructor Jun Ge's "Cisco Operator CCIE Certification Implementation Guide"
Part 2 Core Routing Protocols
The core routing protocol is an important content in Part 1 Core Routing of the CCIE Service Provider Lab Exam Version 4.0 (Operator CCIE Experimental Exam v4.0) syllabus published by Cisco
Part of the focus of this book is on learning and implementing the core routing protocols on IOS XE and IOS XR devices. The IPv4 architecture of these routing protocols usually includes OSPF, IS-IS, EIGRP, and BGP protocols. The IPv6 protocol stack includes OSPFv3, IS-IS for IPv6, and EIGRP for IPv6. BGP supports IPv6 unicast.
In future implementations, unless otherwise specified, the IP addressing rules are as follows: the interface address of R3 connecting to R4 is 13.1.1.3/24 (xy.1.1.x, where xy is the device number), and the loopback interface address is 33.1.1.1/32 (xx.1.1.1/32). The IPv6 addressing rule is: the interface address of R3 connecting to R4 is 2034::3/64, and the loopback interface is 2033::3/128 (xx.1.1.1/128).
Chapter 2 Implementing EIGRP and RIP protocols in XR systems
2.1 Implement static routing
Static routing is widely used in existing networks and is also a commonly used method in carrier networks to temporarily adjust routing or implement default routing. It is usually used for small-scale temporary adjustments. It is also an important application on the XR system. Especially in the later stage, we need to learn the important thing that when implementing the MPLS VPN network between ASs on XR, static routing must be implemented. Its management distance is the same as traditional IOS, both are 1.
We implement static routing in 2-1 of the topology to meet the following requirements. The IPv4 addresses of the loopback interfaces of XR1 and R3 communicate statically, and the IPv6 addresses of the loopback interfaces of XR2 and R3 communicate statically.

2.1.1 IPv4 static routing implementation
If there are no special circumstances, when implementing static routing on a multi-point access Ethernet network, please append the outbound interface + next hop after the destination prefix, rather than just the outbound interface (except for inter-domain MPLS VPN). Otherwise, the router will think that the network going to the target address is a directly connected network, so it will request the ARP of the directly connected address. If the peer turns off proxy ARP, data cannot be communicated; in addition, broadcasting in ARP messages will occupy a lot of bandwidth and reduce network performance.
RP/0/0/CPU0:PE-XR1(config-if)# ipv4 address 13.1.1.1 255.255.255.0
RP/0/0/CPU0:PE-XR1(config-if)#exi
RP/0/0/CPU0:PE-XR1(config)#interface Loopback0
RP/0/0/CPU0:PE-XR1(config-if)# ipv4 address 11.1.1.1 255.255.255.255
RP/0/0/CPU0:PE-XR1(config-if)#exit
RP/0/0/CPU0:PE-XR1(config)#router static //Start the static routing process
RP/0/0/CPU0:PE-XR1(config-static)#address-family ipv4 unicast
RP/0/0/CPU0:PE-XR1(config-static-afi)#33.1.1.1/32 gigabitEthernet 0/0/0/1 13.1.1.1.3 //Implement static routing under the IPv4 address family
!
RR-R3(config)#interface Ethernet0/2
RR-R3(config-if)# ip address 13.1.1.3 255.255.255.0
RR-R3(config-if)#exi
RR-R3(config)#interface loopback 0
RR-R3(config-if)#ip add 33.1.1.1 255.255.255.255
RR-R3(config-if)#ipv6 address 2033::3/128
RR-R3(config)#ip route 11.1.1.1 255.255.255.255 ethernet 0/2 13.1.1.1
!
Verify
XR1:
sh route static //Verify the static route of the XR device
Sat Sep 17 14:07:43.868 UTC
S 2.2.2.2/32 is directly connected, 14:59:15, Null0
S 33.1.1.1/32 [1/0] via 13.1.1.3, 00:00:51, GigabitEthernet0/0/0/1
sh ip route static
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override
Gateway of last resort is 35.1.1.5 to network 0.0.0.0
11.0.0.0/32 is subnetted, 1 subnets
S 11.1.1.1 [1/0] via 13.1.1.1, Ethernet0/2
RR-R3#ping 11.1.1.1 source loopback 0 //Data packets can be transmitted normally
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.1.1.1, timeout is 2 seconds:
Packet sent with a source address of 33.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 2/4/9 ms
The experiment is completed.
2.1.2 IPv6 static routing implementation
There is not much difference between IPv6 static routing and IPv4 static routing, and their functions are the same. We implement static routing for IPv6 on XR2 and R3.
RP/0/0/CPU0:R2(config)#int gigabitEthernet 0/0/0/0
RP/0/0/CPU0:R2(config-if)#ipv6 address 2023::2/64
RP/0/0/CPU0:R2(config-if)#exi
RP/0/0/CPU0:R2(config)#router static
RP/0/0/CPU0:R2(config-static)#address-family ipv6 unicast
RP/0/0/CPU0:R2(config-static-afi)#2033::3/128 gigabitEthernet 0/0/0/0 2023::
!
RR-R3(config)#int e0/1
RR-R3(config-if)#ipv6 address 2023::3/64
RR-R3(config-if)#exi
RR-R3(config)#ipv6 route 2022::2/128 ethernet 0/1 2023::2
Verify IPv6 static routing and data packet delivery
RP/0/0/CPU0:R2#show route ipv6 static
Sat Sep 17 14:24:07.371 UTC
S 2033::3/128
[1/0] via 2023::3, 00:00:03, GigabitEthernet0/0/0/0
RR-R3#show ipv6 route static
IPv6 Routing Table - default - 12 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
H - NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
IS - ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, ls - LISP site
ld - LISP dyn-EID, a - Application
S 2022::2/128 [1/0]
via 2023::2, Ethernet0/1
RP/0/0/CPU0:R2#ping 2033::3 source 2022::2
Sat Sep 17 14:25:07.787 UTC
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2033::3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/22/69 ms
Data packets can be sent through IPv6 static routes. Experiment completed
2.2 Implement EIGRP protocol
The EIGRP protocol is almost never used as an IGP within operators. The reason is very simple. EIGRP is a proprietary protocol of Cisco (it may become public in the future), which means that it cannot be deployed on a large scale. In addition, it cannot support MPLS traffic engineering. One of the reasons. However, it is still very likely to be used when the operator's customer network accesses the operator, so we need to be familiar with the implementation of this protocol.
2.2.1 Basic knowledge of EIGRP
EIGRP (Enhanced Interior Gateway Routing Protocol) enhances the interior gateway routing protocol. Unlike traditional distance vector protocols, EIGRP has a fast convergence time and does not need to send regular routing updates; unlike link state protocols, EIGRP does not know what the entire network is like, and it can only rely on information published by neighbors. EIGRP uses the same routing algorithm DUAL (diffusion update algorithm) as IGRP. The DUAL mechanism is the core of EIGRP, through which a loop-free path is achieved. The internal EIGRP management distance is 90, the external EIGRP management distance is 170, and equal-cost and non-equal-cost load balancing are supported. In the IP packet, the protocol field of EIGRP is 88.
Advantages of EIGRP include:
100% loop-free: If the entire network is included in a home-made system, EIGRP uses DUAL to ensure a 100% loop-free routing table;
Fast convergence: EIGRP uses DUAL() to implement backup routing. When S is unavailable, it quickly switches to FS to achieve fast convergence;
Use multicast and unicast: Use multicast (224.0.0.10) or unicast for routing updates to save link bandwidth;
Metric values: EIGRP uses five values: bandwidth, delay, reliability, loading, and maximum transmission unit (MTU) to calculate metrics. By default, only bandwidth and delay work. The calculation formula is - EIGRP metric = [(10^7/minimum bandwidth on the path) + (sum of all delays)] × 256.
Feasible Distance: The minimum metric to reach a destination.
Advertisement Distance: The minimum metric advertised by a neighboring router to reach a certain destination.
Feasible Condition: The condition that the advertised distance (AD) is less than the feasible distance is AD
EIGRP Successor: A directly connected neighbor router that satisfies the FC as the router through which it has the minimum metric to reach the destination. The successor router is used as the next hop to forward the packet to the destination.
Feasible Successor: A neighbor router that satisfies FC and has the second lowest metric to the destination. When the main route S is unavailable, FS is used to replace the main route and is therefore saved in the topology table as a backup route.
Active state/active routing (active state): It is a state of searching for FS. When the router loses S and no FS is available, the route enters the active state and is an unavailable route. When a route is active, the router sends queries to all neighbors to find another route to the destination.
Passive state/passive routing (passive state): It is a state in which there is currently a correct route to the destination. When the router loses S and has an FS, or when it finds another S, the route enters the passive state and is an available route.
EIGRP can support IPv4 protocol stack and IPv6 protocol stack with almost no modifications.
2.2.2 Implementing EIGRP for IPv4
In the operator's network, IPv4 still occupies the dominant address, and this may be the case. Operators can provide MPLS layer 3 VPN and need to establish dynamic routing protocol neighbors with customers on the PE (operator edge) device. If the customer uses EIGRP, the operator also needs to use EIGRP at this time, so let us get familiar with the implementation of EIGRP on XR. We implement the EIGRP protocol in Figure 2-2. Please remove the previous IPv4 and IPv6 static routes before implementation.

XR1:
router eigrp 90
address-family ipv4 //Initialize EIGRP support for IPv4 unicast routing
no auto-summary
interface Loopback0 //This interface runs EIGRP and advertises the network where the interface is located to the EIGRP topology for updates and calculations.
passive-interface //Enable the interface as a passive interface, then the interface will no longer try to send Hello messages to establish neighbors.
!
interface GigabitEthernet0/0/0/0
!
interface GigabitEthernet0/0/0/1
!
XR2:
router eigrp 90
address-family ipv4
interface Loopback0
!
interface GigabitEthernet0/0/0/0
!
interface GigabitEthernet0/0/0/2
!
R3:
router eigrp 90
network 13.1.1.0 0.0.0.255
network 23.1.1.0 0.0.0.255
network 33.1.1.1 0.0.0.0
Verify EIGRP neighbors
RP/0/0/CPU0:R2#show eigrp ipv4 neighbors
Sat Sep 17 17:41:40.249 UTC
IPv4-EIGRP Neighbors for AS(90) VRF default
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
1 12.1.1.1 Gi0/0/0/2 13 00:01:50 17 200 0 6
0 23.1.1.3 Gi0/0/0/0 14 00:01:51 1276 5000 0 9
RP/0/0/CPU0:PE-XR1#show eigrp 90 neighbors
Sat Sep 17 17:40:38.833 UTC
IPv4-EIGRP Neighbors for AS(90) VRF default
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
1 12.1.1.2 Gi0/0/0/0 14 00:01:39 19 200 0 5
0 13.1.1.3 Gi0/0/0/1 14 00:02:08 1032 5000 0 10
Verify the interface running EIGRP
RP/0/0/CPU0:PE-XR1#show eigrp ipv4 interfaces
Sat Sep 17 17:41:19.860 UTC
IPv4-EIGRP Interfaces for AS(90)
Xmit Queue Mean Pacing Time Multicast Pending
Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer Routes
Gi0/0/0/0 1 0/0 19 0/10 72 0
Gi0/0/0/1 1 0/0 1032 0/10 5156 0
Lo0 0 0/0 0 640/640 0 0
Verify routing via EIGRP
RP/0/0/CPU0:PE-XR1#show route eigrp
Sat Sep 17 17:41:44.329 UTC
D 22.1.1.1/32 [90/10752] via 12.1.1.2, 00:02:44, GigabitEthernet0/0/0/0
D 23.1.1.0/24 [90/15360] via 12.1.1.2, 00:02:44, GigabitEthernet0/0/0/0
D 33.1.1.1/32 [90/2570240] via 13.1.1.3, 00:02:58, GigabitEthernet0/0/0/1
Verify data forwarding after decision making via EIGRP routing
RP/0/0/CPU0:PE-XR1#ping 33.1.1.1 source 11.1.1.1
Sat Sep 17 17:42:41.665 UTC
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 33.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/12/59 ms
RP/0/0/CPU0:PE-XR1#ping 22.1.1.1 source 11.1.1.1
Sat Sep 17 17:42:46.594 UTC
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 22.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/5/9 ms
2.2.3 Implement EIGRP support for IPv6

Figure 2-3 EIGRPv6 implementation topology diagram
IPv6 routes can also be advertised and learned through Eigrp. In this section, we implement Eigrpv6 to carry IPv6 routes in Figure 2-3. Readers are asked to configure the IPv6 address by themselves. Only the basic configuration of XR1 is given here.
hostname XR1
interface Loopback0
ipv6 address 2011::1/128
!
interface GigabitEthernet0/0/0/1
ipv6 address 2013::1/64
no shutdown
!
interface GigabitEthernet0/0/0/2
ipv6 address 2012::1/64
no shutdown
Implement EIGRPv6 protocol on the entire topology
R4-MS(config)#ipv6 unicast-routing //Enable IPv6 routing function. IPv6 routing function is not enabled by default on classic IOS, while IOS XR is enabled by default.
R4-MS(config)#ipv6 router eigrp 90 //Start EIGRPv6. The EIGRPv6 process is closed by default on classic IOS. Just start the process manually with the following command.
R4-MS(config-rtr)#no shutdown
R4-MS(config-rtr)#int lo0
R4-MS(config-if)#ipv6 eigrp ?
<1-65535> AS number
R4-MS(config-if)#ipv6 eigrp 90 ?
R4-MS(config-if)#ipv6 eigrp 90 //Enable EIGRPv6 on the interface, and the route will also be advertised to EIGRP.
R4-MS(config-if)#int e1/1
R4-MS(config-if)#ipv6 eigrp 90
R4-MS(config)#int e0/2
R4-MS(config-if)#ipv6 eigrp 90
!
R3-SITE1(config)#ipv6 unicast-routing
R3-SITE1(config)#ipv6 router eigrp 90
R3-SITE1(config-rtr)#no shutdown
R3-SITE1(config-rtr)#exi
R3-SITE1(config)#int
R3-SITE1(config)#interface lo0
R3-SITE1(config-if)#ipv6 address 2033::3/128
R3-SITE1(config-if)#ipv6 eigrp 90 ?
R3-SITE1(config-if)#ipv6 eigrp 90
R3-SITE1(config-if)#int e1/0
R3-SITE1(config-if)#ipv6 address 2034::3/64
R3-SITE1(config-if)#ipv6 eigrp 90
*Nov 23 14:26:35.785: %DUAL-5-NBRCHANGE: EIGRP-IPv6 90: Neighbor FE80::A8BB:CCFF:FE00:211 (Ethernet1/0) is up: new adjacency
R3-SITE1(config-if)#int e0/2
R3-SITE1(config-if)#no shu
R3-SITE1(config-if)#ipv6 address 2013::3/64
R3-SITE1(config-if)#ipv6 eigrp 90
XR1:
router eigrp 90 //IOS XR supports IPv6 routing function by default and can directly start the EIGRPv6 process
address-family ipv6 //Initialize IPv6 process
interface Loopback0 //Configure the interface, which means that the interface runs EIGRPv6
!
interface GigabitEthernet0/0/0/0
!
interface GigabitEthernet0/0/0/1
XR2:
router eigrp 90
address-family ipv6
interface Loopback0
!
interface GigabitEthernet0/0/0/1
!
interface GigabitEthernet0/0/0/2
Verify EIGRPv6 neighbors and routing status
RP/0/0/CPU0:XR1#show eigrp ipv6 neighbors //View EIGRPv6 neighbors. Readers can see that EIGRP can also be used like other IPv6 IGP protocols. Neighbor relationships can be discovered and established through link local addresses.
Wed Nov 23 14:31:24.806 UTC
IPv6-EIGRP Neighbors for AS(90) VRF default
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
1 Link Local Address: Gi0/0/0/1 10 00:05:39 1276 5000 0 9
fe80::a8bb:ccff:fe00:320
0 Link Local Address: Gi0/0/0/0 14 00:07:38 18 200 0 9
fe80::5200:ff:fe0a:3
RP/0/0/CPU0:XR1#show route ipv6 eigrp //View IPv6 routes obtained through EIGRP
Wed Nov 23 14:31:37.225 UTC
D 2022::2/128
[90/10752] via fe80::5200:ff:fe0a:3, 00:07:48, GigabitEthernet0/0/0/0
D 2024::/64
[90/15360] via fe80::5200:ff:fe0a:3, 00:07:48, GigabitEthernet0/0/0/0
D 2033::3/128
[90/2570240] via fe80::a8bb:ccff:fe00:320, 00:05:49, GigabitEthernet0/0/0/1
D 2034::/64
[90/1029120] via fe80::a8bb:ccff:fe00:320, 00:05:49, GigabitEthernet0/0/0/1
D 2044::4/128
[90/2575360] via fe80::5200:ff:fe0a:3, 00:07:48, GigabitEthernet0/0/0/0
Test the sending of IPv6 data packets and reach the destination normally
RP/0/0/CPU0:XR1#ping 2044::4 source 2011::1
Wed Nov 23 14:32:57.850 UTC
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2044::4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 19/47/89 ms
RP/0/0/CPU0:XR1#ping 2033::3 source 2011::1
Wed Nov 23 14:33:06.219 UTC
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2033::3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
RP/0/0/CPU0:XR1#ping 2022::2 source 2011::1
Wed Nov 23 14:33:11.529 UTC
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2022::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/9/9 ms
Basic EIGRP implementation completed
Next, we implement the cheap list of EIGRPv6, that is, increase the metric value of a certain route. We selected the route 2022::2/128. Please note that the previous metric value of this route is 10752.
route-policy Offset //Start RPL, a very practical tool on XR
if destination in (2022::2/128) then
add eigrp-metric 1000000 1 255 1 1500 //If it matches the path 2022::2/128, increase (note the increase) the metric value parameter of eigrp, the bandwidth increases by 1000000, and subsequent participation also increases
endif
pass //Don't forget to allow other routes to be charged.
end-policy
!
router eigrp 90
address-family ipv6
route-policy Offset in //Calling RPL in the inbound direction.
After the implementation is completed, verify the new routing table
RP/0/0/CPU0:XR1# show route ipv6 eigrp
Wed Nov 23 14:45:55.507 UTC
D 2022::2/128
[90/12800] via fe80::5200:ff:fe0a:3, 00:05:54, GigabitEthernet0/0/0/0 //This route
D 2024::/64
[90/15360] via fe80::5200:ff:fe0a:3, 00:05:01, GigabitEthernet0/0/0/0
D 2033::3/128
[90/2570240] via fe80::a8bb:ccff:fe00:320, 00:05:01, GigabitEthernet0/0/0/1
D 2034::/64
[90/1029120] via fe80::a8bb:ccff:fe00:320, 00:05:01, GigabitEthernet0/0/0/1
D 2044::4/128
[90/2575360] via fe80::5200:ff:fe0a:3, 00:05:01, GigabitEthernet0/0/0/0
EIGRPv6 also has other features, which I won’t go into details here.
-This article comes from QYTang CCIE certification training instructor Jun Ge's "Cisco Operator CCIE Certification Implementation Guide"
"Cisco Carrier CCIE Certification Implementation Guide" is available at JD and TB, and you can purchase it yourself.
For technical questions, you can join the group: 346968792, and Mr. Ande will answer questions online.
QYTang customer service hotline: 400-618-8070
QYTang official website: www.qytang.com
QYTang Network Lab We think more for you