Академический Документы
Профессиональный Документы
Культура Документы
CCNP SP
SPROUTE
Mohammad Khalil
CCIE #35484 (R&S , SP)
WWW.NMSBOOST.COM
Abstract
Candidates can prepare for this exam by taking the Deploying Cisco
Service Provider Network Routing (SPROUTE) course and can
practice technologies listed in the course topics by walking through
the labs presented here
VirtualBox :
http://download.virtualbox.org/virtualbox/4.3.12/VirtualBox-
4.3.12-93733-Win.exe
GNS3 :
http://sourceforge.net/projects/gns-3/files/GNS3/0.8.6/GNS3-
0.8.6-all-in-one.exe/download
1
Table of Contents
OSPF I .................................................................................................................... 3
OSPF II.................................................................................................................. 40
ISIS ....................................................................................................................... 77
BGP .................................................................................................................... 100
Redistribution .................................................................................................... 130
Full Scale Lab ..................................................................................................... 144
2
OSPF I
Network Diagram
R1 192.168.102.0/24 XR1
19
2.
16
8.
21
.0
/
24
XR2 192.168.202.0/24
192.168.104.0/24
lo1
R2
Area 2
24
Area 1
0/
4.
20
8.
16
2.
19
R4
Area 0
Initial Configurations
R1
interface Loopback0
ip address 1.1.1.1 255.255.255.0
ipv6 address 2001::1/128
interface FastEthernet1/0
ip address 192.168.102.1 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:102::1/64
no shutdown
R2
interface Loopback0
3
ip address 2.2.2.2 255.255.255.0
ipv6 address 2001::2/128
interface FastEthernet1/0
ip address 192.168.202.2 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:202::2/64
no shutdown
R4
interface Loopback0
ip address 4.4.4.4 255.255.255.0
ipv6 address 2001::4/128
interface FastEthernet2/0
ip address 192.168.104.4 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:104::4/64
no shutdown
interface FastEthernet2/1
ip address 192.168.204.4 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:204::4/64
no shutdown
XR1
hostname XR1
cdp
interface Loopback0
ipv4 address 10.10.10.10 255.255.255.0
ipv6 address 2001::10/128
interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.102.10 255.255.255.0
ipv6 address 2001:192:102::10/64
duplex full
interface GigabitEthernet0/0/0/1
cdp
ipv4 address 192.168.104.10 255.255.255.0
ipv6 address 2001:192:104::10/64
4
interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.21.10 255.255.255.0
ipv6 address 2001:192:21::10/64
XR2
hostname XR2
cdp
interface Loopback0
ipv4 address 20.20.20.20 255.255.255.0
ipv6 address 2001::20/128
interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.202.20 255.255.255.0
ipv6 address 2001:192:202::20/64
interface GigabitEthernet0/0/0/1
cdp
ipv4 address 192.168.204.20 255.255.255.0
ipv6 address 2001:192:204::20/64
interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.21.20 255.255.255.0
ipv6 address 2001:192:21::20/64
5
Tasks
Task 1
Configure OSPFv2 accordning to the diagram and make sure you have full
connectivity
R1
router ospf 1
router-id 1.1.1.1
network 1.1.1.1 0.0.0.0 area 0
network 192.168.102.1 0.0.0.0 area 0
interface Loopback0
ip ospf network point-to-point
R2
router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 1
network 192.168.202.2 0.0.0.0 area 1
interface Loopback0
ip ospf network point-to-point
R4
router ospf 1
router-id 4.4.4.4
network 4.4.4.4 0.0.0.0 area 0
network 192.168.104.4 0.0.0.0 area 0
network 192.168.204.4 0.0.0.0 area 0
interface Loopback0
ip ospf network point-to-point
XR1
router ospf 1
router-id 10.10.10.10
area 0
interface Loopback0
network point-to-point
interface GigabitEthernet0/0/0/0
interface GigabitEthernet0/0/0/1
6
interface GigabitEthernet0/0/0/2
XR2
router ospf 1
router-id 20.20.20.20
area 0
interface Loopback0
network point-to-point
interface GigabitEthernet0/0/0/1
interface GigabitEthernet0/0/0/2
area 1
interface GigabitEthernet0/0/0/0
Verifications
7
R1#sh ip ospf database
8
O IA 4.4.4.0 [110/3] via 192.168.202.20, 00:00:17, FastEthernet1/0
10.0.0.0/32 is subnetted, 1 subnets
O IA 10.10.10.10 [110/3] via 192.168.202.20, 00:00:17, FastEthernet1/0
20.0.0.0/32 is subnetted, 1 subnets
O IA 20.20.20.20 [110/2] via 192.168.202.20, 00:00:17, FastEthernet1/0
O IA 192.168.21.0/24 [110/2] via 192.168.202.20, 00:00:17, FastEthernet1/0
O IA 192.168.102.0/24 [110/3] via 192.168.202.20, 00:00:17, FastEthernet1/0
O IA 192.168.104.0/24 [110/3] via 192.168.202.20, 00:00:17, FastEthernet1/0
O IA 192.168.204.0/24 [110/2] via 192.168.202.20, 00:00:17, FastEthernet1/0
9
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
+ - replicated route, % - next hop override
10
RP/0/0/CPU0:XR1#sh ospf neighbor
Tue May 27 13:25:25.687 UTC
11
Summary Net Link States (Area 0)
12
Link ID ADV Router Age Seq# Checksum Link count
2.2.2.2 2.2.2.2 347 0x80000027 0x003a3d 2
20.20.20.20 20.20.20.20 785 0x80000025 0x0006e8 1
Now , let us write a small TCL script to check connectivity to all active interfaces on all
routers in the OSPF domain
R1#tclsh
R1(tcl)#foreach x {
+>(tcl)#192.168.102.1
+>(tcl)#1.1.1.1
+>(tcl)#192.168.202.2
+>(tcl)#2.2.2.2
+>(tcl)#192.168.104.4
+>(tcl)#192.168.204.4
+>(tcl)#4.4.4.4
+>(tcl)#10.10.10.10
+>(tcl)#192.168.102.10
+>(tcl)#192.168.104.10
+>(tcl)#192.168.21.10
+>(tcl)#20.20.20.20
+>(tcl)#192.168.202.20
+>(tcl)#192.168.204.20
+>(tcl)#192.168.21.20
+>(tcl)#} { ping $x source lo0 }
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.102.1, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
13
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/6/16 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/6/16 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.202.2, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/41/96 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/28/40 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.104.4, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/25/36 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.204.4, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/19/28 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/19/40 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.10, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/16/28 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.102.10, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/16/20 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.104.10, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/13/20 ms
Type escape sequence to abort.
14
Sending 5, 100-byte ICMP Echos to 192.168.21.10, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/16/20 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.20.20.20, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/16/20 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.202.20, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/14/20 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.204.20, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/16/24 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.21.20, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/13/20 ms
RP/0/0/CPU0:XR1#run tclsh
Tue May 27 13:33:53.222 UTC
% foreach x {
192.168.102.1
1.1.1.1
192.168.202.2
2.2.2.2
192.168.104.4
192.168.204.4
4.4.4.4
10.10.10.10
192.168.102.10
192.168.104.10
192.168.21.10
20.20.20.20
192.168.202.20
192.168.204.20
192.168.21.20
} { ping $x }
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.102.1, timeout is 2 seconds:
!!!!!
15
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/11/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/11/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.202.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/11/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/11/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.104.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/13/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.204.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/11/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/17/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.102.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.104.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.21.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.20.20.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.202.20, timeout is 2 seconds:
16
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.204.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/17/49 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.21.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Task 2
Configure OSPFv3 accordning to the diagram and make sure you have full
connectivity
R1
router ospfv3 1
router-id 1.1.1.1
int lo0
ospfv3 1 ipv6 area 0
int f1/0
ospfv3 1 ipv6 area 0
R2
router ospfv3 1
router-id 2.2.2.2
int lo0
ospfv3 1 ipv6 area 1
int f1/0
ospfv3 1 ipv6 area 1
R4
router ospfv3 1
router-id 4.4.4.4
int lo0
ospfv3 1 ipv6 area 0
int f2/1
ospfv3 1 ipv6 area 0
int f2/0
ospfv3 1 ipv6 area 0
XR1
router ospfv3 1
router-id 10.10.10.10
17
area 0
interface Loopback0
interface GigabitEthernet0/0/0/0
interface GigabitEthernet0/0/0/1
interface GigabitEthernet0/0/0/2
XR2
router ospfv3 1
router-id 20.20.20.20
area 0
interface Loopback0
interface GigabitEthernet0/0/0/1
interface GigabitEthernet0/0/0/2
area 1
interface GigabitEthernet0/0/0/0
Verifications
18
O 2001:192:21::/64 [110/2]
via FE80::A00:27FF:FE35:643D, FastEthernet1/0
O 2001:192:104::/64 [110/2]
via FE80::A00:27FF:FE35:643D, FastEthernet1/0
OI 2001:192:202::/64 [110/3]
via FE80::A00:27FF:FE35:643D, FastEthernet1/0
O 2001:192:204::/64 [110/3]
via FE80::A00:27FF:FE35:643D, FastEthernet1/0
19
4.4.4.4 1206 0x80000002 5120 0x2002 5
4.4.4.4 953 0x80000002 6144 0x2002 6
10.10.10.10 1670 0x80000001 0 0x2001 0
10.10.10.10 1032 0x80000002 6144 0x2002 6
20.20.20.20 1393 0x80000001 0 0x2001 0
20
Net Link States (Area 1)
21
via FE80::A00:27FF:FEE6:12E, FastEthernet2/0
OI 2001::2/128 [110/2]
via FE80::A00:27FF:FE6F:8FE6, FastEthernet2/1
O 2001::10/128 [110/1]
via FE80::A00:27FF:FEE6:12E, FastEthernet2/0
O 2001::20/128 [110/1]
via FE80::A00:27FF:FE6F:8FE6, FastEthernet2/1
O 2001:192:21::/64 [110/2]
via FE80::A00:27FF:FEE6:12E, FastEthernet2/0
via FE80::A00:27FF:FE6F:8FE6, FastEthernet2/1
O 2001:192:102::/64 [110/2]
via FE80::A00:27FF:FEE6:12E, FastEthernet2/0
OI 2001:192:202::/64 [110/2]
via FE80::A00:27FF:FE6F:8FE6, FastEthernet2/1
22
20.20.20.20 1073 0x80000002 4 Fa2/1
23
* 2001:192:102::/64, Intra, cost 1/0, area 0
GigabitEthernet0/0/0/0, connected
* 2001:192:104::/64, Intra, cost 1/0, area 0
GigabitEthernet0/0/0/1, connected
* 2001:192:202::/64, Inter, cost 2/0, area 0
GigabitEthernet0/0/0/2, fe80::a00:27ff:fe59:7f87
20.20.20.20/0
* 2001:192:204::/64, Intra, cost 2/0, area 0
GigabitEthernet0/0/0/1, fe80::c802:69ff:fec0:38
GigabitEthernet0/0/0/2, fe80::a00:27ff:fe59:7f87
24
Intra Area Prefix Link States (Area 0)
25
* 2001:192:104::/64, Intra, cost 2/0, area 0
GigabitEthernet0/0/0/1, fe80::c802:69ff:fec0:39
GigabitEthernet0/0/0/2, fe80::a00:27ff:fe1f:7011
* 2001:192:202::/64, Intra, cost 1/0, area 1
GigabitEthernet0/0/0/0, connected
* 2001:192:204::/64, Intra, cost 1/0, area 0
GigabitEthernet0/0/0/1, connected
26
1.1.1.1 73 0x80000003 3072 0x2002 3
4.4.4.4 1850 0x80000006 0 0x2001 0
4.4.4.4 61 0x80000003 5120 0x2002 5
4.4.4.4 1850 0x80000002 6144 0x2002 6
10.10.10.10 648 0x80000002 0 0x2001 0
10.10.10.10 1929 0x80000002 6144 0x2002 6
20.20.20.20 372 0x80000002 0 0x2001 0
R1#tclsh
R1(tcl)#foreach x {
+>(tcl)#2001:192:102::1
+>(tcl)#2001:192:102::10
27
+>(tcl)#2001:192:21::10
+>(tcl)#2001:192:21::20
+>(tcl)#2001:192:104::10
+>(tcl)#2001:192:104::4
+>(tcl)#2001:192:204::20
+>(tcl)#2001:192:204::4
+>(tcl)#2001:192:202::2
+>(tcl)#2001:192:202::20
+>(tcl)#2001::1
+>(tcl)#2001::2
+>(tcl)#2001::4
+>(tcl)#2001::10
+>(tcl)#2001::20
+>(tcl)#} { ping $x source lo0 }
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:192:102::1, timeout is 2 seconds:
Packet sent with a source address of 2001::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/8 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:192:102::10, timeout is 2 seconds:
Packet sent with a source address of 2001::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/11/16 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:192:21::10, timeout is 2 seconds:
Packet sent with a source address of 2001::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/11/20 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:192:21::20, timeout is 2 seconds:
Packet sent with a source address of 2001::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/12/16 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:192:104::10, timeout is 2 seconds:
Packet sent with a source address of 2001::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/13/24 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:192:104::4, timeout is 2 seconds:
Packet sent with a source address of 2001::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/21/40 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:192:204::20, timeout is 2 seconds:
Packet sent with a source address of 2001::1
28
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/14/28 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:192:204::4, timeout is 2 seconds:
Packet sent with a source address of 2001::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/16/28 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:192:202::2, timeout is 2 seconds:
Packet sent with a source address of 2001::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/28/40 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:192:202::20, timeout is 2 seconds:
Packet sent with a source address of 2001::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/11/20 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::1, timeout is 2 seconds:
Packet sent with a source address of 2001::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/8 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::2, timeout is 2 seconds:
Packet sent with a source address of 2001::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/24/44 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::4, timeout is 2 seconds:
Packet sent with a source address of 2001::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/19/32 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::10, timeout is 2 seconds:
Packet sent with a source address of 2001::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/8/12 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::20, timeout is 2 seconds:
Packet sent with a source address of 2001::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/12/20 ms
29
Task 3
R1 is the DR for the shared segment with XR1 , configure XR1 in order for it to
take the DR role for OSPFv2 process
XR1
router ospf 1
area 0
interface Gi0/0/0/0
priority 10
30
Task 4
R2 is elected as the DR for the shared segment with XR2 , configure XR2 to
take the DR role for the OSPFv3 process
XR2
router ospfv3 1
area 1
interface Gi0/0/0/0
priority 10
31
Suppress hello for 0 neighbor(s)
Reference count is 5
Task 5
XR2 is learning the prefix 192.168.104.0/24 via two equal cost paths
Make sure that XR2 is preferring the link via R4 , changes should be done on the IOS
XR routers
The change we are going to make is related to the OSPF interface cost
XR2
router ospf 1
area 0
interface Gi0/0/0/2
32
cost 10
XR1
router ospf 1
area 0
interface Gi0/0/0/2
cost 10
Task 6
Enable MD5 authentication between XR2 and R4 for OSPFv2 process
R4
int fastEthernet 2/1
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 cisco
R4#
*May 27 16:05:55.246: %OSPF-5-ADJCHG: Process 1, Nbr 20.20.20.20 on
FastEthernet2/1 from FULL to DOWN, Neighbor Down: Dead timer expired
XR2
router ospf 1
area 0
interface GigabitEthernet0/0/0/1
authentication message-digest
message-digest-key 1 md5 cisco
33
R4#
*May 27 16:07:36.874: %OSPF-5-ADJCHG: Process 1, Nbr 20.20.20.20 on
FastEthernet2/1 from LOADING to FULL, Loading Done
34
LS Ack List: current length 0, high water mark 7
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 4.4.4.4 (Backup Designated Router)
Suppress hello for 0 neighbor(s)
Message digest authentication enabled
Youngest key id is 1
Multi-area interface Count is 0
Task 7
Enable clear text authentication between XR1 and R1 for OSPFv2 process
R1
int f1/0
ip ospf authentication
ip ospf authentication-key cisco
R1#
*May 27 16:11:06.786: %OSPF-5-ADJCHG: Process 1, Nbr 10.10.10.10 on
FastEthernet1/0 from FULL to DOWN, Neighbor Down: Dead timer expired
XR1
router ospf 1
area 0
interface GigabitEthernet0/0/0/0
authentication
authentication-key cisco
R1#
*May 27 16:11:34.242: %OSPF-5-ADJCHG: Process 1, Nbr 10.10.10.10 on
FastEthernet1/0 from LOADING to FULL, Loading Done
35
Index 2/2, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 4 msec, maximum is 4 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 10.10.10.10 (Designated Router)
Suppress hello for 0 neighbor(s)
Simple password authentication enabled
Task 8
Enable MD5 authentication between XR1 and R1 for OSPFv3 process
R1
interface FastEthernet1/0
ospfv3 authentication ipsec spi 256 md5 ABCABCABCABCABCABCABCABCABCABCAB
R1#
*May 27 16:14:53.142: %OSPFv3-5-ADJCHG: Process 1, IPv6, Nbr 10.10.10.10 on
FastEthernet1/0 from FULL to DOWN, Neighbor Down: Dead timer expired
XR1
router ospfv3 1
area 0
interface GigabitEthernet0/0/0/0
authentication ipsec spi 256 md5 ABCABCABCABCABCABCABCABCABCABCAB
36
R1#
*May 27 16:15:39.274: %OSPFv3-5-ADJCHG: Process 1, IPv6, Nbr 10.10.10.10 on
FastEthernet1/0 from LOADING to FULL, Loading Done
37
Task 9
Configure new loopback interface on R2 , advertise it in area 2 and make sure
R1 install it in its routing table
R2
int lo1
ip add 22.22.22.22 255.255.255.255
router ospf 1
network 22.22.22.22 0.0.0.0 area 2
If we looked deep the topology , we can find that we have discontiguos area (area 2 is
not connected directly the backbone area)
This is solved using virtual links , in order for us to correctly establish virtual links , we
have to determine the ABR and their respective router-IDs and the transit area
In our topology we have XR2 as ABR and R2 as well , the transit area will be area 1
R2
router ospf 1
area 1 virtual-link 20.20.20.20
XR2
router ospf 1
area 1
virtual-link 2.2.2.2
38
R2#
*May 27 16:26:13.805: %OSPF-5-ADJCHG: Process 1, Nbr 20.20.20.20 on OSPF_VL0
from LOADING to FULL, Loading Done
39
OSPF II
Network Diagram
R1 192.168.102.0/24 XR1
Area 1
19
2.
16
8.
21
.0
/
24
XR2 192.168.202.0/24
192.168.104.0/24
R2
24
Area 2
0/
4.
20
8.
16
2.
19
R4
Area 0
Initial Configurations
R1
interface Loopback0
ip address 1.1.1.1 255.255.255.0
interface FastEthernet1/0
ip address 192.168.102.1 255.255.255.0
speed auto
duplex auto
no shutdown
R2
interface Loopback0
ip address 2.2.2.2 255.255.255.0
40
interface FastEthernet1/0
ip address 192.168.202.2 255.255.255.0
speed auto
duplex auto
no shutdown
R4
interface Loopback0
ip address 4.4.4.4 255.255.255.0
interface FastEthernet2/0
ip address 192.168.104.4 255.255.255.0
speed auto
duplex auto
no shutdown
interface FastEthernet2/1
ip address 192.168.204.4 255.255.255.0
speed auto
duplex auto
no shutdown
XR1
hostname XR1
cdp
interface Loopback0
ipv4 address 10.10.10.10 255.255.255.0
interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.102.10 255.255.255.0
duplex full
interface GigabitEthernet0/0/0/1
cdp
ipv4 address 192.168.104.10 255.255.255.0
interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.21.10 255.255.255.0
XR2
hostname XR2
cdp
interface Loopback0
41
ipv4 address 20.20.20.20 255.255.255.0
interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.202.20 255.255.255.0
interface GigabitEthernet0/0/0/1
cdp
ipv4 address 192.168.204.20 255.255.255.0
interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.21.20 255.255.255.0
42
Tasks
Task 1
Configure OSPF on all routers according to the respective areas
Configure the loopback interface 172.16.111.1/24 on R1 and redistribute it in
the OSPF process
Configure the loopback interfaces 192.168.32.2/24 and 192.168.33.2/24 on
R2 and redistribute it in the OSPF process
Configure the loopback interfaces 192.168.12.4/24 and 192.168.13.4/24 on
R4 and advertise it in the OSPF process in Area 4
Configure the loopback interfaces 192.168.40.20/24 and 192.168.41.20/24 on
XR2 and advertise it the OSPF process in Area 3
Configure the loopback interfaces 192.168.200.20/24 and 192.168.201.20/24
on XR2 and redistribute it in the OSPF process
R1
interface Loopback0
ip address 1.1.1.1 255.255.255.0
ip ospf network point-to-point
interface Loopback1
ip address 172.16.111.1 255.255.255.0
router ospf 1
router-id 1.1.1.1
redistribute connected subnets route-map LO1
network 1.1.1.1 0.0.0.0 area 1
network 192.168.102.1 0.0.0.0 area 1
R2
interface Loopback0
ip address 2.2.2.2 255.255.255.0
ip ospf network point-to-point
interface Loopback1
ip address 192.168.32.2 255.255.255.0
interface Loopback2
ip address 192.168.33.2 255.255.255.0
43
router ospf 1
router-id 2.2.2.2
redistribute connected subnets route-map LOOPs
network 2.2.2.2 0.0.0.0 area 2
network 192.168.202.2 0.0.0.0 area 2
R4
interface Loopback0
ip address 4.4.4.4 255.255.255.0
ip ospf network point-to-point
interface Loopback1
ip address 192.168.12.4 255.255.255.0
interface Loopback2
ip address 192.168.13.4 255.255.255.0
router ospf 1
router-id 4.4.4.4
network 4.4.4.4 0.0.0.0 area 0
network 192.168.12.4 0.0.0.0 area 4
network 192.168.13.4 0.0.0.0 area 4
network 192.168.104.4 0.0.0.0 area 0
network 192.168.204.4 0.0.0.0 area 0
XR1
router ospf 1
router-id 10.10.10.10
area 0
interface Loopback0
network point-to-point
interface GigabitEthernet0/0/0/1
interface GigabitEthernet0/0/0/2
area 1
interface GigabitEthernet0/0/0/0
XR2
route-policy CONNECTED
if destination in (192.168.200.0/24, 192.168.201.0/24) then
pass
endif
end-policy
44
router ospf 1
router-id 20.20.20.20
redistribute connected route-policy CONNECTED
area 0
interface Loopback0
network point-to-point
interface GigabitEthernet0/0/0/1
interface GigabitEthernet0/0/0/2
area 2
interface GigabitEthernet0/0/0/0
area 3
interface Loopback1
interface Loopback2
Verifications
45
O IA 192.168.12.4 [110/3] via 192.168.102.10, 1d03h, FastEthernet1/0
192.168.13.0/32 is subnetted, 1 subnets
O IA 192.168.13.4 [110/3] via 192.168.102.10, 1d03h, FastEthernet1/0
O IA 192.168.21.0/24 [110/2] via 192.168.102.10, 1d04h, FastEthernet1/0
O E2 192.168.32.0/24 [110/20] via 192.168.102.10, 01:36:35, FastEthernet1/0
O E2 192.168.33.0/24 [110/20] via 192.168.102.10, 01:36:35, FastEthernet1/0
192.168.40.0/32 is subnetted, 1 subnets
O IA 192.168.40.20 [110/3] via 192.168.102.10, 01:36:32, FastEthernet1/0
192.168.41.0/32 is subnetted, 1 subnets
O IA 192.168.41.20 [110/3] via 192.168.102.10, 01:36:32, FastEthernet1/0
O IA 192.168.104.0/24 [110/2] via 192.168.102.10, 1d04h, FastEthernet1/0
O E2 192.168.200.0/24 [110/20] via 192.168.102.10, 00:20:06, FastEthernet1/0
O E2 192.168.201.0/24 [110/20] via 192.168.102.10, 00:20:06, FastEthernet1/0
O IA 192.168.202.0/24 [110/3] via 192.168.102.10, 01:36:32, FastEthernet1/0
O IA 192.168.204.0/24 [110/3] via 192.168.102.10, 1d03h, FastEthernet1/0
46
Summary ASB Link States (Area 1)
Area 1
47
*> 192.168.204.0/24, Inter, cost 3, area 1
via 192.168.102.10, FastEthernet1/0
*> 4.4.4.0/24, Inter, cost 3, area 1
via 192.168.102.10, FastEthernet1/0
*> 10.10.10.10/32, Inter, cost 2, area 1
via 192.168.102.10, FastEthernet1/0
*> 192.168.21.0/24, Inter, cost 2, area 1
via 192.168.102.10, FastEthernet1/0
*> 192.168.104.0/24, Inter, cost 2, area 1
via 192.168.102.10, FastEthernet1/0
48
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
+ - replicated route, % - next hop override
49
Summary Net Link States (Area 2)
Area 2
50
Inter-area Route List
*> 1.1.1.0/24, Inter, cost 4, area 2
via 192.168.202.20, FastEthernet1/0
*> 4.4.4.0/24, Inter, cost 3, area 2
via 192.168.202.20, FastEthernet1/0
*> 192.168.21.0/24, Inter, cost 2, area 2
via 192.168.202.20, FastEthernet1/0
*> 192.168.102.0/24, Inter, cost 3, area 2
via 192.168.202.20, FastEthernet1/0
*> 192.168.104.0/24, Inter, cost 3, area 2
via 192.168.202.20, FastEthernet1/0
*> 192.168.204.0/24, Inter, cost 2, area 2
via 192.168.202.20, FastEthernet1/0
*> 10.10.10.10/32, Inter, cost 3, area 2
via 192.168.202.20, FastEthernet1/0
*> 20.20.20.20/32, Inter, cost 2, area 2
via 192.168.202.20, FastEthernet1/0
*> 192.168.12.4/32, Inter, cost 3, area 2
via 192.168.202.20, FastEthernet1/0
*> 192.168.13.4/32, Inter, cost 3, area 2
via 192.168.202.20, FastEthernet1/0
*> 192.168.40.20/32, Inter, cost 2, area 2
via 192.168.202.20, FastEthernet1/0
*> 192.168.41.20/32, Inter, cost 2, area 2
via 192.168.202.20, FastEthernet1/0
51
I 1.1.1.1 [3] via 192.168.202.20, FastEthernet1/0, ASBR, Area 2, SPF 5
i 20.20.20.20 [1] via 192.168.202.20, FastEthernet1/0, ABR/ASBR, Area 2, SPF 5
52
Router Link States (Area 0)
53
192.168.40.20 4.4.4.4 1826 0x80000003 0x00EC96
192.168.41.20 4.4.4.4 1826 0x80000003 0x00E1A0
192.168.102.0 4.4.4.4 833 0x80000032 0x00AA7F
192.168.104.0 4.4.4.4 833 0x80000032 0x008A9E
192.168.202.0 4.4.4.4 1826 0x80000003 0x00B83C
192.168.204.0 4.4.4.4 833 0x80000032 0x003A8A
Area BACKBONE(0)
54
i 20.20.20.20 [1] via 192.168.204.20, FastEthernet2/1, ABR/ASBR, Area 0, SPF 8
i 10.10.10.10 [1] via 192.168.104.10, FastEthernet2/0, ABR, Area 0, SPF 8
Area 4
55
Internal Router Routing Table
Codes: i - Intra-area route, I - Inter-area route
56
RP/0/0/CPU0:XR1# sh ospf database
Thu May 29 15:16:08.514 UTC
57
Summary Net Link States (Area 1)
58
* Indicates MADJ interface
59
192.168.104.10 10.10.10.10 406 0x80000032 0x00fbd0
192.168.204.4 4.4.4.4 1906 0x80000003 0x00f09c
60
Summary ASB Link States (Area 2)
61
Codes: i - Intra-area route, I - Inter-area route
Task 2
Wrtie a TCL script to check connectivity between all prefixes in the OSPF
domain
R1#tclsh
R1(tcl)#foreach x {
+>(tcl)#192.168.102.1
+>(tcl)#1.1.1.1
+>(tcl)#172.16.111.1
+>(tcl)#192.168.202.2
+>(tcl)#2.2.2.2
+>(tcl)#192.168.32.2
+>(tcl)#192.168.33.2
+>(tcl)#192.168.104.4
+>(tcl)#192.168.204.4
+>(tcl)#4.4.4.4
+>(tcl)#192.168.12.4
+>(tcl)#192.168.13.4
+>(tcl)#10.10.10.10
+>(tcl)#192.168.102.10
+>(tcl)#192.168.104.10
+>(tcl)#192.168.21.10
+>(tcl)#20.20.20.20
+>(tcl)#192.168.40.20
+>(tcl)#192.168.41.20
+>(tcl)#192.168.200.20
+>(tcl)#192.168.201.20
+>(tcl)#192.168.202.20
+>(tcl)#192.168.204.20
+>(tcl)#192.168.21.20
+>(tcl)#} { ping $x }
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.102.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/16/28 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/12 ms
Type escape sequence to abort.
62
Sending 5, 100-byte ICMP Echos to 192.168.111.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/5/12 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.202.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/40/68 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/36/44 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.32.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/38/44 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.33.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/32/40 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.104.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/36/48 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.204.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/37/40 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/37/52 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.12.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/33/36 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.13.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/42/52 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/18/24 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.102.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/22/28 ms
63
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.104.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/18/24 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.21.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/16/20 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.20.20.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/21/28 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.40.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/21/28 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.41.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/22/36 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.200.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/21/32 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.201.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/23/40 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.202.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/13/24 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.204.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/25/28 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.21.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/21/28 ms
RP/0/0/CPU0:XR1#run tclsh
Thu May 29 16:40:33.337 UTC
% foreach x {
192.168.102.1
1.1.1.1
192.168.111.1
64
192.168.202.2
2.2.2.2
192.168.32.2
192.168.33.2
192.168.104.4
192.168.204.4
4.4.4.4
192.168.12.4
192.168.13.4
10.10.10.10
192.168.102.10
192.168.104.10
192.168.21.10
20.20.20.20
192.168.40.20
192.168.41.20
192.168.200.20
192.168.201.20
192.168.202.20
192.168.204.20
192.168.21.20
} { ping $x }
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.102.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/13/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/17/29 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.111.1, timeout is 2 seconds:
UUUUU
Success rate is 0 percent (0/5)
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.202.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/11/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/15/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.32.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/11/19 ms
Type escape sequence to abort.
65
Sending 5, 100-byte ICMP Echos to 192.168.33.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/13/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.104.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/11/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.204.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/13/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/11/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.12.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/13/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.13.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/11/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.102.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.104.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.21.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.20.20.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.40.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
66
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.41.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.200.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.201.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.202.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.204.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/6/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.21.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Task 3
Summarize the networks 192.168.12.0/24 and 192.168.13.0/24 on R4 and
make sure the new summary route exists in all routers among the OSPF
domain
R4
router ospf 1
area 4 range 192.168.12.0 255.255.254.0
67
R1#sh ip route 192.168.12.0 255.255.254.0
Routing entry for 192.168.12.0/23, supernet
Known via "ospf 1", distance 110, metric 3, type inter area
Last update from 192.168.102.10 on FastEthernet1/0, 00:01:36 ago
Routing Descriptor Blocks:
* 192.168.102.10, from 10.10.10.10, 00:01:36 ago, via FastEthernet1/0
Route metric is 3, traffic share count is 1
R1#ping 192.168.12.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.12.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/34/44 ms
R1#ping 192.168.13.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.13.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/39/44 ms
Task 4
Summarize the networks 192.168.40.0/24 and 192.168.41.0/24 on XR2 and
make sure the new summary route exists in all routers among the OSPF
domain
XR2
router ospf 1
area 3
range 192.168.40.0/23
68
RP/0/0/CPU0:XR2#sh route 192.168.40.0/23
Thu May 29 16:57:31.218 UTC
R1#ping 192.168.40.20
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.40.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/22/32 ms
R1#ping 192.168.41.20
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.41.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/20/24 ms
Task 5
Summarize the networks 192.168.32.0/24 and 192.168.33.0/24 on R2 and
make sure the new summary route exists in all routers among the OSPF
domain
R2
router ospf 1
summary-address 192.168.32.0 255.255.254.0
69
O E2 192.168.32.0/23 [110/20] via 192.168.102.10, 00:01:32, FastEthernet1/0
O IA 192.168.40.0/23 [110/3] via 192.168.102.10, 00:08:13, FastEthernet1/0
R1#ping 192.168.32.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.32.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/30/40 ms
R1#ping 192.168.33.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.33.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/37/48 ms
Task 6
Summarize the 172.16.111.0 subnet to its base on R1
R1
router ospf 1
summary-address 172.16.111.0 255.255.0.0
RP/0/0/CPU0:XR1#ping 172.16.111.1
Thu May 29 17:04:34.889 UTC
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.111.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/11/19 ms
Task 7
Summerize the networks 192.168.200.0/24 and 192.168.201.0/24 on XR2 and
make sure the new summary route exists in all routers among the OSPF
domain
XR2
router ospf 1
summary-prefix 192.168.200.0/23
70
RP/0/0/CPU0:XR2#sh route 192.168.200.0/23
Thu May 29 17:13:23.892 UTC
R1#ping 192.168.200.20
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.200.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/17/32 ms
R1#ping 192.168.201.20
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.201.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/21/28 ms
Task 8
Configure Area 2 as a stub area
R2
router ospf 1
area 2 stub
XR2
router ospf 1
area 2
stub
71
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
R2#sh ip ospf
Routing Process "ospf 1" with ID 2.2.2.2
Start time: 1d18h, Time elapsed: 1d07h
Supports only single TOS(TOS0) routes
Supports opaque LSA
Supports Link-local Signaling (LLS)
Supports area transit capability
Supports NSSA (compatible with RFC 3101)
Event-log enabled, Maximum number of events: 1000, Mode: cyclic
It is an autonomous system boundary router
Redistributing External Routes from,
connected, includes subnets in redistribution
Router is not originating router-LSAs with maximum metric
Initial SPF schedule delay 5000 msecs
Minimum hold time between two consecutive SPFs 10000 msecs
Maximum wait time between two consecutive SPFs 10000 msecs
Incremental-SPF disabled
Minimum LSA interval 5 secs
Minimum LSA arrival 1000 msecs
LSA group pacing timer 240 secs
Interface flood pacing timer 33 msecs
Retransmission pacing timer 66 msecs
Number of external LSA 0. Checksum Sum 0x000000
Number of opaque AS LSA 0. Checksum Sum 0x000000
Number of DCbitless external and opaque AS LSA 0
72
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 1. 0 normal 1 stub 0 nssa
Number of areas transit capable is 0
External flood list length 0
IETF NSF helper support enabled
Cisco NSF helper support enabled
Reference bandwidth unit is 100 mbps
Area 2
Number of interfaces in this area is 2 (1 loopback)
It is a stub area
Area has no authentication
SPF algorithm last executed 00:02:44.252 ago
SPF algorithm executed 9 times
Area ranges are
Number of LSA 14. Checksum Sum 0x066234
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
Task 9
Configure Area 1 to be NSSA area
R1
router ospf 1
area 1 nssa
R1#
*Jun 1 15:01:12.736: %OSPF-5-ADJCHG: Process 1, Nbr 10.10.10.10 on
FastEthernet1/0 from FULL to DOWN, Neighbor Down: Adjacency forced to reset
XR1
router ospf 1
area 1
nssa
R1#
*Jun 1 15:01:44.956: %OSPF-5-ADJCHG: Process 1, Nbr 10.10.10.10 on
FastEthernet1/0 from LOADING to FULL, Loading Done
73
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
R1#sh ip ospf
Routing Process "ospf 1" with ID 1.1.1.1
Start time: 1d18h, Time elapsed: 4d04h
Supports only single TOS(TOS0) routes
Supports opaque LSA
Supports Link-local Signaling (LLS)
Supports area transit capability
Supports NSSA (compatible with RFC 3101)
Event-log enabled, Maximum number of events: 1000, Mode: cyclic
It is an autonomous system boundary router
Redistributing External Routes from,
connected, includes subnets in redistribution
Router is not originating router-LSAs with maximum metric
Initial SPF schedule delay 5000 msecs
Minimum hold time between two consecutive SPFs 10000 msecs
Maximum wait time between two consecutive SPFs 10000 msecs
Incremental-SPF disabled
Minimum LSA interval 5 secs
Minimum LSA arrival 1000 msecs
LSA group pacing timer 240 secs
Interface flood pacing timer 33 msecs
Retransmission pacing timer 66 msecs
Number of external LSA 0. Checksum Sum 0x000000
Number of opaque AS LSA 0. Checksum Sum 0x000000
Number of DCbitless external and opaque AS LSA 0
74
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 1. 0 normal 0 stub 1 nssa
Number of areas transit capable is 0
External flood list length 0
IETF NSF helper support enabled
Cisco NSF helper support enabled
Reference bandwidth unit is 100 mbps
Area 1
Number of interfaces in this area is 2
It is a NSSA area
Area has no authentication
SPF algorithm last executed 00:01:10.744 ago
SPF algorithm executed 8 times
Area ranges are
Number of LSA 14. Checksum Sum 0x07A004
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
75
Gateway of last resort is 192.168.202.20 to network 0.0.0.0
Task 10
Adjust the OSPF cost of the default route on the ABR (XR2)
XR2
router ospf 1
area 2
default-cost 10
76
ISIS
Network Diagram
R1 192.168.102.0/24 XR1
L2 L2 19
2.
16
8.
21.
0/
24
XR2 192.168.202.0/24
192.168.104.0/24
L1/L2 R2
L1 Area
49.0002
24
0/
4.
20
8.
16
2.
19
Area R4
49.0001 L2
Initial Configurations
R1
interface Loopback0
ip address 1.1.1.1 255.255.255.0
ipv6 address 2001::1/128
interface FastEthernet1/0
ip address 192.168.102.1 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:102::1/64
no shutdown
R2
77
interface Loopback0
ip address 2.2.2.2 255.255.255.0
ipv6 address 2001::2/128
interface FastEthernet1/0
ip address 192.168.202.2 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:202::2/64
no shutdown
R4
interface Loopback0
ip address 4.4.4.4 255.255.255.0
ipv6 address 2001::4/128
interface FastEthernet2/0
ip address 192.168.104.4 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:104::4/64
no shutdown
interface FastEthernet2/1
ip address 192.168.204.4 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:204::4/64
no shutdown
XR1
hostname XR1
cdp
interface Loopback0
ipv4 address 10.10.10.10 255.255.255.0
ipv6 address 2001::10/128
interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.102.10 255.255.255.0
ipv6 address 2001:192:102::10/64
duplex full
interface GigabitEthernet0/0/0/1
cdp
ipv4 address 192.168.104.10 255.255.255.0
ipv6 address 2001:192:104::10/64
78
interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.21.10 255.255.255.0
ipv6 address 2001:192:21::10/64
XR2
hostname XR2
cdp
interface Loopback0
ipv4 address 20.20.20.20 255.255.255.0
ipv6 address 2001::20/128
interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.202.20 255.255.255.0
ipv6 address 2001:192:202::20/64
interface GigabitEthernet0/0/0/1
cdp
ipv4 address 192.168.204.20 255.255.255.0
ipv6 address 2001:192:204::20/64
interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.21.20 255.255.255.0
ipv6 address 2001:192:21::20/64
79
Tasks
Task 1
Enable ISIS on all routers according to the diagram
R1
router isis 1
net 49.0001.0000.0000.0001.00
is-type level-2-only
int lo0
ip router isis 1
int fas1/0
ip router isis 1
R2
router isis 1
net 49.0001.0000.0000.0002.00
is-type level-1
int lo0
ip router isis 1
int fas1/0
ip router isis 1
R4
router isis 1
net 49.0001.0000.0000.0004.00
is-type level-2-only
int lo0
ip router isis 1
int f2/0
ip router isis 1
int f2/1
ip router isis 1
XR1
router isis 1
net 49.0001.0000.0000.0010.00
is-type level-2-only
interface lo0
address-family ipv4 unicast
80
interface Gi0/0/0/0
address-family ipv4 unicast
interface Gi0/0/0/1
address-family ipv4 unicast
interface Gi0/0/0/2
address-family ipv4 unicast
XR2
router isis 1
net 49.0001.0000.0000.0020.00
interface lo0
circuit-type level-2-only
address-family ipv4 unicast
interface Gi0/0/0/0
circuit-type level-1
address-family ipv4 unicast
interface Gi0/0/0/1
circuit-type level-2-only
address-family ipv4 unicast
interface Gi0/0/0/2
circuit-type level-2-only
address-family ipv4 unicast
Verifications
Tag 1:
System Id Type Interface IP Address State Holdtime Circuit Id
XR1 L2 Fa1/0 192.168.102.10 UP 29 R1.01
81
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
+ - replicated route, % - next hop override
Tag 1:
System Id Type Interface IP Address State Holdtime Circuit Id
XR2 L1 Fa1/0 192.168.202.20 UP 21 R2.01
As we can see R2 routing table is empty , because the relation between R2 and XR2 is
level-1 relation , and all the routes XR2 is learning from the rest of the network is level-
2 routes
82
So , we have to redistribute level-2 into level-1 (in IOS XR propagate is redistribute)
We start by defining a prefix-set that matches all routes (we are not going to select
anything here)
XR2
prefix-set MSSK
0.0.0.0/0 le 32
end-set
XR2
route-policy PERMIT_ALL
if destination in MSSK then
pass
endif
end-policy
Which is equal to :
route-map PERMIT_ALL permit 10
match ip address prefix MSSK
XR2
address-family ipv4 unicast
propagate level 2 into level 1 route-policy PERMIT_ALL
83
4.0.0.0/24 is subnetted, 1 subnets
i ia 4.4.4.0 [115/158] via 192.168.202.20, 00:00:02, FastEthernet1/0
10.0.0.0/24 is subnetted, 1 subnets
i ia 10.10.10.0 [115/158] via 192.168.202.20, 00:00:02, FastEthernet1/0
20.0.0.0/24 is subnetted, 1 subnets
i ia 20.20.20.0 [115/148] via 192.168.202.20, 00:00:02, FastEthernet1/0
i ia 192.168.21.0/24 [115/148] via 192.168.202.20, 00:00:02, FastEthernet1/0
i ia 192.168.102.0/24 [115/158] via 192.168.202.20, 00:00:02, FastEthernet1/0
i ia 192.168.104.0/24 [115/158] via 192.168.202.20, 00:00:02, FastEthernet1/0
i ia 192.168.204.0/24 [115/148] via 192.168.202.20, 00:00:02, FastEthernet1/0
Tag 1:
System Id Type Interface IP Address State Holdtime Circuit Id
XR1 L2 Fa2/0 192.168.104.10 UP 24 R4.01
XR2 L2 Fa2/1 192.168.204.20 UP 28 R4.02
84
i L2 192.168.202.0/24 [115/20] via 192.168.204.20, 18:20:58, FastEthernet2/1
IS-IS 1 neighbors:
System Id Interface SNPA State Holdtime Type IETF-NSF
R1 Gi0/0/0/0 ca00.f4bc.001c Up 7 L2 Capable
R4 Gi0/0/0/1 ca02.9b78.0038 Up 8 L2 Capable
XR2 Gi0/0/0/2 0800.2759.7f87 Up 8 L2 Capable
IS-IS 1 neighbors:
System Id Interface SNPA State Holdtime Type IETF-NSF
R2 Gi0/0/0/0 ca01.f4bc.001c Up 7 L1 Capable
R4 Gi0/0/0/1 ca02.9b78.0039 Up 9 L2 Capable
XR1 Gi0/0/0/2 0800.271f.7011 Up 26 L2 Capable
85
Task 2
Write a TCL script to check connectivity between all elements in ISIS routing
domain
R1#tclsh
R1(tcl)#foreach x {
+>(tcl)#192.168.102.1
+>(tcl)#1.1.1.1
+>(tcl)#192.168.202.2
+>(tcl)#2.2.2.2
+>(tcl)#192.168.104.4
+>(tcl)#192.168.204.4
+>(tcl)#4.4.4.4
+>(tcl)#10.10.10.10
+>(tcl)#192.168.102.10
+>(tcl)#192.168.104.10
+>(tcl)#192.168.21.10
+>(tcl)#20.20.20.20
+>(tcl)#192.168.202.20
+>(tcl)#192.168.204.20
+>(tcl)#192.168.21.20
+>(tcl)#} { ping $x source lo0 }
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.102.1, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/12 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/12 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.202.2, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/41/96 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/25/28 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.104.4, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
86
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/31/44 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.204.4, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/30/40 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/26/40 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.10, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/15/28 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.102.10, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/16/32 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.104.10, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/18/24 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.21.10, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/14/20 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.20.20.20, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/16/24 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.202.20, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/16/28 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.204.20, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/16/36 ms
87
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.21.20, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/16/28 ms
RP/0/0/CPU0:XR1#run tclsh
Mon Jun 2 12:35:07.649 UTC
% foreach x {
192.168.102.1
1.1.1.1
192.168.202.2
2.2.2.2
192.168.104.4
192.168.204.4
4.4.4.4
10.10.10.10
192.168.102.10
192.168.104.10
192.168.21.10
20.20.20.20
192.168.202.20
192.168.204.20
192.168.21.20
} { ping $x }
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.102.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/11/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/9/9 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.202.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/13/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/13/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.104.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/11/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.204.4, timeout is 2 seconds:
88
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/11/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/11/19 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.102.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.104.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.21.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.20.20.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.202.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.204.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/9/9 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.21.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Task 3
Configure two new loopback interfaces on R2 with IP addresses of
172.16.12.2/24 and 172.16.13.2/24 and advertise them in the ISIS process
R2
int lo1
ip add 172.16.12.2 255.255.255.0
ip router isis 1
89
int lo2
ip add 172.16.13.2 255.255.255.0
ip router isis 1
Task 4
Summarize the loopbacks mentioned in the previous task on the approbriate
device
XR2
router isis 1
address-family ipv4 unicast
summary-prefix 172.16.12.0/23 level 2
R1#ping 172.16.12.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.12.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/39/44 ms
R1#ping 172.16.13.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.13.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/39/48 ms
RP/0/0/CPU0:XR1#ping 172.16.12.2
Mon Jun 2 12:48:40.093 UTC
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.12.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/11/19 ms
RP/0/0/CPU0:XR1#ping 172.16.13.2
Mon Jun 2 12:48:42.793 UTC
90
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.13.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/11/19 ms
As we can see the routes did not reach R2 because we summarized using level-2
Task 5
Enable IPv6 routing on all routers and make sure full connectivity is achieved
R1
router isis 1
metric-style wide
address-family ipv6 unicast
multi-topology
int f1/0
ipv6 router isis 1
int lo0
ipv6 router isis 1
R2
router isis 1
metric-style wide
address-family ipv6 unicast
multi-topology
int lo0
ipv6 router isis 1
int f1/0
ipv6 router isis 1
R4
router isis 1
metric-style wide
address-family ipv6 unicast
multi-topology
int lo0
ipv6 router isis 1
int f2/0
ipv6 router isis 1
int f2/1
ipv6 router isis 1
91
XR1
router isis 1
interface Loopback0
address-family ipv6 unicast
interface GigabitEthernet0/0/0/0
address-family ipv6 unicast
interface GigabitEthernet0/0/0/1
address-family ipv6 unicast
interface GigabitEthernet0/0/0/2
address-family ipv6 unicast
XR2
router isis 1
interface Loopback0
address-family ipv6 unicast
interface GigabitEthernet0/0/0/0
address-family ipv6 unicast
interface GigabitEthernet0/0/0/1
address-family ipv6 unicast
interface GigabitEthernet0/0/0/2
address-family ipv6 unicast
Verifications
Tag 1:
92
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external, 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, l - LISP
I2 2001::2/128 [115/40]
via FE80::A00:27FF:FE35:643D, FastEthernet1/0
I2 2001::4/128 [115/30]
via FE80::A00:27FF:FE35:643D, FastEthernet1/0
I2 2001::10/128 [115/20]
via FE80::A00:27FF:FE35:643D, FastEthernet1/0
I2 2001::20/128 [115/30]
via FE80::A00:27FF:FE35:643D, FastEthernet1/0
I2 2001:192:21::/64 [115/20]
via FE80::A00:27FF:FE35:643D, FastEthernet1/0
I2 2001:192:104::/64 [115/20]
via FE80::A00:27FF:FE35:643D, FastEthernet1/0
I2 2001:192:202::/64 [115/30]
via FE80::A00:27FF:FE35:643D, FastEthernet1/0
I2 2001:192:204::/64 [115/30]
via FE80::A00:27FF:FE35:643D, FastEthernet1/0
Tag 1:
IS-IS TID 2 paths to level-1 routers
System Id Metric Next-Hop Interface SNPA
R2 --
XR2 10 XR2 Fa1/0 0800.27dc.8c08
R2#sh ipv6 route isis
IPv6 Routing Table - default - 4 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, R - RIP, H - NHRP, I1 - ISIS L1
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external, 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, l - LISP
Tag 1:
93
R4#sh ipv6 route isis
IPv6 Routing Table - default - 13 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, R - RIP, H - NHRP, I1 - ISIS L1
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external, 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, l - LISP
I2 2001::1/128 [115/30]
via FE80::A00:27FF:FEE6:12E, FastEthernet2/0
I2 2001::2/128 [115/30]
via FE80::A00:27FF:FE6F:8FE6, FastEthernet2/1
I2 2001::10/128 [115/20]
via FE80::A00:27FF:FEE6:12E, FastEthernet2/0
I2 2001::20/128 [115/20]
via FE80::A00:27FF:FE6F:8FE6, FastEthernet2/1
I2 2001:192:21::/64 [115/20]
via FE80::A00:27FF:FEE6:12E, FastEthernet2/0
via FE80::A00:27FF:FE6F:8FE6, FastEthernet2/1
I2 2001:192:102::/64 [115/20]
via FE80::A00:27FF:FEE6:12E, FastEthernet2/0
I2 2001:192:202::/64 [115/20]
via FE80::A00:27FF:FE6F:8FE6, FastEthernet2/1
i L2 2001::1/128
[115/20] via fe80::c800:f4ff:febc:1c, 00:00:02, GigabitEthernet0/0/0/0
i L2 2001::2/128
[115/30] via fe80::a00:27ff:fe59:7f87, 00:02:25, GigabitEthernet0/0/0/2
i L2 2001::4/128
[115/20] via fe80::c802:9bff:fe78:38, 00:29:04, GigabitEthernet0/0/0/1
i L2 2001::20/128
94
[115/20] via fe80::a00:27ff:fe59:7f87, 02:52:15, GigabitEthernet0/0/0/2
i L2 2001:192:202::/64
[115/20] via fe80::a00:27ff:fe59:7f87, 00:27:50, GigabitEthernet0/0/0/2
i L2 2001:192:204::/64
[115/20] via fe80::a00:27ff:fe59:7f87, 00:27:50, GigabitEthernet0/0/0/2
[115/20] via fe80::c802:9bff:fe78:38, 00:27:50, GigabitEthernet0/0/0/1
i L2 2001::1/128
[115/30] via fe80::a00:27ff:fe1f:7011, 00:01:05, GigabitEthernet0/0/0/2
i L1 2001::2/128
[115/20] via fe80::c801:f4ff:febc:1c, 00:00:10, GigabitEthernet0/0/0/0
i L2 2001::4/128
[115/20] via fe80::c802:9bff:fe78:39, 00:28:48, GigabitEthernet0/0/0/1
i L2 2001::10/128
[115/20] via fe80::a00:27ff:fe1f:7011, 02:53:00, GigabitEthernet0/0/0/2
i L2 2001:192:102::/64
[115/20] via fe80::a00:27ff:fe1f:7011, 02:53:00, GigabitEthernet0/0/0/2
i L2 2001:192:104::/64
[115/20] via fe80::a00:27ff:fe1f:7011, 00:28:48, GigabitEthernet0/0/0/2
[115/20] via fe80::c802:9bff:fe78:39, 00:28:48, GigabitEthernet0/0/0/1
Also , we can see that R2 does not have any route installed , so we will do the same as
we did with IPv4 , we will leak all routes to be installed on R2 IPv6 routing table
XR2
prefix-set MSSK6
0::0/0 le 128
route-policy PERMIT_ALL6
if destination in MSSK6 then pass endif
95
router isis 1
address-family ipv6 unicast
propagate level 2 into level 1 route-policy PERMIT_ALL6
Task 7
Write a TCL script to ensure full connectivity for all IPv6 loopback interfaces
R1#tclsh
R1(tcl)#foreach x {
+>(tcl)#2001::1
+>(tcl)#2001::2
+>(tcl)#2001::4
+>(tcl)#2001::10
+>(tcl)#2001::20
+>(tcl)#} { ping $x }
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/4/8 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::2, timeout is 2 seconds:
96
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/46/68 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/44/64 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/22/40 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/34/48 ms
Task 8
The route is learned on XR2 IPv6 routing table via two paths as can be seen
from the output below
i L2 2001::1/128
[115/30] via fe80::a00:27ff:fe1f:7011, 00:01:03, GigabitEthernet0/0/0/2
i L1 2001::2/128
[115/20] via fe80::c801:f4ff:febc:1c, 00:01:37, GigabitEthernet0/0/0/0
i L2 2001::4/128
[115/20] via fe80::c802:9bff:fe78:39, 01:18:40, GigabitEthernet0/0/0/1
i L2 2001::10/128
[115/20] via fe80::a00:27ff:fe1f:7011, 00:31:49, GigabitEthernet0/0/0/2
i L2 2001:192:102::/64
[115/20] via fe80::a00:27ff:fe1f:7011, 00:31:49, GigabitEthernet0/0/0/2
i L2 2001:192:104::/64
[115/20] via fe80::a00:27ff:fe1f:7011, 00:31:49, GigabitEthernet0/0/0/2
[115/20] via fe80::c802:9bff:fe78:39, 00:31:49, GigabitEthernet0/0/0/1
97
No advertising protos.
XR1
router isis 1
interface GigabitEthernet0/0/0/2
address-family ipv6 unicast
metric 15
XR2
router isis 1
interface GigabitEthernet0/0/0/2
address-family ipv6 unicast
metric 15
i L2 2001::1/128
[115/35] via fe80::a00:27ff:fe1f:7011, 00:01:14, GigabitEthernet0/0/0/2
i L1 2001::2/128
[115/20] via fe80::c801:f4ff:febc:1c, 00:02:02, GigabitEthernet0/0/0/0
i L2 2001::4/128
[115/20] via fe80::c802:9bff:fe78:39, 00:00:30, GigabitEthernet0/0/0/1
i L2 2001::10/128
[115/25] via fe80::a00:27ff:fe1f:7011, 00:02:01, GigabitEthernet0/0/0/2
i L2 2001:192:102::/64
[115/25] via fe80::a00:27ff:fe1f:7011, 00:02:01, GigabitEthernet0/0/0/2
i L2 2001:192:104::/64
[115/20] via fe80::c802:9bff:fe78:39, 00:00:30, GigabitEthernet0/0/0/1
RP/0/0/CPU0:XR2#sh route ipv6 2001:192:104::/64
Tue Jun 3 14:58:06.212 UTC
XR2
98
interface GigabitEthernet0/0/0/1
shutdown
RP/0/0/CPU0:XR2#sh route ipv6 isis
Tue Jun 3 14:58:31.151 UTC
i L2 2001::1/128
[115/35] via fe80::a00:27ff:fe1f:7011, 00:01:40, GigabitEthernet0/0/0/2
i L1 2001::2/128
[115/20] via fe80::c801:f4ff:febc:1c, 00:02:28, GigabitEthernet0/0/0/0
i L2 2001::4/128
[115/35] via fe80::a00:27ff:fe1f:7011, 00:00:01, GigabitEthernet0/0/0/2
i L2 2001::10/128
[115/25] via fe80::a00:27ff:fe1f:7011, 00:02:28, GigabitEthernet0/0/0/2
i L2 2001:192:102::/64
[115/25] via fe80::a00:27ff:fe1f:7011, 00:02:28, GigabitEthernet0/0/0/2
i L2 2001:192:104::/64
[115/25] via fe80::a00:27ff:fe1f:7011, 00:00:01, GigabitEthernet0/0/0/2
i L2 2001:192:204::/64
[115/35] via fe80::a00:27ff:fe1f:7011, 00:00:01, GigabitEthernet0/0/0/2
99
BGP
Network Diagram
AS #3 R1 192.168.12.0/24
R2 AS #4
192.168.202.0/24
192.168.101.0/24
XR1 XR2
192.168.21.0/24
EIGRP MSSK
AS #1
100
Initial Configurations
R1
interface Loopback1
ip address 192.168.3.1 255.255.255.0
interface Loopback2
ip address 192.168.33.1 255.255.255.0
interface Loopback3
ip address 192.168.133.1 255.255.255.0
interface FastEthernet1/0
ip address 192.168.101.1 255.255.255.0
speed auto
duplex auto
no shut
interface FastEthernet1/1
ip address 192.168.12.1 255.255.255.0
speed 100
duplex full
no shut
R2
interface Loopback1
ip address 192.168.4.1 255.255.255.0
interface Loopback2
ip address 192.168.44.1 255.255.255.0
interface Loopback3
ip address 192.168.144.1 255.255.255.0
interface FastEthernet1/0
ip address 192.168.202.2 255.255.255.0
speed auto
duplex auto
no shut
interface FastEthernet1/1
ip address 192.168.12.2 255.255.255.0
speed 100
duplex full
101
no shut
XR1
interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255
interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.101.10 255.255.255.0
duplex full
interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.21.10 255.255.255.0
XR2
interface Loopback0
ipv4 address 20.20.20.20 255.255.255.255
interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.202.20 255.255.255.0
interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.21.20 255.255.255.0
102
Tasks
Task 1
Configure EIGRP on both XR1 and XR2 and advertise their loopback 0
interfaces in EIGRP and make sure updates are exchanged only on the physical
interfaces
XR1
router eigrp MSSK
address-family ipv4
autonomous-system 1
interface Loopback0
passive-interface
interface GigabitEthernet0/0/0/2
XR2
router eigrp MSSK
address-family ipv4
autonomous-system 1
interface Loopback0
passive-interface
interface GigabitEthernet0/0/0/2
Task 2
Configure BGP according to the diagram shown above and advertise loopback
1, 2, 3 interfaces in BGP
Task 3
Advertise the transit link between R1 and R2 in BGP on both routers
Advertise the transit link between R1 and R3 in BGP on R1
Advertise the transit link between R2 and R4 in BGP on R2
Advertise the transit link between R3 and R4 in BGP on both routers
R1
router bgp 3
no bgp default ipv4-unicast
neighbor 192.168.12.2 remote-as 4
neighbor 192.168.101.10 remote-as 1
address-family ipv4
network 192.168.3.0
network 192.168.12.0
network 192.168.33.0
103
network 192.168.133.0
neighbor 192.168.12.2 activate
neighbor 192.168.101.10 activate
exit-address-family
R2
router bgp 4
no bgp default ipv4-unicast
neighbor 192.168.12.1 remote-as 3
neighbor 192.168.202.20 remote-as 1
address-family ipv4
network 192.168.4.0
network 192.168.12.0
network 192.168.44.0
network 192.168.144.0
neighbor 192.168.12.1 activate
neighbor 192.168.202.20 activate
exit-address-family
XR1
router bgp 1
address-family ipv4 unicast
network 192.168.1.0/24
network 192.168.11.0/24
network 192.168.21.0/24
network 192.168.101.0/24
network 192.168.111.0/24
neighbor 20.20.20.20
remote-as 1
update-source Loopback0
address-family ipv4 unicast
neighbor 192.168.101.1
remote-as 3
address-family ipv4 unicast
XR2
router bgp 1
address-family ipv4 unicast
network 192.168.2.0/24
network 192.168.21.0/24
network 192.168.22.0/24
network 192.168.202.0/24
network 192.168.222.0/24
104
neighbor 10.10.10.10
remote-as 1
update-source Loopback0
address-family ipv4 unicast
neighbor 192.168.202.2
remote-as 4
address-family ipv4 unicast
R1#sh ip bgp
BGP table version is 8, local router ID is 192.168.133.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
105
BGP router identifier 192.168.144.1, local AS number 4
BGP table version is 8, main routing table version 8
7 network entries using 1008 bytes of memory
8 path entries using 640 bytes of memory
2/2 BGP path/bestpath attribute entries using 272 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1944 total bytes of memory
BGP activity 7/0 prefixes, 8/0 paths, scan interval 60 secs
R2#sh ip bgp
BGP table version is 8, local router ID is 192.168.144.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
106
Some configured eBGP neighbors (under default or non-default vrfs)
do not have both inbound and outbound policies configured for IPv4 Unicast
address family. These neighbors will default to sending and/or
receiving no routes and are marked with '!' in the output below.
Use the 'show bgp neighbor <nbr_address>' command for details.
107
address family. These neighbors will default to sending and/or
receiving no routes and are marked with '!' in the output below.
Use the 'show bgp neighbor <nbr_address>' command for details.
As we can see, R1 and R2 do not receive any routes from XR1 and XR2 respectively and
we can see from the show bgp ipv4 unicast summary output on XR1 the! Mark and it
asks us to check the show bgp neighbor <> command for more details, let us do that
108
Socket not armed for io, armed for read, armed for write
Last write thread event before reset 00:00:00, second last 00:00:00
Last KA expiry before reset 00:00:00, second last 00:00:00
Last KA error before reset 00:00:00, KA not sent 00:00:00
Last KA start before reset 00:00:00, second last 00:00:00
Precedence: internet
Enforcing first AS is enabled
Multi-protocol capability received
Neighbor capabilities:
Route refresh: advertised (old + new) and received (old + new)
4-byte AS: advertised and received
Address family IPv4 Unicast: advertised and received
Received 75 messages, 0 notifications, 0 in queue
Sent 65 messages, 0 notifications, 0 in queue
Minimum time between advertisement runs is 30 secs
As we can see from the red lighted line from the output above that the default policy
when dealing with eBGP relations on IOS XR is to drop, so we have to define a policy
that will allow us to receive as well as advertise routes
XR1
route-policy PASS
pass
end-policy
109
router bgp 1
neighbor 192.168.101.1
address-family ipv4 unicast
route-policy PASS in
route-policy PASS out
XR2
route-policy PASS
pass
end-policy
router bgp 1
neighbor 192.168.202.2
address-family ipv4 unicast
route-policy PASS in
route-policy PASS out
R1#sh ip bgp
BGP table version is 11, local router ID is 192.168.133.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
110
*> 192.168.12.2 0 04i
* 192.168.12.0 192.168.12.2 0 04i
*> 0.0.0.0 0 32768 i
* 192.168.21.0 192.168.12.2 041i
*> 192.168.101.10 0 01i
*> 192.168.33.0 0.0.0.0 0 32768 i
* 192.168.44.0 192.168.101.10 014i
*> 192.168.12.2 0 04i
r 192.168.101.0 192.168.12.2 041i
r> 192.168.101.10 0 01i
*> 192.168.133.0 0.0.0.0 0 32768 i
* 192.168.144.0 192.168.101.10 014i
Network Next Hop Metric LocPrf Weight Path
*> 192.168.12.2 0 04i
* 192.168.202.0 192.168.12.2 041i
*> 192.168.101.10 01i
R2#sh ip bgp
BGP table version is 14, local router ID is 192.168.144.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
111
*> 0.0.0.0 0 32768 i
*> 192.168.21.0 192.168.202.20 0 01i
* 192.168.12.1 031i
* 192.168.33.0 192.168.202.20 013i
*> 192.168.12.1 0 03i
*> 192.168.44.0 0.0.0.0 0 32768 i
*> 192.168.101.0 192.168.202.20 01i
* 192.168.12.1 031i
* 192.168.133.0 192.168.202.20 013i
*> 192.168.12.1 0 03i
Network Next Hop Metric LocPrf Weight Path
*> 192.168.144.0 0.0.0.0 0 32768 i
r> 192.168.202.0 192.168.202.20 0 01i
r 192.168.12.1 031i
112
*>i192.168.4.0/24 192.168.202.2 0 100 04i
* i192.168.12.0/24 192.168.202.2 0 100 04i
*> 192.168.101.1 0 03i
*> 192.168.21.0/24 0.0.0.0 0 32768 i
*i 20.20.20.20 0 100 0i
*> 192.168.33.0/24 192.168.101.1 0 03i
*>i192.168.44.0/24 192.168.202.2 0 100 04i
*> 192.168.101.0/24 0.0.0.0 0 32768 i
*> 192.168.133.0/24 192.168.101.1 0 03i
*>i192.168.144.0/24 192.168.202.2 0 100 04i
*>i192.168.202.0/24 20.20.20.20 0 100 0i
113
*> 192.168.4.0/24 192.168.202.2 0 04i
* i192.168.12.0/24 192.168.101.1 0 100 03i
*> 192.168.202.2 0 04i
*> 192.168.21.0/24 0.0.0.0 0 32768 i
*i 10.10.10.10 0 100 0i
*>i192.168.33.0/24 192.168.101.1 0 100 03i
* 192.168.202.2 043i
*> 192.168.44.0/24 192.168.202.2 0 04i
*>i192.168.101.0/24 10.10.10.10 0 100 0i
*>i192.168.133.0/24 192.168.101.1 0 100 03i
* 192.168.202.2 043i
*> 192.168.144.0/24 192.168.202.2 0 04i
*> 192.168.202.0/24 0.0.0.0 0 32768 i
Task 4
Write a TCL script to make sure that connectivity is achieved
R1#tclsh
R1(tcl)#foreach x {
+>(tcl)#192.168.101.10
+>(tcl)#192.168.21.10
+>(tcl)#192.168.202.20
+>(tcl)#192.168.21.20
+>(tcl)#192.168.101.1
+>(tcl)#192.168.12.1
+>(tcl)#192.168.3.1
+>(tcl)#192.168.33.1
+>(tcl)#192.168.133.1
+>(tcl)#192.168.202.2
+>(tcl)#192.168.12.2
+>(tcl)#192.168.4.1
+>(tcl)#192.168.44.1
+>(tcl)#192.168.144.1
+>(tcl)#} { ping $x }
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.101.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/19/28 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.21.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/16/24 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.202.20, timeout is 2 seconds:
!!!!!
114
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/18/24 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.21.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/16/28 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.101.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/12 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.12.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/4/12 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.3.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/12 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.33.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/4/12 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.133.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/12 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.202.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/36/48 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/29/40 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.4.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/31/48 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.44.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/28/32 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.144.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/27/36 ms
115
Note
As we can see, some routes are shown in XR1 bgp table with a next-hop of
192.168.20.2 which is R2 interface connected to XR2, if we were not to advertise the
transit link, we could not reach because this next-hop is not known for us
What we can do in this case is to implement next-hop-self; we will apply it on both XR1
and XR2
116
i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i192.168.3.0/24 192.168.101.1 0 100 03i
* 192.168.202.2 043i
*> 192.168.4.0/24 192.168.202.2 0 04i
* i192.168.12.0/24 192.168.101.1 0 100 03i
*> 192.168.202.2 0 04i
*> 192.168.21.0/24 0.0.0.0 0 32768 i
*i 10.10.10.10 0 100 0i
*>i192.168.33.0/24 192.168.101.1 0 100 03i
* 192.168.202.2 043i
*> 192.168.44.0/24 192.168.202.2 0 04i
*>i192.168.101.0/24 10.10.10.10 0 100 0i
*>i192.168.133.0/24 192.168.101.1 0 100 03i
* 192.168.202.2 043i
*> 192.168.144.0/24 192.168.202.2 0 04i
*> 192.168.202.0/24 0.0.0.0 0 32768 i
XR1
router bgp 1
neighbor 20.20.20.20
address-family ipv4 unicast
next-hop-self
XR2
router bgp 1
neighbor 10.10.10.10
address-family ipv4 unicast
next-hop-self
117
*>i192.168.4.0/24 20.20.20.20 0 100 04i
* i192.168.12.0/24 20.20.20.20 0 100 04i
*> 192.168.101.1 0 03i
*> 192.168.21.0/24 0.0.0.0 0 32768 i
*i 20.20.20.20 0 100 0i
*> 192.168.33.0/24 192.168.101.1 0 03i
*>i192.168.44.0/24 20.20.20.20 0 100 04i
*> 192.168.101.0/24 0.0.0.0 0 32768 i
*> 192.168.133.0/24 192.168.101.1 0 03i
*>i192.168.144.0/24 20.20.20.20 0 100 04i
*>i192.168.202.0/24 20.20.20.20 0 100 0i
118
Task 5
R2 advertises three networks into BGP, traceroute to R2 192.168.4.0 network
should match the below output (the configuration should be done on XR1
using local preference)
RP/0/0/CPU0:XR2#traceroute 192.168.4.1
Wed Jun 4 16:47:27.194 UTC
XR1
prefix-set R2Lo1
192.168.4.0/24
end-set
route-policy LP
if destination in R2Lo1 then
set local-preference 200
else
pass
endif
end-policy
router bgp 1
neighbor 192.168.101.1
address-family ipv4 unicast
route-policy LP in
RP/0/0/CPU0:XR2#traceroute 192.168.4.1
Wed Jun 4 16:47:27.194 UTC
119
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0xe0000000 RD version: 16
BGP main routing table version 16
BGP scan interval 60 secs
120
*> 192.168.21.0/24 0.0.0.0 0 32768 i
*i 10.10.10.10 0 100 0i
*>i192.168.33.0/24 10.10.10.10 0 100 03i
* 192.168.202.2 043i
*> 192.168.44.0/24 192.168.202.2 0 04i
*>i192.168.101.0/24 10.10.10.10 0 100 0i
*>i192.168.133.0/24 10.10.10.10 0 100 03i
* 192.168.202.2 043i
*> 192.168.144.0/24 192.168.202.2 0 04i
*> 192.168.202.0/24 0.0.0.0 0 32768 i
Task 6
Configure new three loopback interfaces on XR1 and advertise them into BGP
XR1
interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255
interface Loopback1
121
ipv4 address 192.168.1.1 255.255.255.0
interface Loopback2
ipv4 address 192.168.11.1 255.255.255.0
interface Loopback3
ipv4 address 192.168.111.1 255.255.255.0
router bgp 1
address-family ipv4 unicast
network 192.168.1.0/24
network 192.168.11.0/24
network 192.168.111.0/24
Task 7
XR1 advertises three networks into BGP, traceroute to XR1 192.168.1.0
network should match the output below (The configuration should be done on
XR1 using AS-path)
122
2 192.168.202.20 [AS 1] 40 msec 44 msec 36 msec
3 192.168.21.10 [AS 1] 36 msec * 24 msec
XR1
prefix-set XR1Lo1
192.168.11.0/24
end-set
route-policy PREPEND
if destination in XR1Lo1 then
prepend as-path 1 2
endif
pass
end-policy
router bgp 1
neighbor 192.168.101.1
address-family ipv4 unicast
route-policy PREPEND out
R1#sh ip bgp
BGP table version is 15, local router ID is 192.168.133.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
123
*> 192.168.133.0 0.0.0.0 0 32768 i
* 192.168.144.0 192.168.101.10 014i
*> 192.168.12.2 0 04i
* 192.168.202.0 192.168.12.2 041i
*> 192.168.101.10 01i
Task 8
Configure new three loopback interfaces on XR2 and advertise them into BGP
XR2
interface Loopback0
ipv4 address 20.20.20.20 255.255.255.255
interface Loopback1
ipv4 address 192.168.2.1 255.255.255.0
interface Loopback2
ipv4 address 192.168.22.1 255.255.255.0
interface Loopback3
ipv4 address 192.168.222.1 255.255.255.0
router bgp 1
address-family ipv4 unicast
network 192.168.2.0/24
network 192.168.22.0/24
network 192.168.222.0/24
124
*> 192.168.202.0/24 0.0.0.0 0 32768 i
Task 9
Change the origin for the 192.168.22.0 prefix to incomplete (configuration
should be done on XR2)
R2#sh ip bgp
*> 192.168.22.0 192.168.24.2 0 0 100 ?
R2#sh ip bgp
Output Omitted
XR2
prefix-set XR2Lo2
192.168.22.0/24
end-set
route-policy ORIGIN
if destination in XR2Lo2 then
set origin incomplete
else
pass
endif
router bgp 1
neighbor 192.168.202.2
address-family ipv4 unicast
route-policy ORIGIN out
R2#sh ip bgp
Output Omitted
Task 10
Match the output below (configuration done on XR2)
R2#sh ip bgp
* 192.168.222.0 192.168.34.3 0 300 100 i
125
*> 192.168.24.2 222 0 100 i
R2#sh ip bgp
* 192.168.222.0 192.168.12.1 031i
*> 192.168.202.20 0 01i
XR2
prefix-set XR2Lo3
192.168.222.0/24
end-set
route-policy ORIGIN
if destination in XR2Lo2 then
set origin incomplete
endif
if destination in XR2Lo3 then
set med 222
else
pass
endif
end-policy
R2#sh ip bgp
* 192.168.222.0 192.168.12.1 031i
*> 192.168.202.20 222 01i
Task 11
Filter the prefix 192.168.144.0/24 from routes advertised from XR2 to XR1
using prefix-lists (Match the output below)
126
RP/0/0/CPU0:XR2#sh bgp ipv4 unicast neighbors 10.10.10.10 advertised-routes
Wed Jun 4 17:36:58.381 UTC
Network Next Hop From AS Path
192.168.2.0/24 20.20.20.20 Local i
192.168.12.0/24 20.20.20.20 192.168.202.2 4i
192.168.21.0/24 20.20.20.20 Local i
192.168.22.0/24 20.20.20.20 Local i
192.168.44.0/24 20.20.20.20 192.168.202.2 4i
192.168.144.0/24 20.20.20.20 192.168.202.2 4i
192.168.202.0/24 20.20.20.20 Local i
192.168.222.0/24 20.20.20.20 Local i
XR2
prefix-set R2Lo3
192.168.144.0/24
end-set
route-policy NOADV
if destination in R2Lo3 then
drop
else
pass
endif
end-policy
router bgp 1
neighbor 10.10.10.10
address-family ipv4 unicast
route-policy NOADV out
127
Task 12
Enable authentication for the BGP relation between XR1 and R1
R1
router bgp 3
neighbor 192.168.101.10 password cisco
XR1
router bgp 1
neighbor 192.168.101.1
password cisco
R1#
*Jun 5 11:03:21.909: %BGP-5-ADJCHANGE: neighbor 192.168.101.10 Up
Task 13
Attach the community 111:1 to the prefix 192.168.111.0/24 (configuration
should be done on XR1)
XR1
prefix-set XR1Lo2
192.168.111.0/24
end-set
community-set COMM_SET
111:1
end-set
route-policy COMM
if destination in XR1Lo2 then
set community COMM_SET
else
pass
endif
end-policy
router bgp 1
neighbor 20.20.20.20
address-family ipv4 unicast
128
route-policy COMM out
129
Redistribution
Network Diagram
R4 192.168.104.0/24 XR1
19
2 .1
68
. 10
1.0
/ 24
192.168.24.0/24
192.168.21.0/24
R1
4
.0 /2
02
8.1
. 16
92 ISIS
R2 192.168.202.0/24 XR2 1
Level 2
OSPF
Area 0
Initial Configurations
R1
interface Loopback0
ip address 1.1.1.1 255.255.255.255
interface FastEthernet1/0
ip address 192.168.101.1 255.255.255.0
speed auto
duplex auto
no shutdown
interface FastEthernet1/1
ip address 192.168.102.1 255.255.255.0
130
speed auto
duplex auto
no shutdown
R2
interface Loopback0
ip address 2.2.2.2 255.255.255.255
interface FastEthernet1/0
ip address 192.168.202.2 255.255.255.0
speed auto
duplex auto
no shutdown
interface FastEthernet1/1
ip address 192.168.24.2 255.255.255.0
speed 100
duplex full
no shutdown
R4
interface Loopback0
ip address 4.4.4.4 255.255.255.255
interface FastEthernet1/1
ip address 192.168.24.4 255.255.255.0
speed 100
duplex full
no shutdown
interface FastEthernet2/0
ip address 192.168.104.4 255.255.255.0
speed auto
duplex auto
no shutdown
XR1
hostname XR1
cdp
interface Loopback0
ipv4 address 10.10.10.10 255.255.255.0
interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.101.10 255.255.255.0
duplex full
interface GigabitEthernet0/0/0/1
131
cdp
ipv4 address 192.168.104.10 255.255.255.0
interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.21.10 255.255.255.0
XR2
hostname XR2
cdp
interface Loopback0
ipv4 address 20.20.20.20 255.255.255.255
interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.202.20 255.255.255.0
interface GigabitEthernet0/0/0/1
cdp
ipv4 address 192.168.102.20 255.255.255.0
interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.21.20 255.255.255.0
132
Tasks
Task 1
Configure OSPF on all routers according to the above diagram
R2
router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.168.24.2 0.0.0.0 area 0
network 192.168.202.2 0.0.0.0 area 0
R4
router ospf 1
router-id 4.4.4.4
network 4.4.4.4 0.0.0.0 area 0
network 192.168.24.4 0.0.0.0 area 0
network 192.168.104.4 0.0.0.0 area 0
XR1
router ospf 1
router-id 10.10.10.10
address-family ipv4 unicast
area 0
interface GigabitEthernet0/0/0/1
interface GigabitEthernet0/0/0/2
XR2
router ospf 1
router-id 20.20.20.20
address-family ipv4 unicast
area 0
interface GigabitEthernet0/0/0/0
interface GigabitEthernet0/0/0/2
133
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
+ - replicated route, % - next hop override
134
Neighbor is up for 1d18h
20.20.20.20 1 FULL/BDR 00:00:39 192.168.21.20
GigabitEthernet0/0/0/2
Neighbor is up for 1d18h
Task 2
Configure ISIS level 2 area 49.0001 according to the above diagram (XR1 and
XR2 loopbacks should be advertised only in the ISIS process)
R1
router isis 1
net 49.0001.0000.0000.0001.00
is-type level-2-only
135
interface Loopback0
ip router isis 1
interface FastEthernet1/0
ip router isis 1
interface FastEthernet1/1
ip router isis 1
XR1
router isis 1
is-type level-2-only
net 49.0001.0000.0000.0010.00
interface Loopback0
address-family ipv4 unicast
interface GigabitEthernet0/0/0/0
address-family ipv4 unicast
XR2
router isis 1
is-type level-2-only
net 49.0001.0000.0000.0020.00
interface Loopback0
address-family ipv4 unicast
interface GigabitEthernet0/0/0/1
address-family ipv4 unicast
136
RP/0/0/CPU0:XR1#sh isis neighbors
Sat Jun 7 12:33:31.557 UTC
IS-IS 1 neighbors:
System Id Interface SNPA State Holdtime Type IETF-NSF
R1 Gi0/0/0/0 ca00.ab48.001c Up 8 L2 Capable
IS-IS 1 neighbors:
System Id Interface SNPA State Holdtime Type IETF-NSF
R1 Gi0/0/0/1 ca00.ab48.001d Up 8 L2 Capable
Task 3
Perform mutual redistribution between OSPF and ISIS on both XR1 ands XR2
XR1
router ospf 1
redistribute isis 1 level-2
router isis 1
address-family ipv4 unicast
redistribute ospf 1 level-2
XR2
router ospf 1
redistribute isis 1 level-2
router isis 1
137
address-family ipv4 unicast
redistribute ospf 1 level-2
138
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 192.168.24.2, 2d03h, FastEthernet1/1
10.0.0.0/24 is subnetted, 1 subnets
O E2 10.10.10.0 [110/20] via 192.168.104.10, 00:00:57, FastEthernet2/0
20.0.0.0/32 is subnetted, 1 subnets
O E2 20.20.20.20 [110/20] via 192.168.104.10, 00:00:42, FastEthernet2/0
[110/20] via 192.168.24.2, 00:00:42, FastEthernet1/1
O 192.168.21.0/24 [110/2] via 192.168.104.10, 2d03h, FastEthernet2/0
O E2 192.168.101.0/24 [110/20] via 192.168.104.10, 00:00:57, FastEthernet2/0
O E2 192.168.102.0/24 [110/20] via 192.168.104.10, 00:00:42, FastEthernet2/0
[110/20] via 192.168.24.2, 00:00:42, FastEthernet1/1
O 192.168.202.0/24 [110/2] via 192.168.24.2, 2d03h, FastEthernet1/1
RP/0/0/CPU0:XR1#sh route
Sat Jun 7 18:50:45.196 UTC
139
Codes: C - connected, S - static, R - RIP, B - BGP, (>) - Diversion path
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, E - EGP
i - ISIS, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, su - IS-IS summary null, * - candidate default
U - per-user static route, o - ODR, L - local, G - DAGR
A - access/subscriber, a - Application route, (!) - FRR Backup path
RP/0/0/CPU0:XR2#sh route
Sat Jun 7 19:39:22.667 UTC
140
L 20.20.20.20/32 is directly connected, 2d04h, Loopback0
C 192.168.21.0/24 is directly connected, 2d04h, GigabitEthernet0/0/0/2
L 192.168.21.20/32 is directly connected, 2d04h, GigabitEthernet0/0/0/2
O 192.168.24.0/24 [110/2] via 192.168.202.2, 2d02h, GigabitEthernet0/0/0/0
O E2 192.168.101.0/24 [110/20] via 192.168.21.10, 00:01:34, GigabitEthernet0/0/0/2
C 192.168.102.0/24 is directly connected, 2d02h, GigabitEthernet0/0/0/1
L 192.168.102.20/32 is directly connected, 2d02h, GigabitEthernet0/0/0/1
O 192.168.104.0/24 [110/2] via 192.168.21.10, 2d02h, GigabitEthernet0/0/0/2
C 192.168.202.0/24 is directly connected, 2d04h, GigabitEthernet0/0/0/0
L 192.168.202.20/32 is directly connected, 2d04h, GigabitEthernet0/0/0/0
Now , if we looked closely at the routing tables of both XR1 and XR2 especially on the
external routes
We can see that XR1 is learning XR2 loopback 0 interface from OSPF as well as the link
between R1 and XR2 and the same applies for XR2 which is learning the loopback 0
interface of XR1 from OSPF as well as the link between XR1 and R1
So , we have to define some filtering technique to avoid sub optimal routing
What we will do it to set the administrative distance of external OSPF route to a value
higher than 115 (which is the AD of ISIS routing protocol)
XR1
router ospf 1
distance ospf external 116
141
XR2
router ospf 1
distance ospf external 116
RP/0/0/CPU0:XR1#sh route ospf
Sun Jun 8 07:29:34.058 UTC
RP/0/0/CPU0:XR1#run tclsh
Sun Jun 8 07:32:36.015 UTC
% foreach x {
1.1.1.1
142
2.2.2.2
4.4.4.4
20.20.20.20
} { ping $x }
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 19/41/99 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 59/89/119 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 19/29/39 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.20.20.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 49/57/59 ms
143
Full Scale Lab
Network Diagram
R1 R2
2 4
. 0/
02 AS #2
192.168.104.0/24 8.1
. 16
192.168.202.0/24
2
19
XR1
192.168.14.0/24
19
2.1
68
. 21
. 0/
XR2
24
R4 AS #1
OSPF A0 AS #20
ISIS L2
Initial Configurations
R1
interface Loopback0
ip address 1.1.1.1 255.255.255.0
ipv6 address 2001::1/128
interface FastEthernet1/0
ip address 192.168.104.1 255.255.255.0
speed auto
144
duplex auto
ipv6 address 2001:192:104::1/64
no shutdown
interface FastEthernet1/1
ip address 192.168.14.1 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:14::1/64
no shutdown
R2
interface Loopback0
ip address 2.2.2.2 255.255.255.0
ipv6 address 2001::2/128
interface FastEthernet1/0
ip address 192.168.202.2 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:202::2/64
no shutdown
interface FastEthernet1/1
ip address 192.168.102.2 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:102::2/64
no shutdown
R4
interface Loopback0
ip address 4.4.4.4 255.255.255.0
ipv6 address 2001::4/128
interface FastEthernet1/0
ip address 192.168.104.4 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:104::4/64
no shutdown
interface FastEthernet1/1
ip address 192.168.14.4 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:14::4/64
145
no shutdown
XR1
hostname XR1
cdp
interface Loopback0
ipv4 address 10.10.10.10 255.255.255.0
ipv6 address 2001::10/128
interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.104.10 255.255.255.0
ipv6 address 2001:192:104::10/64
duplex full
no shutdown
interface GigabitEthernet0/0/0/1
cdp
ipv4 address 192.168.102.10 255.255.255.0
ipv6 address 2001:192:102::10/64
no shutdown
interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.21.10 255.255.255.0
ipv6 address 2001:192:21::10/64
no shutdown
XR2
hostname XR2
cdp
interface Loopback0
ipv4 address 20.20.20.20 255.255.255.0
ipv6 address 2001::20/128
interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.202.20 255.255.255.0
ipv6 address 2001:192:202::20/64
no shutdown
interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.21.20 255.255.255.0
ipv6 address 2001:192:21::20/64
no shutdown
146
Tasks
Task 1
Configure OSPF on the segments between XR1 , R1 and R1 , R4 (no DR/BDR
election should take place)
R1
router ospf 1
router-id 1.1.1.1
network 1.1.1.1 0.0.0.0 area 0
network 192.168.14.1 0.0.0.0 area 0
network 192.168.104.1 0.0.0.0 area 0
int lo0
ip ospf network point-to-point
int f1/0
ip ospf network point-to-point
int f1/1
ip ospf network point-to-point
R4
router ospf 1
router-id 4.4.4.4
network 192.168.14.4 0.0.0.0 area 0
int f1/1
ip ospf network point-to-point
XR1
router ospf 1
router-id 10.10.10.10
area 0
interface GigabitEthernet0/0/0/0
network point-to-point
147
R1#sh ip route ospf
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
+ - replicated route, % - next hop override
R4#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/32/36 ms
148
RP/0/0/CPU0:XR1#sh ospf neighbor
Wed Jun 11 10:48:04.828 UTC
RP/0/0/CPU0:XR1#ping 1.1.1.1
Wed Jun 11 10:48:12.208 UTC
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/11/19 ms
RP/0/0/CPU0:XR1#sh ospf interface brief
Wed Jun 11 10:48:16.628 UTC
* Indicates MADJ interface, (P) Indicates fast detect hold down state
Task 2
Enable Clear text authentication for OSPF between R1 and R4 with a password
of cisco
R1
int Fas 1/1
ip ospf authentication
ip ospf authentication-key cisco
R4
int Fas 1/1
ip ospf authentication
149
ip ospf authentication-key cisco
Task 3
150
Enable MD5 authentication for OSPF between XR1 and R1 with a password of
Cisco
R1
int fastEthernet 1/0
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 Cisco
R1#
*Jun 11 10:53:55.575: %OSPF-5-ADJCHG: Process 1, Nbr 10.10.10.10 on
FastEthernet1/0 from FULL to DOWN, Neighbor Down: Dead timer expired
XR1
router ospf 1
area 0
interface GigabitEthernet0/0/0/0
authentication message-digest
message-digest-key 1 md5 Cisco
R1#
*Jun 11 10:55:00.739: %OSPF-5-ADJCHG: Process 1, Nbr 10.10.10.10 on
FastEthernet1/0 from LOADING to FULL, Loading Done
151
RP/0/0/CPU0:XR1#sh ospf interface GigabitEthernet0/0/0/0
Wed Jun 11 10:55:23.538 UTC
Task 4
Change the hello-timer for the OSPF segment between R1 and R4 to 20
R1
int fastEthernet 1/1
ip ospf hello-interval 20
R1
*Jun 11 11:00:57.607: %OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on FastEthernet1/1
from FULL to DOWN, Neighbor Down: Dead timer expired
R4
int fastEthernet 1/1
ip ospf hello-interval 20
R1
*Jun 11 11:01:20.875: %OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on FastEthernet1/1
from LOADING to FULL, Loading Done
152
R1#sh ip ospf interface fastEthernet 1/1 | inc Hello
Timer intervals configured, Hello 20, Dead 80, Wait 80, Retransmit 5
Hello due in 00:00:16
Task 5
Change the hello-timer for the OSPF segment between R1 and XR1 to 15
R1
int fastEthernet 1/0
ip ospf hello-interval 15
R1#
*Jun 11 11:07:18.503: OSPF-1 ADJ Fa1/0: Send with youngest Key 1
R1#
*Jun 11 11:07:33.623: OSPF-1 ADJ Fa1/0: Send with youngest Key 1
R1#
*Jun 11 11:07:43.939: OSPF-1 ADJ Fa1/0: Nbr 10.10.10.10: Clean-up dbase
exchange
R1#
*Jun 11 11:07:48.007: OSPF-1 ADJ Fa1/0: Send with youngest Key 1
R1#
*Jun 11 11:07:53.679: OSPF-1 ADJ Fa1/0: 10.10.10.10 address 192.168.104.10 is
dead
*Jun 11 11:07:53.679: OSPF-1 ADJ Fa1/0: 10.10.10.10 address 192.168.104.10 is
dead, state DOWN
R1#
*Jun 11 11:07:53.679: %OSPF-5-ADJCHG: Process 1, Nbr 10.10.10.10 on
FastEthernet1/0 from FULL to DOWN, Neighbor Down: Dead timer expired
XR1
router ospf 1
area 0
interface GigabitEthernet0/0/0/0
hello-interval 15
153
*Jun 11 11:40:01.851: OSPF-1 ADJ Fa1/0: Send with youngest Key 1
*Jun 11 11:40:01.871: OSPF-1 ADJ Fa1/0: Rcv DBD from 10.10.10.10 seq 0x72C0
opt 0x52 flag 0x7 len 32 mtu 1500 state EXSTART
*Jun 11 11:40:01.871: OSPF-1 ADJ Fa1/0: NBR Negotiation Done. We are the SLAVE
*Jun 11 11:40:01.871: OSPF-1 ADJ Fa1/0: Nbr 10.10.10.10: Summary list built, size
3
*Jun 11 11:40:01.875: OSPF-1 ADJ Fa1/0: Send DBD to 10.10.10.10 seq 0x72C0 opt
0x52 flag 0x2 len 92
*Jun 11 11:40:01.875: OSPF-1 ADJ Fa1/0: Send with youngest Key 1
*Jun 11 11:40:01.891: OSPF-1 ADJ Fa1/0: Rcv DBD from 10.10.10.10 seq 0x72C1
opt 0x52 flag 0x1 len 92 mtu 1500 stat
R1#e EXCHANGE
*Jun 11 11:40:01.891: OSPF-1 ADJ Fa1/0: Exchange Done with 10.10.10.10
*Jun 11 11:40:01.895: OSPF-1 ADJ Fa1/0: Send with youngest Key 1
*Jun 11 11:40:01.899: OSPF-1 ADJ Fa1/0: Send LS REQ to 10.10.10.10 length 36
LSA count 1
*Jun 11 11:40:01.903: OSPF-1 ADJ Fa1/0: Send DBD to 10.10.10.10 seq 0x72C1 opt
0x52 flag 0x0 len 32
*Jun 11 11:40:01.907: OSPF-1 ADJ Fa1/0: Send with youngest Key 1
*Jun 11 11:40:01.935: OSPF-1 ADJ Fa1/0: Rcv LS UPD from 10.10.10.10 length 64
LSA count 1
*Jun 11 11:40:01.939: OSPF-1 ADJ Fa1/0: Synchronized with 10.10.10.10, state
FULL
*Jun 11 11:40:01.943: %OSPF-5-ADJCHG: Process 1, Nbr 10.10.10.10 on
FastEthernet1/0 from LOADING to FULL, Loading Done
*Jun 11 11:40:01.959: OSPF-1 ADJ Fa1/0: Rcv LS REQ from 10.10.10.10 length 48
LSA count 2
*Jun 11 11:40:01.959: OSPF-1 ADJ Fa1/0: Send with youngest Key 1
*Jun 11 11:40:02.451: OSPF-1 ADJ Fa1/0: Send with youngest Key 1
*Jun 11 11:40:02.939: OSPF-1 ADJ Fa1/0: Send with you
R1#ngest Key 1
R1#
*Jun 11 11:40:04.447: OSPF-1 ADJ Fa1/0: Send with youngest Key 1
R1#
*Jun 11 11:40:06.635: OSPF-1 ADJ Fa1/0: Rcv LS REQ from 10.10.10.10 length 36
LSA count 1
*Jun 11 11:40:06.639: OSPF-1 ADJ Fa1/0: Send with youngest Key 1
R1#
*Jun 11 11:40:11.195: OSPF-1 ADJ Fa1/0: Rcv LS REQ from 10.10.10.10 length 36
LSA count 1
*Jun 11 11:40:11.199: OSPF-1 ADJ Fa1/0: Send with youngest Key 1
R1#
*Jun 11 11:40:13.827: OSPF-1 ADJ Fa1/0: Send with youngest Key 1
R1#
*Jun 11 11:40:17.723: OSPF-1 ADJ Fa1/0: Send with youngest Key 1
154
Wed Jun 11 11:40:35.173 UTC
Timer intervals configured, Hello 15, Dead 60, Wait 60, Retransmit 5
Hello due in 00:00:03
Task 6
Configure ISIS level-2 area 49.0001 on the segment between XR1 and R4
(XR1 and R4 loopback 0 interfaces should be advertised in ISIS process)
R4
router isis 1
net 49.0001.0000.0000.0004.00
is-type level-2-only
interface Loopback0
ip router isis 1
interface FastEthernet1/0
ip router isis 1
XR1
router isis 1
is-type level-2-only
net 49.0001.0000.0000.0010.00
address-family ipv4 unicast
interface Loopback0
address-family ipv4 unicast
interface GigabitEthernet0/0/0/0
address-family ipv4 unicast
Tag 1:
System Id Type Interface IP Address State Holdtime Circuit Id
XR1 L2 Fa1/0 192.168.104.10 UP 23 R4.01
155
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
+ - replicated route, % - next hop override
IS-IS 1 neighbors:
System Id Interface SNPA State Holdtime Type IETF-NSF
R4 Gi0/0/0/0 ca02.06f8.001c Up 8 L2 Capable
Task 7
Enable MD5 authentication for ISIS between R4 and XR1
R4
key chain ISIS_KEY
key 1
key-string cisco
int f1/0
isis authentication mode md5 level-2
isis authentication key-chain ISIS_KEY level-2
156
R4#
*Jun 11 12:21:56.559: %CLNS-4-AUTH_FAIL: ISIS: LAN IIH authentication failed
XR1
router isis 1
interface GigabitEthernet0/0/0/0
hello-password hmac-md5 cisco
Tag 1:
System Id Type Interface IP Address State Holdtime Circuit Id
XR1 L2 Fa1/0 192.168.104.10 UP 27 R4.01
Task 8
Perform mutual redistribution on the boundary routers between ISIS and
OSPF
R4
router ospf 1
redistribute isis 1 level-2 subnets
router isis 1
redistribute ospf 1 level-2
XR1
router ospf 1
area 0
redistribute isis 1 level-2
router isis 1
157
address-family ipv4 unicast
redistribute ospf 1 level-2
R4#sh ip route
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
+ - replicated route, % - next hop override
R1#sh ip route
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
+ - replicated route, % - next hop override
158
10.0.0.0/24 is subnetted, 1 subnets
O E2 10.10.10.0 [110/20] via 192.168.104.10, 00:00:51, FastEthernet1/0
192.168.14.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.14.0/24 is directly connected, FastEthernet1/1
L 192.168.14.1/32 is directly connected, FastEthernet1/1
192.168.104.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.104.0/24 is directly connected, FastEthernet1/0
L 192.168.104.1/32 is directly connected, FastEthernet1/0
RP/0/0/CPU0:XR1#sh route
Wed Jun 11 15:30:03.959 UTC
As can be noted from the red highlighted line above that R4 is receiving XR1 loopback 0
network via OSPF and before redistribution it learned it via ISIS
R4
159
router ospf 1
distance ospf external 116
Let us define an access-list that will prevent this prefix from being learned via OSPF
R4
router ospf 1
no distance ospf external 116
R4
access-list 10 deny 10.10.10.0 0.0.0.255
access-list 10 permit any
router ospf 1
distribute-list 10 in
R4#sh access-lists
Standard IP access list 10
10 deny 10.10.10.0, wildcard bits 0.0.0.255 (1 match)
20 permit any (3 matches)
Task 9
Establish eBGP relations according to the above diagram
XR1
router bgp 1
address-family ipv4 unicast
160
neighbor 192.168.102.2
remote-as 2
address-family ipv4 unicast
neighbor 192.168.21.20
remote-as 20
address-family ipv4 unicast
XR2
router bgp 20
address-family ipv4 unicast
neighbor 192.168.21.10
remote-as 1
address-family ipv4 unicast
R2
router bgp 2
no bgp default ipv4-unicast
neighbor 192.168.102.10 remote-as 1
address-family ipv4 unicast
neighbor 192.168.102.10 activate
161
do not have both inbound and outbound policies configured for IPv4 Unicast
address family. These neighbors will default to sending and/or
receiving no routes and are marked with '!' in the output below.
Use the 'show bgp neighbor <nbr_address>' command for details.
As can be noticed the ! mark in the IOS XR outputs , that means that we did not
configure a route policy that will allow advertising or receiving any routes
XR1
route-policy PASS
pass
162
router bgp 1
neighbor 192.168.102.2
address-family ipv4 unicast
route-policy PASS in
route-policy PASS out
neighbor 192.168.21.20
address-family ipv4 unicast
route-policy PASS in
route-policy PASS out
XR2
route-policy PASS
pass
router bgp 20
neighbor 192.168.21.10
address-family ipv4 unicast
route-policy PASS in
route-policy PASS out
Task 10
Advertise the transit link between R2 and XR2 into BGP on both routers
R2
router bgp 2
163
address-family ipv4 unicast
network 192.168.202.0 mask 255.255.255.0
XR2
router bgp 20
address-family ipv4 unicast
network 192.168.202.0/24
Task 11
Configure XR1 to prefer XR2 as the exit point
XR2
router bgp 1
neighbor 192.168.21.20
address-family ipv4 unicast
weight 1000
164
Network Next Hop Metric LocPrf Weight Path
*> 192.168.202.0/24 192.168.21.20 0 1000 20 i
* 192.168.102.2 0 02i
Task 13
Perform mutual redistribution between BGP and IGPs inside AS #1
XR1
router ospf 1
redistribute bgp 1
router isis 1
address-family ipv4 unicast
redistribute bgp 1 level-2
router bgp 1
address-family ipv4 unicast
redistribute ospf 1
redistribute isis 1 level 2
R4#sh ip route
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
165
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
R2#sh ip bgp
BGP table version is 5, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
166
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.0/24 192.168.21.10 2 01?
*> 4.4.4.0/24 192.168.21.10 20 01?
*> 192.168.14.0/24 192.168.21.10 2 01?
*> 192.168.202.0/24 0.0.0.0 0 32768 i
* 192.168.21.10 012i
167