In this article will demonstrate how to configure juniper router for ospf routing protocol, the configuration will include the basic configuration of the juniper routers and the configuration of ospf using different areas and how to do redistribution. this article doesn't explain why we do configuration
OSPF Routing/ SSH/Traceroute/Traceoption
root@R1#
show | display set
set
version 14.1R4.8
set
system host-name R1
set
system root-authentication encrypted-password
"$1$Dx3GKkfb$fKfretbcNxJJsFJq0SOx.1"
set
system syslog user * any emergency
set
system syslog file messages any notice
set
system syslog file messages authorization info
set
system syslog file interactive-commands interactive-commands any
set
interfaces ge-0/0/0 unit 0 family inet address 172.18.1.1/24
set
interfaces ge-0/0/1 unit 0 family inet address 172.26.1.1/30
set
interfaces lo0 unit 0 family inet address 192.168.1.1/32
set
protocols ospf area 0.0.0.1 interface ge-0/0/1.0
root@R2#
show | display set
set
version 14.1R4.8
set
system host-name R2
set
system root-authentication encrypted-password
"$1$ian0bVIX$JsRbd0Gt0T8Jm4ekWowMW/"
set
system syslog user * any emergency
set
system syslog file messages any notice
set
system syslog file messages authorization info
set
system syslog file interactive-commands interactive-commands any
set
interfaces ge-0/0/0 unit 0 family inet address 2.2.2.2/24
set
interfaces ge-0/0/1 unit 0 family inet address 172.26.2.1/30
set
interfaces ge-0/0/2 unit 0 family inet address 172.26.3.1/30
set
interfaces ge-0/0/3 unit 0 family inet address 172.26.1.2/30
set
interfaces lo0 unit 0 family inet address 192.168.1.2/32
set
routing-options traceoptions file xyx.txt
set
routing-options traceoptions flag all
set
protocols ospf area 0.0.0.0 interface ge-0/0/1.0
set
protocols ospf area 0.0.0.0 interface ge-0/0/2.0 metric 100
set
protocols ospf area 0.0.0.0 interface ge-0/0/0.0
set
protocols ospf area 0.0.0.1 interface ge-0/0/3.0
root@R3#
show | display set
set
version 14.1R4.8
set
system host-name R3
set
system root-authentication encrypted-password "$1$HyCIbfp.$MQVXTjy99H9PTED4frupe0"
set
system syslog user * any emergency
set
system syslog file messages any notice
set
system syslog file messages authorization info
set
system syslog file interactive-commands interactive-commands any
set
interfaces ge-0/0/0 unit 0 family inet address 3.3.3.3/24
set
interfaces ge-0/0/1 unit 0 family inet address 172.26.3.2/30
set
interfaces ge-0/0/2 unit 0 family inet address 172.26.2.2/30
set
interfaces ge-0/0/3 unit 0 family inet address 172.26.4.1/30
set
interfaces lo0 unit 0 family inet address 192.168.1.3/32
set
protocols ospf area 0.0.0.0 interface ge-0/0/2.0
set
protocols ospf area 0.0.0.0 interface ge-0/0/1.0 metric 100
set
protocols ospf area 0.0.0.0 interface ge-0/0/0.0
set
protocols ospf area 0.0.0.2 interface ge-0/0/3.0
root@R4#
show | display set
set
version 14.1R4.8
set
system host-name R4
set
system root-authentication encrypted-password
"$1$cJFfMoUG$8IAs9ZJ1ZPIt7ma.MWfBU1"
set
system syslog user * any emergency
set
system syslog file messages any notice
set
system syslog file messages authorization info
set
system syslog file interactive-commands interactive-commands any
set
interfaces ge-0/0/1 unit 0 family inet address 172.26.4.2/30
set
interfaces lo0 unit 0 family inet address 192.168.1.4/32
set
protocols ospf area 0.0.0.2 interface ge-0/0/1.0
root@R1#
run show route
inet.0:
11 destinations, 11 routes (11 active, 0 holddown, 0 hidden)
+ =
Active Route, - = Last Active, * = Both
2.2.2.0/24 *[OSPF/10] 00:23:54, metric 2
> to 172.26.1.2 via
ge-0/0/1.0
3.3.3.0/24 *[OSPF/10] 00:23:54, metric 3
> to 172.26.1.2 via
ge-0/0/1.0
172.18.1.0/24 *[Direct/0] 00:25:46
> via ge-0/0/0.0
172.18.1.1/32 *[Local/0] 00:25:46
Local via ge-0/0/0.0
172.26.1.0/30 *[Direct/0] 00:25:46
> via ge-0/0/1.0
172.26.1.1/32 *[Local/0] 00:25:46
Local via ge-0/0/1.0
172.26.2.0/30 *[OSPF/10] 00:23:54, metric 2
> to 172.26.1.2 via
ge-0/0/1.0
172.26.3.0/30 *[OSPF/10] 00:23:54, metric 101
> to 172.26.1.2 via
ge-0/0/1.0
172.26.4.0/30 *[OSPF/10] 00:22:42, metric 3
> to 172.26.1.2 via
ge-0/0/1.0
192.168.1.1/32 *[Direct/0] 00:25:46
> via lo0.0
224.0.0.5/32 *[OSPF/10] 00:24:04, metric 1
MultiRecv
root@R2#
run show route
inet.0:
12 destinations, 12 routes (12 active, 0 holddown, 0 hidden)
+ =
Active Route, - = Last Active, * = Both
2.2.2.0/24 *[Direct/0] 00:41:35
> via ge-0/0/0.0
2.2.2.2/32 *[Local/0] 00:41:37
Local via ge-0/0/0.0
3.3.3.0/24 *[OSPF/10] 00:34:30, metric 2
> to 172.26.2.2 via
ge-0/0/1.0
172.26.1.0/30 *[Direct/0] 00:31:09
> via ge-0/0/3.0
172.26.1.2/32 *[Local/0] 00:31:09
Local via ge-0/0/3.0
172.26.2.0/30 *[Direct/0] 00:41:35
> via ge-0/0/1.0
172.26.2.1/32 *[Local/0] 00:41:37
Local via ge-0/0/1.0
172.26.3.0/30 *[Direct/0] 00:41:35
> via ge-0/0/2.0
172.26.3.1/32 *[Local/0] 00:41:37
Local via ge-0/0/2.0
172.26.4.0/30 *[OSPF/10] 00:23:14, metric 2
> to 172.26.2.2 via
ge-0/0/1.0
192.168.1.2/32 *[Direct/0] 00:44:04
> via lo0.0
224.0.0.5/32 *[OSPF/10] 00:44:13, metric 1
MultiRecv
root@R3#
run show route
inet.0:
12 destinations, 12 routes (12 active, 0 holddown, 0 hidden)
+ =
Active Route, - = Last Active, * = Both
2.2.2.0/24 *[OSPF/10] 00:34:51, metric 2
> to 172.26.2.1 via
ge-0/0/2.0
3.3.3.0/24 *[Direct/0] 00:35:05
> via ge-0/0/0.0
3.3.3.3/32 *[Local/0] 00:35:07
Local via ge-0/0/0.0
172.26.1.0/30 *[OSPF/10] 00:31:29, metric 2
> to 172.26.2.1 via
ge-0/0/2.0
172.26.2.0/30 *[Direct/0] 00:35:05
> via ge-0/0/2.0
172.26.2.2/32 *[Local/0] 00:35:07
Local via ge-0/0/2.0
172.26.3.0/30 *[Direct/0] 00:35:05
> via ge-0/0/1.0
172.26.3.2/32 *[Local/0] 00:35:07
Local via ge-0/0/1.0
172.26.4.0/30 *[Direct/0] 00:23:34
> via ge-0/0/3.0
172.26.4.1/32 *[Local/0] 00:23:34
Local via ge-0/0/3.0
192.168.1.3/32 *[Direct/0] 00:37:32
> via lo0.0
224.0.0.5/32 *[OSPF/10] 00:37:40, metric 1
MultiRecv
root@R4#
run show route
inet.0:
9 destinations, 9 routes (9 active, 0 holddown, 0 hidden)
+ =
Active Route, - = Last Active, * = Both
2.2.2.0/24 *[OSPF/10] 00:16:11, metric 3
> to 172.26.4.1 via ge-0/0/1.0
3.3.3.0/24 *[OSPF/10] 00:16:11, metric 2
> to 172.26.4.1 via
ge-0/0/1.0
172.26.1.0/30 *[OSPF/10] 00:16:11, metric 3
> to 172.26.4.1 via
ge-0/0/1.0
172.26.2.0/30 *[OSPF/10] 00:16:11, metric 2
> to 172.26.4.1 via
ge-0/0/1.0
172.26.3.0/30 *[OSPF/10] 00:16:11, metric 101
> to 172.26.4.1 via
ge-0/0/1.0
172.26.4.0/30 *[Direct/0] 00:16:56
> via ge-0/0/1.0
172.26.4.2/32 *[Local/0] 00:16:56
Local via ge-0/0/1.0
192.168.1.4/32 *[Direct/0] 00:16:56
> via lo0.0
224.0.0.5/32 *[OSPF/10] 00:16:57, metric 1
MultiRecv
root@R1#
run show ospf database
OSPF database, Area 0.0.0.1
Type
ID Adv Rtr Seq Age
Opt Cksum Len
Router *192.168.1.1 192.168.1.1 0x80000002 1666
0x22 0x7058 36
Router 192.168.1.2 192.168.1.2 0x80000004 1672
0x22 0x6d55 36
Network 172.26.1.2 192.168.1.2 0x80000001 1672
0x22 0x44ea 32
Summary 2.2.2.0 192.168.1.2 0x80000002 486
0x22 0x2a9e 28
Summary 3.3.3.0 192.168.1.2 0x80000002 757
0x22 0x10b4 28
Summary 172.26.2.0 192.168.1.2 0x80000002 216
0x22 0x4cbc 28
Summary 172.26.3.0 192.168.1.2 0x80000001 2066
0x22 0x2580 28
Summary 172.26.4.0 192.168.1.2 0x80000001 1590
0x22 0x42c4 28
root@R4#
run show ospf database
OSPF database, Area 0.0.0.2
Type
ID Adv Rtr Seq Age
Opt Cksum Len
Router 192.168.1.3 192.168.1.3 0x80000004 1166
0x22 0x8735 36
Router *192.168.1.4 192.168.1.4 0x80000003 1160 0x22
0x8437 36
Network 172.26.4.1 192.168.1.3 0x80000001 1166
0x22 0x5bcc 32
Summary 2.2.2.0 192.168.1.3 0x80000002 734
0x22 0x2e98 28
Summary 3.3.3.0 192.168.1.3 0x80000002 77
0x22 0xffc4 28
Summary 172.26.1.0 192.168.1.3 0x80000002 405
0x22 0x5bac 28
Summary 172.26.2.0 192.168.1.3 0x80000001 1534
0x22 0x48c0 28
Summary 172.26.3.0 192.168.1.3 0x80000001 1534
0x22 0x1f85 28
root@R2#
run show ospf database
OSPF
database, Area 0.0.0.0
Type
ID Adv Rtr Seq Age
Opt Cksum Len
Router *192.168.1.2 192.168.1.2 0x80000007 1118
0x22 0x752a 60
Router 192.168.1.3 192.168.1.3 0x80000006 1254
0x22 0xfe9a 60
Network
*172.26.2.1 192.168.1.2 0x80000002 1389
0x22 0x5dce 32
Network
*172.26.3.1 192.168.1.2 0x80000002 1714
0x22 0x52d8 32
Summary
*172.26.1.0 192.168.1.2 0x80000003 1762
0x22 0x55b3 28
Summary 172.26.4.0 192.168.1.3 0x80000003 1313
0x22 0x2ed6 28
OSPF database, Area 0.0.0.1
Type
ID Adv Rtr Seq Age
Opt Cksum Len
Router 192.168.1.1 192.168.1.1 0x80000002 1758
0x22 0x7058 36
Router *192.168.1.2 192.168.1.2 0x80000004 1762
0x22 0x6d55 36
Network
*172.26.1.2 192.168.1.2 0x80000001 1762
0x22 0x44ea 32
Summary
*2.2.2.0 192.168.1.2 0x80000002 576
0x22 0x2a9e 28
Summary
*3.3.3.0 192.168.1.2 0x80000002 847
0x22 0x10b4 28
Summary
*172.26.2.0 192.168.1.2 0x80000002 305
0x22 0x4cbc 28
Summary
*172.26.3.0 192.168.1.2 0x80000002 35
0x22 0x2381 28
Summary
*172.26.4.0 192.168.1.2 0x80000001 1680 0x22
0x42c4 28
root@R3#
run show ospf database
OSPF database, Area 0.0.0.0
Type
ID Adv Rtr Seq Age
Opt Cksum Len
Router 192.168.1.2 192.168.1.2 0x80000007 1137
0x22 0x752a 60
Router *192.168.1.3 192.168.1.3 0x80000006 1271
0x22 0xfe9a 60
Network 172.26.2.1 192.168.1.2 0x80000002 1408
0x22 0x5dce 32
Network 172.26.3.1 192.168.1.2 0x80000002 1733
0x22 0x52d8 32
Summary 172.26.1.0 192.168.1.2 0x80000003 1781
0x22 0x55b3 28
Summary
*172.26.4.0 192.168.1.3 0x80000003 1330
0x22 0x2ed6 28
OSPF database, Area 0.0.0.2
Type
ID Adv Rtr Seq Age
Opt Cksum Len
Router *192.168.1.3 192.168.1.3 0x80000004
1330 0x22 0x8735 36
Router 192.168.1.4 192.168.1.4 0x80000003 1326
0x22 0x8437 36
Network
*172.26.4.1 192.168.1.3 0x80000001 1330
0x22 0x5bcc 32
Summary
*2.2.2.0 192.168.1.3 0x80000002 898
0x22 0x2e98 28
Summary
*3.3.3.0 192.168.1.3 0x80000002 241
0x22 0xffc4 28
Summary
*172.26.1.0 192.168.1.3 0x80000002 569
0x22 0x5bac 28
Summary
*172.26.2.0 192.168.1.3 0x80000001 1698
0x22 0x48c0 28
Summary
*172.26.3.0 192.168.1.3 0x80000001 1698
0x22 0x1f85 28
root@R2#
run show ospf overview
Instance:
master
Router ID: 192.168.1.2
Route table index: 0
Area border router
LSA refresh time: 50 minutes
Area: 0.0.0.0
Stub type: Not Stub
Authentication Type: None
Area border routers: 1, AS boundary
routers: 0
Neighbors
Up (in full state): 2
Area: 0.0.0.1
Stub type: Not Stub
Authentication Type: None
Area border routers: 0, AS boundary
routers: 0
Neighbors
Up (in full state): 1
Topology: default (ID 0)
Prefix export count: 0
Full SPF runs: 13
SPF delay: 0.200000 sec, SPF holddown: 5
sec, SPF rapid runs: 3
Backup SPF: Not Needed
root@R2#
run show ospf neighbor
Address Interface State ID Pri Dead
172.26.2.2 ge-0/0/1.0 Full 192.168.1.3 128
33
172.26.3.2 ge-0/0/2.0 Full 192.168.1.3 128
34
172.26.1.1 ge-0/0/3.0 Full 192.168.1.1 128
38
root@R1#
run ping 3.3.3.3
PING
3.3.3.3 (3.3.3.3): 56 data bytes
64
bytes from 3.3.3.3: icmp_seq=0 ttl=63 time=8.489 ms
64
bytes from 3.3.3.3: icmp_seq=1 ttl=63 time=15.055 ms
64
bytes from 3.3.3.3: icmp_seq=2 ttl=63 time=13.536 ms
^C
---
3.3.3.3 ping statistics ---
3
packets transmitted, 3 packets received, 0% packet loss
round-trip
min/avg/max/stddev = 8.489/12.360/15.055/2.807 ms
root@R1#
set system services ssh
root@R2#
set system services ssh
root@R3#
set system services ssh
root@R4#
set system services ssh
root@R1>
ssh 172.26.4.2
The
authenticity of host '172.26.4.2 (172.26.4.2)' can't be established.
ECDSA
key fingerprint is f4:20:7f:81:4f:1b:ee:36:3b:19:92:60:e4:96:b0:fe.
Are
you sure you want to continue connecting (yes/no)? yes
Warning:
Permanently added '172.26.4.2' (ECDSA) to the list of known hosts.
Password:
---
JUNOS 14.1R4.8 built 2015-01-28 03:38:12 UTC
root@R4%
root@R1>
traceroute 172.26.4.2
traceroute
to 172.26.4.2 (172.26.4.2), 30 hops max, 40 byte packets
1
172.26.1.2 (172.26.1.2) 6.160
ms 5.318 ms 4.966 ms
2
172.26.2.2 (172.26.2.2) 23.143
ms 10.251 ms 6.887 ms
3
172.26.4.2 (172.26.4.2) 22.726
ms 10.086 ms 10.131 ms
root@R2#
run traceroute 172.26.4.2
traceroute
to 172.26.4.2 (172.26.4.2), 30 hops max, 40 byte packets
1
172.26.2.2 (172.26.2.2) 3.905
ms 4.651 ms 5.215 ms
2
172.26.4.2 (172.26.4.2) 10.178
ms 6.783 ms 7.901 ms
2-
Redistribution
root@R1#
set policy-options policy-statement direct-to-ospf term 1 from protocol direct
root@R1#
set policy-options policy-statement direct-to-ospf term 1 from route-filter
172.18.1.0/24 exact
root@R1#
set policy-options policy-statement direct-to-ospf term 1 then accept
root@R1#
run show ospf database
OSPF database, Area 0.0.0.1
Type
ID Adv Rtr Seq Age
Opt Cksum Len
Router *192.168.1.1 192.168.1.1 0x80000007 126
0x22 0x6c55 36
Router 192.168.1.2 192.168.1.2 0x8000000a 604
0x22 0x615b 36
Network 172.26.1.2 192.168.1.2 0x80000005
298 0x22 0x3cee 32
Summary 2.2.2.0 192.168.1.2 0x80000005 911
0x22 0x24a1 28
Summary 3.3.3.0 192.168.1.2 0x80000006 1460
0x22 0x8b8 28
Summary 172.26.2.0 192.168.1.2 0x80000008 1460
0x22 0x40c2 28
Summary 172.26.3.0 192.168.1.2 0x80000008 1460
0x22 0x1787 28
Summary 172.26.4.0 192.168.1.2 0x80000005 1460
0x22 0x3ac8 28
OSPF AS SCOPE link state database
Type
ID Adv Rtr Seq
Age Opt
Cksum Len
Extern *172.18.1.0 192.168.1.1 0x80000001 126
0x22 0x3f48 36
root@R2#
run show route
inet.0:
13 destinations, 13 routes (13 active, 0 holddown, 0 hidden)
+ =
Active Route, - = Last Active, * = Both
2.2.2.0/24 *[Direct/0] 01:28:28
> via ge-0/0/0.0
2.2.2.2/32 *[Local/0] 01:28:30
Local via ge-0/0/0.0
3.3.3.0/24 *[OSPF/10] 00:25:09, metric 2
> to 172.26.2.2 via
ge-0/0/1.0
172.18.1.0/24 *[OSPF/150] 00:02:55, metric 0, tag 0
> to 172.26.1.1 via
ge-0/0/3.0
172.26.1.0/30 *[Direct/0] 01:18:02
> via ge-0/0/3.0
172.26.1.2/32 *[Local/0] 01:18:02
Local via ge-0/0/3.0
172.26.2.0/30 *[Direct/0] 01:28:28
> via ge-0/0/1.0
172.26.2.1/32 *[Local/0] 01:28:30
Local via ge-0/0/1.0
172.26.3.0/30 *[Direct/0] 01:28:28
> via ge-0/0/2.0
172.26.3.1/32 *[Local/0] 01:28:30
Local via ge-0/0/2.0
172.26.4.0/30 *[OSPF/10] 00:25:09, metric 2
> to 172.26.2.2 via
ge-0/0/1.0
192.168.1.2/32 *[Direct/0] 00:25:10
> via lo0.0
224.0.0.5/32 *[OSPF/10] 01:31:06, metric 1
MultiRecv
root@R3#
commit
commit
complete
[edit]
root@R3#
run show route
inet.0:
13 destinations, 13 routes (13 active, 0 holddown, 0 hidden)
+ =
Active Route, - = Last Active, * = Both
2.2.2.0/24 *[OSPF/10] 00:26:26, metric 2
> to 172.26.2.1 via
ge-0/0/2.0
3.3.3.0/24 *[Direct/0] 01:22:54
> via ge-0/0/0.0
3.3.3.3/32 *[Local/0] 01:22:56
Local via ge-0/0/0.0
172.18.1.0/24 *[OSPF/150] 00:04:12, metric 0, tag 0
> to 172.26.2.1 via
ge-0/0/2.0
172.26.1.0/30 *[OSPF/10] 00:26:26, metric 2
> to 172.26.2.1 via
ge-0/0/2.0
172.26.2.0/30 *[Direct/0] 01:22:54
> via ge-0/0/2.0
172.26.2.2/32 *[Local/0] 01:22:56
Local via ge-0/0/2.0
172.26.3.0/30 *[Direct/0] 01:22:54
> via ge-0/0/1.0
172.26.3.2/32 *[Local/0] 01:22:56
Local via ge-0/0/1.0
172.26.4.0/30 *[Direct/0] 01:11:23
> via ge-0/0/3.0
172.26.4.1/32 *[Local/0] 01:11:23
Local via ge-0/0/3.0
192.168.1.3/32 *[Direct/0] 00:26:46
> via lo0.0
224.0.0.5/32 *[OSPF/10] 01:25:29, metric 1
MultiRecv
root@R4#
run show route
inet.0:
10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
+ =
Active Route, - = Last Active, * = Both
2.2.2.0/24 *[OSPF/10] 00:29:02, metric 3
> to 172.26.4.1 via ge-0/0/1.0
3.3.3.0/24 *[OSPF/10] 00:29:02, metric 2
> to 172.26.4.1 via
ge-0/0/1.0
172.18.1.0/24 *[OSPF/150] 00:06:33, metric 0, tag 0
> to 172.26.4.1 via
ge-0/0/1.0
172.26.1.0/30 *[OSPF/10] 00:29:02, metric 3
> to 172.26.4.1 via
ge-0/0/1.0
172.26.2.0/30 *[OSPF/10] 00:29:02, metric 2
> to 172.26.4.1 via
ge-0/0/1.0
172.26.3.0/30 *[OSPF/10] 00:29:02, metric 101
> to 172.26.4.1 via ge-0/0/1.0
172.26.4.0/30 *[Direct/0] 01:08:17
> via ge-0/0/1.0
172.26.4.2/32 *[Local/0] 01:08:17
Local via ge-0/0/1.0
192.168.1.4/32 *[Direct/0] 01:08:17
> via lo0.0
224.0.0.5/32 *[OSPF/10] 01:08:18, metric 1
MultiRecv
root@R4#
run traceroute 172.18.1.1
traceroute
to 172.18.1.1 (172.18.1.1), 30 hops max, 40 byte packets
1
172.26.4.1 (172.26.4.1) 13.548
ms 7.236 ms 4.322 ms
2 172.26.2.1 (172.26.2.1) 12.274 ms
8.862 ms 12.483 ms
3
172.18.1.1 (172.18.1.1) 195.357
ms 81.074 ms 163.249 ms
root@R2#
run show ospf database
OSPF database, Area 0.0.0.0
Type
ID Adv Rtr Seq Age
Opt Cksum Len
Router *192.168.1.2 192.168.1.2 0x80000011 342
0x22 0x99f9 60
Router 192.168.1.3 192.168.1.3 0x8000000f 282
0x22 0x2569 60
Network 172.26.2.2 192.168.1.3 0x80000005 1811
0x22 0x43e3 32
Network 172.26.3.2 192.168.1.3 0x80000005 1811
0x22 0x38ed 32
Summary
*172.26.1.0 192.168.1.2 0x80000008 1810
0x22 0x4bb8 28
Summary 172.26.4.0 192.168.1.3 0x80000008 576
0x22 0x24db 28
ASBRSum
*192.168.1.1 192.168.1.2 0x80000001 476
0x22 0x9fc3 28
OSPF database, Area 0.0.0.1
Type
ID Adv Rtr Seq Age
Opt Cksum Len
Router 192.168.1.1 192.168.1.1 0x80000007 478
0x22 0x6c55 36
Router *192.168.1.2 192.168.1.2 0x8000000a 954
0x22 0x615b 36
Network
*172.26.1.2 192.168.1.2 0x80000005 648
0x22 0x3cee 32
Summary
*2.2.2.0 192.168.1.2 0x80000005 1261
0x22 0x24a1 28
Summary
*3.3.3.0 192.168.1.2 0x80000007 35 0x22
0x6b9 28
Summary
*172.26.2.0 192.168.1.2 0x80000008 1810
0x22 0x40c2 28
Summary
*172.26.3.0 192.168.1.2 0x80000008 1810
0x22 0x1787 28
Summary
*172.26.4.0 192.168.1.2 0x80000005 1810
0x22 0x3ac8 28
OSPF AS SCOPE link state database
Type
ID Adv Rtr Seq Age
Opt Cksum Len
Extern 172.18.1.0 192.168.1.1 0x80000001 478
0x22 0x3f48 36
root@R3#
run show ospf database
OSPF database, Area 0.0.0.0
Type ID Adv Rtr Seq Age
Opt Cksum Len
Router 192.168.1.2 192.168.1.2 0x80000011 398
0x22 0x99f9 60
Router *192.168.1.3 192.168.1.3 0x8000000f 337
0x22 0x2569 60
Network
*172.26.2.2 192.168.1.3 0x80000005 1865
0x22 0x43e3 32
Network
*172.26.3.2 192.168.1.3 0x80000006 42
0x22 0x36ee 32
Summary 172.26.1.0 192.168.1.2 0x80000008 1866
0x22 0x4bb8 28
Summary
*172.26.4.0 192.168.1.3 0x80000008 631
0x22 0x24db 28
ASBRSum 192.168.1.1 192.168.1.2 0x80000001 533
0x22 0x9fc3 28
OSPF database, Area 0.0.0.2
Type
ID Adv Rtr Seq Age
Opt Cksum Len
Router *192.168.1.3 192.168.1.3 0x8000000a 1220
0x22 0x8530 36
Router 192.168.1.4 192.168.1.4 0x80000008 1887
0x22 0x8431 36
Network 172.26.4.2 192.168.1.4 0x80000003 1887
0x22 0x43e0 32
Summary
*2.2.2.0 192.168.1.3 0x80000006 1865
0x22 0x269c 28
Summary
*3.3.3.0 192.168.1.3 0x80000005 1514
0x22 0xf9c7 28
Summary
*172.26.1.0 192.168.1.3 0x80000006 1865
0x22 0x53b0 28
Summary
*172.26.2.0 192.168.1.3 0x80000009 1865
0x22 0x38c8 28
Summary
*172.26.3.0 192.168.1.3 0x80000008 925
0x22 0x118c 28
ASBRSum
*192.168.1.1 192.168.1.3 0x80000001 531
0x22 0xa3bd 28
OSPF AS SCOPE link state database
Type
ID Adv Rtr Seq Age
Opt Cksum Len
Extern 172.18.1.0 192.168.1.1 0x80000001 534
0x22 0x3f48 36
root@R4#
run show ospf database
OSPF database, Area 0.0.0.2
Type
ID Adv Rtr Seq Age
Opt Cksum Len
Router 192.168.1.3 192.168.1.3 0x8000000a 1139
0x22 0x8530 36
Router *192.168.1.4 192.168.1.4 0x80000008 1804
0x22 0x8431 36
Network
*172.26.4.2 192.168.1.4 0x80000003 1804
0x22 0x43e0 32
Summary 2.2.2.0 192.168.1.3 0x80000006 1784
0x22 0x269c 28
Summary 3.3.3.0 192.168.1.3 0x80000005 1433
0x22 0xf9c7 28
Summary 172.26.1.0 192.168.1.3 0x80000006 1784
0x22 0x53b0 28
Summary 172.26.2.0 192.168.1.3 0x80000009 1784
0x22 0x38c8 28
Summary 172.26.3.0 192.168.1.3 0x80000008 844
0x22 0x118c 28
ASBRSum 192.168.1.1 192.168.1.3 0x80000001 450
0x22 0xa3bd 28
OSPF AS SCOPE link state database
Type
ID Adv Rtr Seq Age
Opt Cksum Len
Extern 172.18.1.0 192.168.1.1 0x80000001 453
0x22 0x3f48 36
root@R2#
run show ospf neighbor detail
Address Interface State ID Pri Dead
172.26.2.2 ge-0/0/1.0 Full 192.168.1.3 128
37
Area 0.0.0.0, opt 0x52, DR 172.26.2.2, BDR
172.26.2.1
Up 00:37:12, adjacent 00:37:12
172.26.3.2 ge-0/0/2.0 Full 192.168.1.3 128
30
Area 0.0.0.0, opt 0x52, DR 172.26.3.2, BDR
172.26.3.1
Up 00:37:12, adjacent 00:37:12
172.26.1.1 ge-0/0/3.0 Full 192.168.1.1 128
34
Area 0.0.0.1, opt 0x52, DR 172.26.1.2, BDR
172.26.1.1
Up 00:37:13, adjacent 00:37:12
What
Configuration option allows R1 to inject the 172.18.1.0/24 prefix into ospf as
an internal ospf route while prohibiting adjacency formation
root@R1#
set protocols ospf area 1 interface ge-0/0/0.0 passive
root@R2#
run show route
inet.0:
13 destinations, 13 routes (13 active, 0 holddown, 0 hidden)
+ =
Active Route, - = Last Active, * = Both
2.2.2.0/24 *[Direct/0] 01:48:06
> via ge-0/0/0.0
2.2.2.2/32 *[Local/0] 01:48:08
Local via ge-0/0/0.0
3.3.3.0/24 *[OSPF/10] 00:44:47, metric 2
> to 172.26.2.2 via
ge-0/0/1.0
172.18.1.0/24 *[OSPF/10] 00:00:53, metric 2
> to 172.26.1.1 via
ge-0/0/3.0
172.26.1.0/30 *[Direct/0] 01:37:40
> via ge-0/0/3.0
172.26.1.2/32 *[Local/0] 01:37:40
Local via ge-0/0/3.0
172.26.2.0/30 *[Direct/0] 01:48:06
> via ge-0/0/1.0
172.26.2.1/32 *[Local/0] 01:48:08
Local via ge-0/0/1.0
172.26.3.0/30 *[Direct/0] 01:48:06
> via ge-0/0/2.0
172.26.3.1/32 *[Local/0] 01:48:08
Local via ge-0/0/2.0
172.26.4.0/30 *[OSPF/10] 00:44:47, metric 2
> to 172.26.2.2 via
ge-0/0/1.0
192.168.1.2/32 *[Direct/0] 00:44:48
> via lo0.0
224.0.0.5/32 *[OSPF/10] 01:50:44, metric 1
MultiRecv
root@R4#
run show route
inet.0:
10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
+ =
Active Route, - = Last Active, * = Both
2.2.2.0/24 *[OSPF/10] 00:46:34, metric 3
> to 172.26.4.1 via
ge-0/0/1.0
3.3.3.0/24 *[OSPF/10] 00:46:34, metric 2
> to 172.26.4.1 via
ge-0/0/1.0
172.18.1.0/24 *[OSPF/10] 00:02:25, metric 4
> to 172.26.4.1 via
ge-0/0/1.0
172.26.1.0/30 *[OSPF/10] 00:46:34, metric 3
> to 172.26.4.1 via
ge-0/0/1.0
172.26.2.0/30 *[OSPF/10] 00:46:34, metric 2
> to 172.26.4.1 via
ge-0/0/1.0
172.26.3.0/30 *[OSPF/10] 00:46:34, metric 101
> to 172.26.4.1 via
ge-0/0/1.0
172.26.4.0/30 *[Direct/0] 01:25:49
> via ge-0/0/1.0
172.26.4.2/32 *[Local/0] 01:25:49
Local via ge-0/0/1.0
192.168.1.4/32 *[Direct/0] 01:25:49
> via lo0.0
224.0.0.5/32 *[OSPF/10] 01:25:50, metric 1
MultiRecv
root@R4#
run show ospf database
OSPF database, Area 0.0.0.2
Type
ID Adv Rtr Seq Age
Opt Cksum Len
Router 192.168.1.3 192.168.1.3 0x8000000a 2158
0x22 0x8530 36
Router *192.168.1.4 192.168.1.4 0x80000008 2823
0x22 0x8431 36
Network
*172.26.4.2 192.168.1.4 0x80000003 2823
0x22 0x43e0 32
Summary 2.2.2.0 192.168.1.3 0x80000007 439
0x22 0x249d 28
Summary 3.3.3.0 192.168.1.3 0x80000005 2452
0x22 0xf9c7 28
Summary 172.18.1.0 192.168.1.3 0x80000001 169
0x22 0xd933 28
Summary 172.26.1.0 192.168.1.3 0x80000007 169
0x22 0x51b1 28
Summary 172.26.2.0 192.168.1.3 0x80000009 2803
0x22 0x38c8 28
Summary 172.26.3.0 192.168.1.3 0x80000008 1863
0x22 0x118c 28
ASBRSum 192.168.1.1 192.168.1.3 0x80000001 1469
0x22 0xa3bd 28
root@R4#
run show route 172.18.1.1
inet.0:
10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
+ =
Active Route, - = Last Active, * = Both
172.18.1.0/24 *[OSPF/10] 00:08:17, metric 4
> to 172.26.4.1 via
ge-0/0/1.0
root@R1#
delete protocols ospf area 1 interface ge-0/0/0.0 passive
root@R1#
delete protocols ospf area 1 interface ge-0/0/0.0
root@R4#
run show route 172.18.1.1
inet.0:
10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
+ =
Active Route, - = Last Active, * = Both
172.18.1.0/24 *[OSPF/150] 00:03:48, metric 0, tag 0
> to 172.26.4.1 via
ge-0/0/1.0
root@R3#
run show ospf route
Topology
default Route Table:
Prefix Path Route
NH Metric NextHop Nexthop
Type Type
Type Interface Address/LSP
192.168.1.1 Inter AS BR IP 2 ge-0/0/2.0 172.26.2.1
192.168.1.2 Intra Area BR IP 1 ge-0/0/2.0 172.26.2.1
192.168.1.4 Intra Router IP 1 ge-0/0/3.0 172.26.4.2
2.2.2.0/24 Intra Network IP 2 ge-0/0/2.0 172.26.2.1
3.3.3.0/24 Intra Network IP 1 ge-0/0/0.0
172.18.1.0/24 Ext2
Network IP 0 ge-0/0/2.0 172.26.2.1
172.26.1.0/30 Inter Network IP 2 ge-0/0/2.0 172.26.2.1
172.26.2.0/30 Intra Network IP 1 ge-0/0/2.0
172.26.3.0/30 Intra Network IP
100 ge-0/0/1.0
172.26.4.0/30 Intra Network IP
1 ge-0/0/3.0
root@R3#
run show ospf interface
Interface State Area DR ID BDR ID Nbrs
ge-0/0/0.0 DR 0.0.0.0 192.168.1.3 0.0.0.0
0
ge-0/0/1.0 DR 0.0.0.0 192.168.1.3 192.168.1.2 1
ge-0/0/2.0 DR 0.0.0.0 192.168.1.3 192.168.1.2 1
ge-0/0/3.0 BDR 0.0.0.2 192.168.1.4 192.168.1.3 1
root@R3#
run show ospf interface extensive
Interface State Area DR ID BDR ID Nbrs
ge-0/0/0.0 DR 0.0.0.0 192.168.1.3 0.0.0.0
0
Type: LAN, Address: 3.3.3.3, Mask:
255.255.255.0, MTU: 1500, Cost: 1
DR addr: 3.3.3.3, Priority: 128
Adj count: 0
Hello: 10, Dead: 40, ReXmit: 5, Not Stub
Auth type: None
Protection type: None
Topology default (ID 0) -> Cost: 1
ge-0/0/1.0 DR 0.0.0.0 192.168.1.3 192.168.1.2 1
Type: LAN, Address: 172.26.3.2, Mask:
255.255.255.252, MTU: 1500, Cost: 100
DR addr: 172.26.3.2, BDR addr: 172.26.3.1,
Priority: 128
Adj count: 1
Hello: 10, Dead: 40, ReXmit: 5, Not Stub
Auth type: None
Protection type: None
Topology default (ID 0) -> Cost: 100
ge-0/0/2.0 DR
0.0.0.0 192.168.1.3 192.168.1.2 1
Type: LAN, Address: 172.26.2.2, Mask:
255.255.255.252, MTU: 1500, Cost: 1
DR addr: 172.26.2.2, BDR addr: 172.26.2.1,
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
ge-0/0/3.0 BDR 0.0.0.2 192.168.1.4 192.168.1.3 1
Type: LAN, Address: 172.26.4.1, Mask:
255.255.255.252, MTU: 1500, Cost: 1
DR addr: 172.26.4.2, BDR addr: 172.26.4.1,
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
Gear Net Technologies is one of the leading providers of new and reconditioned Juniper network equipment. It provides deep network environment knowledge and a wide selection of Juniper Router Accessories.
ReplyDelete
ReplyDeletevery informative and impressive article. Thanks for sharing with us
cyfuture cloud