OSPF on Junos and Cisco IOS XR
This post will be about OSPF protocol configuration on JUNOS and IOS XR.
I will not spend any time on OSPF ins and outs as this post is to show interworking between JUNOS and IOS XR.
This is the topology and the R1, R2 and R3 are running JUNOS and R7, R8 and R9 are running IOS XRv.
The configuration for each router is at the end of the post.
Considering that all routers were configured based on how the topology looks like, let’s check the OSPF interfaces, OSPF neighbors and OSPF databases on both Juniper and Cisco routers.
Check if the OSPF is running on the right interfaces on R1 and R7 and if they list each other as neighbors:
[edit] root@R1# run show ospf interface detail Interface State Area DR ID BDR ID Nbrs ge-0/0/0.0 DR 0.0.0.0 1.1.1.1 1.1.1.7 1 Type: LAN, Address: 10.10.115.1, Mask: 255.255.255.0, MTU: 1500, Cost: 1 DR addr: 10.10.115.1, BDR addr: 10.10.115.7, Priority: 128 Adj count: 1 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: None Protection type: None Topology default (ID 0) -> Cost: 1 lo0.0 DR 0.0.0.0 1.1.1.1 0.0.0.0 0 Type: LAN, Address: 1.1.1.1, Mask: 255.255.255.255, MTU: 65535, Cost: 0 DR addr: 1.1.1.1, Priority: 128 Adj count: 0 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: None Protection type: None Topology default (ID 0) -> Cost: 0 ge-0/0/1.0 DR 0.0.0.1 1.1.1.1 1.1.1.8 1 Type: LAN, Address: 10.10.114.1, Mask: 255.255.255.0, MTU: 1500, Cost: 1 DR addr: 10.10.114.1, BDR addr: 10.10.114.8, Priority: 128 Adj count: 1 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: None Protection type: None Topology default (ID 0) -> Cost: 1
RP/0/0/CPU0:R7#show ospf interface Tue Mar 4 16:02:55.386 UTC Interfaces for OSPF OSPF Loopback0 is up, line protocol is up Internet Address 1.1.1.7/32, Area 0 Process ID OSPF, Router ID 1.1.1.7, Network Type LOOPBACK, Cost: 1 Loopback interface is treated as a stub Host GigabitEthernet0/0/0/0 is up, line protocol is up Internet Address 10.10.115.7/24, Area 0 Process ID OSPF, Router ID 1.1.1.7, Network Type BROADCAST, Cost: 1 Transmit Delay is 1 sec, State BDR, Priority 1, MTU 1500, MaxPktSz 1500 Designated Router (ID) 1.1.1.1, Interface address 10.10.115.1 Backup Designated router (ID) 1.1.1.7, Interface address 10.10.115.7 Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 Index 3/3, flood queue length 0 Next 0(0)/0(0) Last flood scan length is 1, maximum is 5 Last flood scan time is 0 msec, maximum is 0 msec LS Ack List: current length 0, high water mark 26 Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 1.1.1.1 (Designated Router) Suppress hello for 0 neighbor(s) Multi-area interface Count is 0 GigabitEthernet0/0/0/1 is up, line protocol is up Internet Address 10.10.113.7/24, Area 2 Process ID OSPF, Router ID 1.1.1.7, Network Type BROADCAST, Cost: 1 Transmit Delay is 1 sec, State BDR, Priority 1, MTU 1500, MaxPktSz 1500 Designated Router (ID) 1.1.1.2, Interface address 10.10.113.2 Backup Designated router (ID) 1.1.1.7, Interface address 10.10.113.7 Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 Hello due in 00:00:07 Index 1/4, flood queue length 0 Next 0(0)/0(0) Last flood scan length is 4, maximum is 8 Last flood scan time is 0 msec, maximum is 0 msec LS Ack List: current length 0, high water mark 12 Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 1.1.1.2 (Designated Router) Suppress hello for 0 neighbor(s) Multi-area interface Count is 0 [edit] root@R1# run show ospf neighbor detail Address Interface State ID Pri Dead 10.10.115.7 ge-0/0/0.0 Full 1.1.1.7 1 38 Area 0.0.0.0, opt 0x52, DR 10.10.115.1, BDR 10.10.115.7 Up 2d 11:42:28, adjacent 2d 11:42:28 10.10.114.8 ge-0/0/1.0 Full 1.1.1.8 1 35 Area 0.0.0.1, opt 0x52, DR 10.10.114.1, BDR 10.10.114.8 Up 3d 08:23:07, adjacent 2d 11:42:21 [edit] root@R1#
RP/0/0/CPU0:R7#show ospf neighbor Tue Mar 4 16:17:30.826 UTC * Indicates MADJ interface Neighbors for OSPF OSPF Neighbor ID Pri State Dead Time Address Interface 1.1.1.1 128 FULL/DR 00:00:35 10.10.115.1 GigabitEthernet0/0/0/0 Neighbor is up for 2d12h 1.1.1.2 128 FULL/DR 00:00:38 10.10.113.2 GigabitEthernet0/0/0/1 Neighbor is up for 4d01h Total neighbor count: 2 RP/0/0/CPU0:R7#
Let’s check how the OSPF database looks on Juniper routers R3(internal router on area 2) and R1(ABR):
[edit] root@R3# run show ospf database OSPF database, Area 0.0.0.2 Type ID Adv Rtr Seq Age Opt Cksum Len Router 1.1.1.2 1.1.1.2 0x800000a1 776 0x22 0xb796 60 Router *1.1.1.3 1.1.1.3 0x8000009a 2886 0x22 0x511f 48 Router 1.1.1.7 1.1.1.7 0x800000b0 1735 0x22 0x96c3 36 Network *10.10.108.3 1.1.1.3 0x80000098 2891 0x22 0xfa13 32 Network 10.10.113.2 1.1.1.2 0x8000009b 776 0x22 0xaf9 32 Summary 1.1.1.1 1.1.1.7 0x80000093 721 0x22 0xfd9d 28 Summary 1.1.1.7 1.1.1.7 0x800000e4 1735 0x22 0x1f25 28 Summary 1.1.1.8 1.1.1.7 0x80000094 721 0x22 0xc9c7 28 Summary 1.1.1.9 1.1.1.7 0x80000001 1040 0x22 0xf032 28 Summary 10.10.114.0 1.1.1.7 0x80000094 721 0x22 0x4ec8 28 Summary 10.10.115.0 1.1.1.7 0x800000ed 721 0x22 0x8637 28 Summary 10.10.118.0 1.1.1.7 0x80000001 1109 0x22 0x5352 28 [edit] root@R3#
[edit] root@R1# run show ospf database OSPF database, Area 0.0.0.0 Type ID Adv Rtr Seq Age Opt Cksum Len Router *1.1.1.1 1.1.1.1 0x800000ee 1165 0x22 0xa0d 48 Router 1.1.1.7 1.1.1.7 0x800000b6 730 0x22 0xa194 48 Router 1.1.1.8 1.1.1.8 0x80000053 1* 0x22 0xf440 36 Network *10.10.115.1 1.1.1.1 0x8000007b 388 0x22 0x3aea 32 Summary 1.1.1.2 1.1.1.7 0x800000e5 1744 0x22 0x4ff8 28 Summary 1.1.1.3 1.1.1.7 0x800000e5 1744 0x22 0x4ff6 28 Summary *1.1.1.8 1.1.1.1 0x80000078 2853 0x22 0x1c98 28 Summary 1.1.1.8 1.1.1.8 0x8000004a 22* 0x22 0x4498 28 Summary *1.1.1.9 1.1.1.1 0x80000001 1049 0x22 0xb1f 28 Summary 1.1.1.9 1.1.1.8 0x80000003 1* 0x22 0xd24f 28 Summary 10.10.108.0 1.1.1.7 0x800000e5 1744 0x22 0xeddd 28 Summary 10.10.113.0 1.1.1.7 0x800000e6 1744 0x22 0xaa1c 28 Summary *10.10.114.0 1.1.1.1 0x800000bb 2623 0x22 0x1adc 28 Summary 10.10.114.0 1.1.1.8 0x8000004a 22* 0x22 0xd28e 28 Summary *10.10.118.0 1.1.1.1 0x80000002 1049 0x22 0x6b40 28 Summary 10.10.118.0 1.1.1.8 0x80000003 1* 0x22 0x356f 28 OSPF database, Area 0.0.0.1 Type ID Adv Rtr Seq Age Opt Cksum Len Router *1.1.1.1 1.1.1.1 0x800000a2 1165 0x22 0xcaae 36 Router 1.1.1.8 1.1.1.8 0x800000da 1050 0x22 0xdcfd 60 Router 1.1.1.9 1.1.1.9 0x80000002 1051 0x22 0x6b6a 48 Network *10.10.114.1 1.1.1.1 0x80000064 190 0x22 0x81ba 32 Network 10.10.118.9 1.1.1.9 0x80000001 1051 0x22 0xef93 32 Summary *1.1.1.1 1.1.1.1 0x8000007f 1469 0x22 0x4076 28 Summary *1.1.1.2 1.1.1.1 0x80000078 587 0x22 0x5862 28 Summary *1.1.1.3 1.1.1.1 0x80000077 1930 0x22 0x5a5f 28 Summary *1.1.1.7 1.1.1.1 0x80000077 1238 0x22 0x288e 28 Summary *10.10.108.0 1.1.1.1 0x80000077 1699 0x22 0xf846 28 Summary *10.10.113.0 1.1.1.1 0x80000077 1007 0x22 0xb783 28 Summary *10.10.115.0 1.1.1.1 0x80000087 785 0x22 0x77b2 28 [edit] root@R1#
Let’s confirm that Cisco routers R9(internal router on area 1) and R7(ABR) have consistent database with Juniper routers:
RP/0/0/CPU0:R9# show ospf database Tue Mar 4 16:05:57.175 UTC OSPF Router with ID (1.1.1.9) (Process ID OSPF) Router Link States (Area 1) Link ID ADV Router Age Seq# Checksum Link count 1.1.1.1 1.1.1.1 1180 0x800000a2 0x00caae 1 1.1.1.8 1.1.1.8 1063 0x800000da 0x00dcfd 3 1.1.1.9 1.1.1.9 1062 0x80000002 0x006b6a 2 Net Link States (Area 1) Link ID ADV Router Age Seq# Checksum 10.10.114.1 1.1.1.1 205 0x80000064 0x0081ba 10.10.118.9 1.1.1.9 1062 0x80000001 0x00ef93 Summary Net Link States (Area 1) Link ID ADV Router Age Seq# Checksum 1.1.1.1 1.1.1.1 1484 0x8000007f 0x004076 1.1.1.2 1.1.1.1 603 0x80000078 0x005862 1.1.1.3 1.1.1.1 1945 0x80000077 0x005a5f 1.1.1.7 1.1.1.1 1253 0x80000077 0x00288e 10.10.108.0 1.1.1.1 1714 0x80000077 0x00f846 10.10.113.0 1.1.1.1 1022 0x80000077 0x00b783 10.10.115.0 1.1.1.1 800 0x80000087 0x0077b2 RP/0/0/CPU0:R9#
RP/0/0/CPU0:R7#show ospf database Tue Mar 4 16:06:07.423 UTC OSPF Router with ID (1.1.1.7) (Process ID OSPF) Router Link States (Area 0) Link ID ADV Router Age Seq# Checksum Link count 1.1.1.1 1.1.1.1 1190 0x800000ee 0x000a0d 2 1.1.1.7 1.1.1.7 753 0x800000b6 0x00a194 2 1.1.1.8 1.1.1.8 2 (DNA) 0x80000053 0x00f440 1 Net Link States (Area 0) Link ID ADV Router Age Seq# Checksum 10.10.115.1 1.1.1.1 413 0x8000007b 0x003aea Summary Net Link States (Area 0) Link ID ADV Router Age Seq# Checksum 1.1.1.2 1.1.1.7 1767 0x800000e5 0x004ff8 1.1.1.3 1.1.1.7 1767 0x800000e5 0x004ff6 1.1.1.8 1.1.1.1 16 0x80000079 0x001a99 1.1.1.8 1.1.1.8 23 (DNA) 0x8000004a 0x004498 1.1.1.9 1.1.1.1 1073 0x80000001 0x000b1f 1.1.1.9 1.1.1.8 2 (DNA) 0x80000003 0x00d24f 10.10.108.0 1.1.1.7 1767 0x800000e5 0x00eddd 10.10.113.0 1.1.1.7 1767 0x800000e6 0x00aa1c 10.10.114.0 1.1.1.1 2647 0x800000bb 0x001adc 10.10.114.0 1.1.1.8 23 (DNA) 0x8000004a 0x00d28e 10.10.118.0 1.1.1.1 1073 0x80000002 0x006b40 10.10.118.0 1.1.1.8 2 (DNA) 0x80000003 0x00356f Router Link States (Area 2) Link ID ADV Router Age Seq# Checksum Link count 1.1.1.2 1.1.1.2 810 0x800000a1 0x00b796 3 1.1.1.3 1.1.1.3 2922 0x8000009a 0x00511f 2 1.1.1.7 1.1.1.7 1767 0x800000b0 0x0096c3 1 Net Link States (Area 2) Link ID ADV Router Age Seq# Checksum 10.10.108.3 1.1.1.3 2927 0x80000098 0x00fa13 10.10.113.2 1.1.1.2 810 0x8000009b 0x000af9 Summary Net Link States (Area 2) Link ID ADV Router Age Seq# Checksum 1.1.1.1 1.1.1.7 753 0x80000093 0x00fd9d 1.1.1.7 1.1.1.7 1767 0x800000e4 0x001f25 1.1.1.8 1.1.1.7 753 0x80000094 0x00c9c7 1.1.1.9 1.1.1.7 1072 0x80000001 0x00f032 10.10.114.0 1.1.1.7 753 0x80000094 0x004ec8 10.10.115.0 1.1.1.7 753 0x800000ed 0x008637 10.10.118.0 1.1.1.7 1142 0x80000001 0x005352 RP/0/0/CPU0:R7#
asdasdads
Now that the OSPF databases on R3 and R9 looks good, let’s check the routing tables on these two routers to make sure that all the OSPF routes are installed properly:
[edit] root@R3# run show route protocol ospf inet.0: 24 destinations, 24 routes (24 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 1.1.1.1/32 *[OSPF/10] 2d 11:55:38, metric 3 > to 10.10.108.2 via ge-0/0/1.0 1.1.1.2/32 *[OSPF/10] 5d 06:45:46, metric 1 > to 10.10.108.2 via ge-0/0/1.0 1.1.1.7/32 *[OSPF/10] 4d 01:50:40, metric 3 > to 10.10.108.2 via ge-0/0/1.0 1.1.1.8/32 *[OSPF/10] 2d 11:55:33, metric 5 > to 10.10.108.2 via ge-0/0/1.0 1.1.1.9/32 *[OSPF/10] 00:25:01, metric 6 > to 10.10.108.2 via ge-0/0/1.0 10.10.113.0/24 *[OSPF/10] 5d 06:45:46, metric 2 > to 10.10.108.2 via ge-0/0/1.0 10.10.114.0/24 *[OSPF/10] 2d 11:55:38, metric 4 > to 10.10.108.2 via ge-0/0/1.0 10.10.115.0/24 *[OSPF/10] 2d 11:55:38, metric 3 > to 10.10.108.2 via ge-0/0/1.0 10.10.118.0/24 *[OSPF/10] 00:26:10, metric 5 > to 10.10.108.2 via ge-0/0/1.0 224.0.0.5/32 *[OSPF/10] 5d 06:46:36, metric 1 MultiRecv [edit] root@R3#
RP/0/0/CPU0:R9#show route ospf Tue Mar 4 16:13:08.035 UTC O IA 1.1.1.1/32 [110/2] via 10.10.118.8, 00:24:53, GigabitEthernet0/0/0/1 O IA 1.1.1.2/32 [110/4] via 10.10.118.8, 00:24:53, GigabitEthernet0/0/0/1 O IA 1.1.1.3/32 [110/5] via 10.10.118.8, 00:24:53, GigabitEthernet0/0/0/1 O IA 1.1.1.7/32 [110/4] via 10.10.118.8, 00:24:53, GigabitEthernet0/0/0/1 O 1.1.1.8/32 [110/2] via 10.10.118.8, 00:24:53, GigabitEthernet0/0/0/1 O IA 10.10.108.0/24 [110/5] via 10.10.118.8, 00:24:53, GigabitEthernet0/0/0/1 O IA 10.10.113.0/24 [110/4] via 10.10.118.8, 00:24:53, GigabitEthernet0/0/0/1 O 10.10.114.0/24 [110/2] via 10.10.118.8, 00:24:53, GigabitEthernet0/0/0/1 O IA 10.10.115.0/24 [110/3] via 10.10.118.8, 00:24:53, GigabitEthernet0/0/0/1 RP/0/0/CPU0:R9#
There is end-to-end connectivity between R3 and R9:
[edit] root@R3# run ping 1.1.1.9 source 1.1.1.3 count 5 PING 1.1.1.9 (1.1.1.9): 56 data bytes 64 bytes from 1.1.1.9: icmp_seq=0 ttl=251 time=8.548 ms 64 bytes from 1.1.1.9: icmp_seq=1 ttl=251 time=8.261 ms 64 bytes from 1.1.1.9: icmp_seq=2 ttl=251 time=9.246 ms 64 bytes from 1.1.1.9: icmp_seq=3 ttl=251 time=8.101 ms 64 bytes from 1.1.1.9: icmp_seq=4 ttl=251 time=8.918 ms --- 1.1.1.9 ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max/stddev = 8.101/8.615/9.246/0.420 ms [edit] root@R3#
This is the configuration from all routers used for this topology:
[edit] root@R1# show interfaces ge-0/0/0 { unit 0 { family inet { address 10.10.115.1/24; } } } ge-0/0/1 { unit 0 { family inet { address 10.10.114.1/24; } } } fxp0 { unit 0 { family inet { address 10.92.26.69/20; } } } lo0 { unit 0 { family inet { address 1.1.1.1/32; } } } [edit] root@R1# show protocols ospf { area 0.0.0.0 { interface lo0.0; interface ge-0/0/0.0; } area 0.0.0.1 { interface ge-0/0/1.0; } } lldp { interface all; } [edit] root@R1#
[edit] root@R2# show interfaces ge-0/0/0 { unit 0 { family inet { address 10.10.113.2/24; } } } ge-0/0/3 { unit 0 { family inet { address 10.10.108.2/24; } } } fxp0 { unit 0 { family inet { address 10.92.26.68/20; } } } lo0 { unit 0 { family inet { address 1.1.1.2/32; } } } [edit] root@R2# show protocols ospf { area 0.0.0.2 { interface lo0.0; interface ge-0/0/0.0; interface ge-0/0/3.0; } } lldp { interface all; } [edit] root@R2#
[edit] root@R3# show interfaces ge-0/0/1 { unit 0 { family inet { address 10.10.108.3/24; } } } fxp0 { unit 0 { family inet { address 10.92.26.67/20; } } } lo0 { unit 0 { family inet { address 1.1.1.3/32; } } } [edit] root@R3# show protocols ospf { area 0.0.0.2 { interface lo0.0; interface ge-0/0/1.0; } } lldp { interface all; } [edit] root@R3#
RP/0/0/CPU0:R7#show running-config Tue Mar 4 15:55:26.577 UTC Building configuration... interface Loopback0 ipv4 address 1.1.1.7 255.255.255.255 ! interface MgmtEth0/0/CPU0/0 ipv4 address 10.92.27.73 255.255.240.0 ! interface GigabitEthernet0/0/0/0 ipv4 address 10.10.115.7 255.255.255.0 ! interface GigabitEthernet0/0/0/1 ipv4 address 10.10.113.7 255.255.255.0 ! router ospf OSPF router-id 1.1.1.7 area 0 interface Loopback0 ! interface GigabitEthernet0/0/0/0 ! ! area 2 interface GigabitEthernet0/0/0/1 ! ! ! RP/0/0/CPU0:R7#
RP/0/0/CPU0:R8#show running-config Tue Mar 4 16:16:11.197 UTC Building configuration... interface Loopback0 ipv4 address 1.1.1.8 255.255.255.255 ! interface MgmtEth0/0/CPU0/0 ipv4 address 10.92.28.5 255.255.240.0 ! interface GigabitEthernet0/0/0/1 ipv4 address 10.10.114.8 255.255.255.0 ! interface GigabitEthernet0/0/0/3 ipv4 address 10.10.118.8 255.255.255.0 ! router ospf OSPF router-id 1.1.1.8 area 1 interface Loopback0 ! interface GigabitEthernet0/0/0/1 ! interface GigabitEthernet0/0/0/3 ! ! ! RP/0/0/CPU0:R8#
RP/0/0/CPU0:R9#show running-config Tue Mar 4 15:57:38.929 UTC Building configuration... interface Loopback0 ipv4 address 1.1.1.9 255.255.255.255 ! interface MgmtEth0/0/CPU0/0 ipv4 address 10.92.28.4 255.255.240.0 ! interface GigabitEthernet0/0/0/1 ipv4 address 10.10.118.9 255.255.255.0 ! router ospf OSPF router-id 1.1.1.9 area 1 interface Loopback0 ! interface GigabitEthernet0/0/0/1 ! ! ! RP/0/0/CPU0:R9#
Paris ARAU
Latest posts by Paris ARAU (see all)
- Junos Fusion – Part IV – Satellite policies and uplink failure detection - 30 July 2018
- Junos Fusion – Part III – Satellite commands and traffic forwarding - 16 July 2018
- Junos Fusion – Part II – Configuration, Administration and Operation - 16 July 2018
- Junos Fusion – Part I – Overview, Components, Ports and Software - 11 July 2018
- Vagrant – Part IV – Network topology using Juniper and Cumulus - 26 April 2018
Comments
So empty here ... leave a comment!