Published 6月 01, 2018 by with 0 comment

JNCIE-SP Lab 3: OSPF Implementation


In this lab, I use Juniper M7i Router(JUNOS 12.3R6.6) to finish the JNCIE Service Provider Bootcamp 10.b Detailed Lab Guide Lab3 OSPF.
Before we start lab, we need to load pre-configuration for this Lab.

JNCIE@M7i# show | display set
set version 12.3R6.6
set system host-name M7i
set system time-zone Asia/Taipei
set system root-authentication encrypted-password "$1$xHrLYWb1$t7zaprV7gI28TCVhVXknd0"
set system name-server 168.95.1.1
set system name-server 8.8.8.8
set system login user JNCIE uid 2001
set system login user JNCIE class super-user
set system login user JNCIE authentication encrypted-password "$1$CFRZNtzp$xpn4xLgXQrBom0tstx93H/"
set system services telnet
set system ntp boot-server 211.22.103.158
set system ntp server 211.22.103.158 prefer
set system ntp server 140.112.2.189
set logical-systems C interfaces fe-0/0/1 unit 30 description To_R1-Fe-0/0/0.30
set logical-systems C interfaces fe-0/0/1 unit 30 vlan-id 30
set logical-systems C interfaces fe-0/0/1 unit 30 family inet address 172.27.0.30/30
set logical-systems C protocols rip group RIP export RIP-OUT
set logical-systems C protocols rip group RIP neighbor fe-0/0/1.30
set logical-systems C policy-options policy-statement RIP-OUT term 1 from protocol static
set logical-systems C policy-options policy-statement RIP-OUT term 1 then accept
set logical-systems C routing-options static route 172.16.16.0/29 receive
set logical-systems C routing-options static route 172.16.20.0/24 receive
set logical-systems C routing-options static route 172.16.21.0/24 receive
set logical-systems DC1 interfaces fe-0/0/2 unit 21 description To_DC2_R2-Fe-0/0/0.21_R4-Fe-0/0/1.21
set logical-systems DC1 interfaces fe-0/0/2 unit 21 vlan-id 21
set logical-systems DC1 interfaces fe-0/0/2 unit 21 family inet address 172.20.21.201/28
set logical-systems DC2 interfaces fe-0/0/3 unit 21 description To_DC1_R2-Fe-0/0/0.21_R4-Fe-0/0/1.21
set logical-systems DC2 interfaces fe-0/0/3 unit 21 vlan-id 21
set logical-systems DC2 interfaces fe-0/0/3 unit 21 family inet address 172.20.21.200/28
set logical-systems DC3 interfaces fe-0/0/2 unit 335 description To_R3-Fe-0/0/0.335_R5-Fe-0/0/1.335
set logical-systems DC3 interfaces fe-0/0/2 unit 335 vlan-id 335
set logical-systems DC3 interfaces fe-0/0/2 unit 335 family inet address 172.27.0.101/28
set logical-systems DC3 protocols rip group RIP export RIP-OUT
set logical-systems DC3 protocols rip group RIP neighbor fe-0/0/2.335
set logical-systems DC3 policy-options policy-statement RIP-OUT term 1 from protocol static
set logical-systems DC3 policy-options policy-statement RIP-OUT term 1 then accept
set logical-systems DC3 routing-options static route 10.22.1.0/24 receive
set logical-systems DC3 routing-options static route 10.22.2.0/24 receive
set logical-systems DC3 routing-options static route 10.22.3.0/24 receive
set logical-systems DC3 routing-options static route 10.22.4.0/24 receive
set logical-systems DC3 routing-options static route 10.22.5.0/24 receive
set logical-systems DC3 routing-options static route 10.22.6.0/24 receive
set logical-systems DC3 routing-options static route 10.22.7.0/24 receive
set logical-systems R1 interfaces fe-0/0/0 unit 12 description To_R2-Fe-0/0/1.12
set logical-systems R1 interfaces fe-0/0/0 unit 12 vlan-id 12
set logical-systems R1 interfaces fe-0/0/0 unit 12 family inet address 172.27.0.1/30
set logical-systems R1 interfaces fe-0/0/0 unit 12 family inet6 address 2008:4498::1/126
set logical-systems R1 interfaces fe-0/0/0 unit 13 description To_R3-Fe-0/0/1.13
set logical-systems R1 interfaces fe-0/0/0 unit 13 vlan-id 13
set logical-systems R1 interfaces fe-0/0/0 unit 13 family inet address 172.27.0.14/30
set logical-systems R1 interfaces fe-0/0/0 unit 13 family inet6 address 2008:4498::e/126
set logical-systems R1 interfaces fe-0/0/0 unit 14 description To_R4-Fe-0/0/1.14
set logical-systems R1 interfaces fe-0/0/0 unit 14 vlan-id 14
set logical-systems R1 interfaces fe-0/0/0 unit 14 family inet address 172.27.0.10/30
set logical-systems R1 interfaces fe-0/0/0 unit 14 family inet6 address 2008:4498::a/126
set logical-systems R1 interfaces fe-0/0/0 unit 30 description To_C-Fe-0/0/1.30
set logical-systems R1 interfaces fe-0/0/0 unit 30 vlan-id 30
set logical-systems R1 interfaces fe-0/0/0 unit 30 family inet address 172.27.0.29/30
set logical-systems R1 interfaces lo0 unit 1 family inet address 172.27.255.1/32
set logical-systems R2 interfaces fe-0/0/0 unit 10 description To_T1-Fe-0/0/1.10
set logical-systems R2 interfaces fe-0/0/0 unit 10 vlan-id 10
set logical-systems R2 interfaces fe-0/0/0 unit 10 family inet address 172.27.0.37/30
set logical-systems R2 interfaces fe-0/0/0 unit 10 family inet6 address 2008:4498::25/126
set logical-systems R2 interfaces fe-0/0/0 unit 21 description To_DC1-2_R4-Fe-0/0/1.21
set logical-systems R2 interfaces fe-0/0/0 unit 21 vlan-id 21
set logical-systems R2 interfaces fe-0/0/0 unit 21 family inet address 172.20.21.202/28
set logical-systems R2 interfaces fe-0/0/0 unit 24 description To_R4-Fe-0/0/1.24
set logical-systems R2 interfaces fe-0/0/0 unit 24 vlan-id 24
set logical-systems R2 interfaces fe-0/0/0 unit 24 family inet address 172.27.0.5/30
set logical-systems R2 interfaces fe-0/0/0 unit 24 family inet6 address 2008:4498::5/126
set logical-systems R2 interfaces fe-0/0/1 unit 12 description To_R1-Fe-0/0/0.12
set logical-systems R2 interfaces fe-0/0/1 unit 12 vlan-id 12
set logical-systems R2 interfaces fe-0/0/1 unit 12 family inet address 172.27.0.2/30
set logical-systems R2 interfaces fe-0/0/1 unit 12 family inet6 address 2008:4498::2/126
set logical-systems R2 interfaces lo0 unit 2 family inet address 172.27.255.2/32
set logical-systems R3 interfaces fe-0/0/0 unit 34 description To_R4-Fe-0/0/1.34
set logical-systems R3 interfaces fe-0/0/0 unit 34 vlan-id 34
set logical-systems R3 interfaces fe-0/0/0 unit 34 family inet address 172.27.0.17/30
set logical-systems R3 interfaces fe-0/0/0 unit 34 family inet6 address 2008:4498::13/126
set logical-systems R3 interfaces fe-0/0/0 unit 35 description To_R5-Fe-0/0/1.35
set logical-systems R3 interfaces fe-0/0/0 unit 35 vlan-id 35
set logical-systems R3 interfaces fe-0/0/0 unit 35 family inet address 172.27.0.26/30
set logical-systems R3 interfaces fe-0/0/0 unit 35 family inet6 address 2008:4498::1a/126
set logical-systems R3 interfaces fe-0/0/0 unit 335 description To_DC3_R5-Fe-0/0/1.335
set logical-systems R3 interfaces fe-0/0/0 unit 335 vlan-id 335
set logical-systems R3 interfaces fe-0/0/0 unit 335 family inet address 172.27.0.103/28
set logical-systems R3 interfaces fe-0/0/1 unit 13 description To_R1-Fe-0/0/0.13
set logical-systems R3 interfaces fe-0/0/1 unit 13 vlan-id 13
set logical-systems R3 interfaces fe-0/0/1 unit 13 family inet address 172.27.0.13/30
set logical-systems R3 interfaces fe-0/0/1 unit 13 family inet6 address 2008:4498::d/126
set logical-systems R3 interfaces lo0 unit 3 family inet address 172.27.255.3/32
set logical-systems R4 interfaces fe-0/0/0 unit 45 description To_R5-Fe-0/0/1.45
set logical-systems R4 interfaces fe-0/0/0 unit 45 vlan-id 45
set logical-systems R4 interfaces fe-0/0/0 unit 45 family inet address 172.27.0.21/30
set logical-systems R4 interfaces fe-0/0/0 unit 45 family inet6 address 2008:4498::15/126
set logical-systems R4 interfaces fe-0/0/1 unit 14 description To_R1-Fe-0/0/0.14
set logical-systems R4 interfaces fe-0/0/1 unit 14 vlan-id 14
set logical-systems R4 interfaces fe-0/0/1 unit 14 family inet address 172.27.0.9/30
set logical-systems R4 interfaces fe-0/0/1 unit 14 family inet6 address 2008:4498::9/126
set logical-systems R4 interfaces fe-0/0/1 unit 21 description To_DC1-2_R2-Fe-0/0/0.21
set logical-systems R4 interfaces fe-0/0/1 unit 21 vlan-id 21
set logical-systems R4 interfaces fe-0/0/1 unit 21 family inet address 172.20.21.204/28
set logical-systems R4 interfaces fe-0/0/1 unit 24 description To_R2-Fe-0/0/0.24
set logical-systems R4 interfaces fe-0/0/1 unit 24 vlan-id 24
set logical-systems R4 interfaces fe-0/0/1 unit 24 family inet address 172.27.0.6/30
set logical-systems R4 interfaces fe-0/0/1 unit 24 family inet6 address 2008:4498::6/126
set logical-systems R4 interfaces fe-0/0/1 unit 34 description To_R3-Fe-0/0/0.34
set logical-systems R4 interfaces fe-0/0/1 unit 34 vlan-id 34
set logical-systems R4 interfaces fe-0/0/1 unit 34 family inet address 172.27.0.18/30
set logical-systems R4 interfaces fe-0/0/1 unit 34 family inet6 address 2008:4498::12/126
set logical-systems R4 interfaces lo0 unit 4 family inet address 172.27.255.4/32
set logical-systems R5 interfaces fe-0/0/0 unit 20 description To_T2-Fe-0/0/1.20
set logical-systems R5 interfaces fe-0/0/0 unit 20 vlan-id 20
set logical-systems R5 interfaces fe-0/0/0 unit 20 family inet address 172.27.0.57/30
set logical-systems R5 interfaces fe-0/0/0 unit 20 family inet6 address 2008:4498::39/126
set logical-systems R5 interfaces fe-0/0/1 unit 35 description To_R3-Fe-0/0/0.35
set logical-systems R5 interfaces fe-0/0/1 unit 35 vlan-id 35
set logical-systems R5 interfaces fe-0/0/1 unit 35 family inet address 172.27.0.25/30
set logical-systems R5 interfaces fe-0/0/1 unit 35 family inet6 address 2008:4498::19/126
set logical-systems R5 interfaces fe-0/0/1 unit 45 description To_R4-Fe-0/0/0.45
set logical-systems R5 interfaces fe-0/0/1 unit 45 vlan-id 45
set logical-systems R5 interfaces fe-0/0/1 unit 45 family inet address 172.27.0.22/30
set logical-systems R5 interfaces fe-0/0/1 unit 45 family inet6 address 2008:4498::16/126
set logical-systems R5 interfaces fe-0/0/1 unit 335 description To_DC3_R3-Fe-0/0/0.335
set logical-systems R5 interfaces fe-0/0/1 unit 335 vlan-id 335
set logical-systems R5 interfaces fe-0/0/1 unit 335 family inet address 172.27.0.105/28
set logical-systems R5 interfaces lo0 unit 5 family inet address 172.27.255.5/32
set logical-systems R5 routing-options static route 10.255.3.0/24 receive
set logical-systems R5 routing-options static route 10.255.4.0/28 receive
set logical-systems R5 routing-options static route 10.255.5.0/28 receive
set logical-systems R5 routing-options static route 10.255.6.0/28 receive
set logical-systems R5 routing-options static route 10.255.7.0/28 receive
set logical-systems R5 routing-options static route 10.255.8.0/25 receive
set logical-systems R5 routing-options static route 10.255.9.0/29 receive
set logical-systems R5 routing-options static route 10.255.10.0/26 receive
set logical-systems R5 routing-options static route 10.255.11.0/27 receive
set logical-systems R5 routing-options static route 10.255.17.0/25 receive
set logical-systems T1 interfaces fe-0/0/1 unit 10 description To_R2-Fe-0/0/0.10
set logical-systems T1 interfaces fe-0/0/1 unit 10 vlan-id 10
set logical-systems T1 interfaces fe-0/0/1 unit 10 family inet address 172.27.0.38/30
set logical-systems T1 interfaces fe-0/0/1 unit 10 family inet6 address 2008:4498::26/126
set logical-systems T2 interfaces fe-0/0/1 unit 20 description To_R5-Fe-0/0/0.20
set logical-systems T2 interfaces fe-0/0/1 unit 20 vlan-id 20
set logical-systems T2 interfaces fe-0/0/1 unit 20 family inet address 172.27.0.58/30
set logical-systems T2 interfaces fe-0/0/1 unit 20 family inet6 address 2008:4498::3a/126
set interfaces fe-0/0/0 vlan-tagging
set interfaces fe-0/0/1 vlan-tagging
set interfaces fe-0/0/2 vlan-tagging
set interfaces fe-0/0/3 vlan-tagging
set interfaces fxp0 description To_SW1_Fa1/0/23
set interfaces fxp0 unit 0 family inet address 192.168.100.221/26
set routing-options static route 0.0.0.0/0 next-hop 192.168.100.200

[edit]
JNCIE@M7i#


By completing this lab, you will perform the following tasks:

Task 1: Configure all internal routers to route traffic using OSPF. Configure the OSPF areas as shown on the “Lab 3: OSPF Implementation” diagram.

Task 2: Ensure that no OSPF DR or BDR exists among your internal routers.

Task 3: Routers R1, R3, and R4 must authenticate all OSPF exchanges within Area 0 using the unencrypted password of Juniper.

Task 4: Ensure that all OSPF links with the following bandwidth values are assigned the following OSPF cost values.
– 1 Gbps = 50
– 2 Gbps = 25
– 3 Gbps = 16

Task 5: If R4 reboots, configure it to wait 240 seconds after the OSPF instance has started before passing transit traffic.

Task 6: Configure the OSPF adjacencies over the ae0 link to be declared down if 2 hello packets are missed.

Task 7: The interface routes for the links between R5 and T2, and R2 and T1 must appear on Area 0 routers as internal OSPF routes. No OSPF adjacencies can form over these links.

Task 8: Configure R1 to exchange RIP routes with C1. Create the most specific summary route possible that represents these routes and redistribute the summary route into OSPF. This summary route must be present on R2.

Task 9: Configure R3 and R5 to receive RIP routes from DC3. All other routers in your OSPF domain must be able to reach these destinations. However, the primary path to these destinations must lead through R3. Even R5 must use R3 as the primary path for these destinations.

Task 10: No Type 5 or Type 3 LSAs are allowed in Area 2. R5 must use R3 to reach unknown destinations. R5 must use R4 to reach unknown destinations only if the link between R5 and R3 fails. Configure R3 to attach a metric of 10 and R4 to attach a metric of 5 to their respective default routes they inject into Area 2.

Task 11: Redistribute the interface route for the link between R5 and DC3 into OSPF as an external OSPF route. This route must be present in Area 1 as an external LSA but cannot be present in R2’s routing table. The [edit routing-options] hierarchy level on R2 cannot be altered to accomplish this task.

Task 12: Redistribute the static routes found on R5 into OSPF. These specific routes must be present in Area 2 but cannot be present in Area 1. However, R2 must be able to reach these destinations.


OK, Buy a cup of tea, Let's start.

Task 1: Configure all internal routers to route traffic using OSPF. Configure the OSPF areas as shown on the “Lab 3: OSPF Implementation” diagram.
Note:
1. Place the loopback interface within Area 0 if the router is participating in Area 0 (Only for OSPFv2 not OSPFv3)

R1:
set logical-systems R1 protocols ospf area 0.0.0.0 interface fe-0/0/0.13
set logical-systems R1 protocols ospf area 0.0.0.0 interface fe-0/0/0.14
set logical-systems R1 protocols ospf area 0.0.0.0 interface lo0.1
set logical-systems R1 protocols ospf area 0.0.0.1 interface fe-0/0/0.12
#
set logical-systems R1 protocols ospf3 area 0.0.0.0 interface fe-0/0/0.13
set logical-systems R1 protocols ospf3 area 0.0.0.0 interface fe-0/0/0.14
set logical-systems R1 protocols ospf3 area 0.0.0.1 interface fe-0/0/0.12

R2:
set logical-systems R1 protocols ospf area 0.0.0.0 interface fe-0/0/0.13
set logical-systems R1 protocols ospf area 0.0.0.0 interface fe-0/0/0.14
set logical-systems R1 protocols ospf area 0.0.0.0 interface lo0.1
set logical-systems R1 protocols ospf area 0.0.0.1 interface fe-0/0/0.12
#
set logical-systems R1 protocols ospf3 area 0.0.0.0 interface fe-0/0/0.13
set logical-systems R1 protocols ospf3 area 0.0.0.0 interface fe-0/0/0.14
set logical-systems R1 protocols ospf3 area 0.0.0.1 interface fe-0/0/0.12

R3:
set logical-systems R3 protocols ospf area 0.0.0.0 interface fe-0/0/1.13
set logical-systems R3 protocols ospf area 0.0.0.0 interface fe-0/0/0.34
set logical-systems R3 protocols ospf area 0.0.0.0 interface lo0.3
set logical-systems R3 protocols ospf area 0.0.0.2 interface fe-0/0/0.35
#
set logical-systems R3 protocols ospf3 area 0.0.0.0 interface fe-0/0/1.13
set logical-systems R3 protocols ospf3 area 0.0.0.0 interface fe-0/0/0.34
set logical-systems R3 protocols ospf3 area 0.0.0.2 interface fe-0/0/0.35

R4:
set logical-systems R4 protocols ospf area 0.0.0.1 interface fe-0/0/1.24
set logical-systems R4 protocols ospf area 0.0.0.0 interface fe-0/0/1.14
set logical-systems R4 protocols ospf area 0.0.0.0 interface fe-0/0/1.34
set logical-systems R4 protocols ospf area 0.0.0.0 interface lo0.4
set logical-systems R4 protocols ospf area 0.0.0.2 interface fe-0/0/0.45
#
set logical-systems R4 protocols ospf3 area 0.0.0.1 interface fe-0/0/1.24
set logical-systems R4 protocols ospf3 area 0.0.0.0 interface fe-0/0/1.14
set logical-systems R4 protocols ospf3 area 0.0.0.0 interface fe-0/0/1.34
set logical-systems R4 protocols ospf3 area 0.0.0.2 interface fe-0/0/0.45

R5:
set logical-systems R5 protocols ospf area 0.0.0.2 interface fe-0/0/1.45
set logical-systems R5 protocols ospf area 0.0.0.2 interface fe-0/0/1.35
set logical-systems R5 protocols ospf area 0.0.0.2 interface lo0.5
#
set logical-systems R5 protocols ospf3 area 0.0.0.2 interface fe-0/0/1.45
set logical-systems R5 protocols ospf3 area 0.0.0.2 interface fe-0/0/1.35

Verification:
JNCIE@M7i:R1# run show ospf neighbor
Address          Interface              State     ID               Pri  Dead
172.27.0.13      fe-0/0/0.13            Full      172.27.255.3     128    34
172.27.0.9       fe-0/0/0.14            Full      172.27.255.4     128    33
172.27.0.2       fe-0/0/0.12            Full      172.27.255.2     128    34

[edit]
JNCIE@M7i:R1#

JNCIE@M7i:R2# run show ospf neighbor
Address          Interface              State     ID               Pri  Dead
172.27.0.6       fe-0/0/0.24            Full      172.27.255.4     128    18
172.27.0.1       fe-0/0/1.12            Full      172.27.255.1     128    37

[edit]
JNCIE@M7i:R2#

JNCIE@M7i:R3# run show ospf neighbor
Address          Interface              State     ID               Pri  Dead
172.27.0.18      fe-0/0/0.34            Full      172.27.255.4     128    34
172.27.0.14      fe-0/0/1.13            Full      172.27.255.1     128    31
172.27.0.25      fe-0/0/0.35            Full      172.27.255.5     128    31

[edit]
JNCIE@M7i:R3#

JNCIE@M7i:R4# run show ospf neighbor
Address          Interface              State     ID               Pri  Dead
172.27.0.10      fe-0/0/1.14            Full      172.27.255.1     128    31
172.27.0.17      fe-0/0/1.34            Full      172.27.255.3     128    32
172.27.0.5       fe-0/0/1.24            Full      172.27.255.2     128    15
172.27.0.22      fe-0/0/0.45            Full      172.27.255.5     128    36

[edit]
JNCIE@M7i:R4#

JNCIE@M7i:R5# run show ospf neighbor
Address          Interface              State     ID               Pri  Dead
172.27.0.26      fe-0/0/1.35            Full      172.27.255.3     128    31
172.27.0.21      fe-0/0/1.45            Full      172.27.255.4     128    31

[edit]
JNCIE@M7i:R5#


Task 2: Ensure that no OSPF DR or BDR exists among your internal routers.
Note:
Setting the OSPF interface priority vaule to 0 in both side, will lead the OSPF adjacencies to become stuck in the two-way state.

R1:
set logical-systems R1 protocols ospf area 0.0.0.0 interface fe-0/0/0.13 interface-type p2p
set logical-systems R1 protocols ospf area 0.0.0.0 interface fe-0/0/0.14 interface-type p2p
set logical-systems R1 protocols ospf area 0.0.0.0 interface lo0.1 passive
set logical-systems R1 protocols ospf area 0.0.0.1 interface fe-0/0/0.12 interface-type p2p
#
set logical-systems R1 protocols ospf3 area 0.0.0.0 interface fe-0/0/0.13 interface-type p2p
set logical-systems R1 protocols ospf3 area 0.0.0.0 interface fe-0/0/0.14 interface-type p2p
set logical-systems R1 protocols ospf3 area 0.0.0.1 interface fe-0/0/0.12 interface-type p2p

R2:
set logical-systems R2 protocols ospf area 0.0.0.1 interface fe-0/0/0.24 interface-type p2p
set logical-systems R2 protocols ospf area 0.0.0.1 interface lo0.2 passive
set logical-systems R2 protocols ospf area 0.0.0.1 interface fe-0/0/1.12 interface-type p2p
#
set logical-systems R2 protocols ospf3 area 0.0.0.1 interface fe-0/0/0.24 interface-type p2p
set logical-systems R2 protocols ospf3 area 0.0.0.1 interface fe-0/0/1.12 interface-type p2p

R3:
set logical-systems R3 protocols ospf area 0.0.0.0 interface fe-0/0/1.13 interface-type p2p
set logical-systems R3 protocols ospf area 0.0.0.0 interface fe-0/0/0.34 interface-type p2p
set logical-systems R3 protocols ospf area 0.0.0.0 interface lo0.3 passive
set logical-systems R3 protocols ospf area 0.0.0.2 interface fe-0/0/0.35 interface-type p2p
#
set logical-systems R3 protocols ospf3 area 0.0.0.0 interface fe-0/0/1.13 interface-type p2p
set logical-systems R3 protocols ospf3 area 0.0.0.0 interface fe-0/0/0.34 interface-type p2p
set logical-systems R3 protocols ospf3 area 0.0.0.2 interface fe-0/0/0.35 interface-type p2p

R4:
set logical-systems R4 protocols ospf area 0.0.0.1 interface fe-0/0/1.24 interface-type p2p
set logical-systems R4 protocols ospf area 0.0.0.0 interface fe-0/0/1.14 interface-type p2p
set logical-systems R4 protocols ospf area 0.0.0.0 interface fe-0/0/1.34 interface-type p2p
set logical-systems R4 protocols ospf area 0.0.0.0 interface lo0.4 passive
set logical-systems R4 protocols ospf area 0.0.0.2 interface fe-0/0/0.45 interface-type p2p
#
set logical-systems R4 protocols ospf3 area 0.0.0.1 interface fe-0/0/1.24 interface-type p2p
set logical-systems R4 protocols ospf3 area 0.0.0.0 interface fe-0/0/1.14 interface-type p2p
set logical-systems R4 protocols ospf3 area 0.0.0.0 interface fe-0/0/1.34 interface-type p2p
set logical-systems R4 protocols ospf3 area 0.0.0.2 interface fe-0/0/0.45 interface-type p2p

R5:
set logical-systems R5 protocols ospf area 0.0.0.2 interface fe-0/0/1.45 interface-type p2p
set logical-systems R5 protocols ospf area 0.0.0.2 interface fe-0/0/1.35 interface-type p2p
set logical-systems R5 protocols ospf area 0.0.0.2 interface lo0.5 passive
#
set logical-systems R5 protocols ospf3 area 0.0.0.2 interface fe-0/0/1.45 interface-type p2p
set logical-systems R5 protocols ospf3 area 0.0.0.2 interface fe-0/0/1.35 interface-type p2p

Verification:
JNCIE@M7i:R1# run show ospf interface
Interface           State   Area            DR ID           BDR ID          Nbrs
fe-0/0/0.13         PtToPt  0.0.0.0         0.0.0.0         0.0.0.0            1
fe-0/0/0.14         PtToPt  0.0.0.0         0.0.0.0         0.0.0.0            1
lo0.1               DRother 0.0.0.0         0.0.0.0         0.0.0.0            0
fe-0/0/0.12         PtToPt  0.0.0.1         0.0.0.0         0.0.0.0            1

[edit]
JNCIE@M7i:R1#

JNCIE@M7i:R2# run show ospf neighbor
Address          Interface              State     ID               Pri  Dead
172.27.0.6       fe-0/0/0.24            Full      172.27.255.4     128    18
172.27.0.1       fe-0/0/1.12            Full      172.27.255.1     128    37

[edit]
JNCIE@M7i:R2#

[edit]
JNCIE@M7i:R2# run show ospf interface
Interface           State   Area            DR ID           BDR ID          Nbrs
fe-0/0/0.10         DRother 0.0.0.1         0.0.0.0         0.0.0.0            0
fe-0/0/0.24         PtToPt  0.0.0.1         0.0.0.0         0.0.0.0            1
fe-0/0/1.12         PtToPt  0.0.0.1         0.0.0.0         0.0.0.0            1
lo0.2               DRother 0.0.0.1         0.0.0.0         0.0.0.0            0

[edit]
JNCIE@M7i:R2#

JNCIE@M7i:R3# run show ospf interface
Interface           State   Area            DR ID           BDR ID          Nbrs
fe-0/0/0.34         PtToPt  0.0.0.0         0.0.0.0         0.0.0.0            1
fe-0/0/1.13         PtToPt  0.0.0.0         0.0.0.0         0.0.0.0            1
lo0.3               DRother 0.0.0.0         0.0.0.0         0.0.0.0            0
fe-0/0/0.35         PtToPt  0.0.0.2         0.0.0.0         0.0.0.0            1

[edit]
JNCIE@M7i:R3#

JNCIE@M7i:R4# run show ospf interface
Interface           State   Area            DR ID           BDR ID          Nbrs
fe-0/0/1.14         PtToPt  0.0.0.0         0.0.0.0         0.0.0.0            1
fe-0/0/1.34         PtToPt  0.0.0.0         0.0.0.0         0.0.0.0            1
lo0.4               DRother 0.0.0.0         0.0.0.0         0.0.0.0            0
fe-0/0/1.24         PtToPt  0.0.0.1         0.0.0.0         0.0.0.0            1
fe-0/0/0.45         PtToPt  0.0.0.2         0.0.0.0         0.0.0.0            1

[edit]
JNCIE@M7i:R4#

JNCIE@M7i:R5# run show ospf interface
Interface           State   Area            DR ID           BDR ID          Nbrs
fe-0/0/0.20         DRother 0.0.0.2         0.0.0.0         0.0.0.0            0
fe-0/0/1.35         PtToPt  0.0.0.2         0.0.0.0         0.0.0.0            1
fe-0/0/1.45         PtToPt  0.0.0.2         0.0.0.0         0.0.0.0            1
lo0.5               DRother 0.0.0.2         0.0.0.0         0.0.0.0            0

[edit]
JNCIE@M7i:R5#


Task 3: Routers R1, R3, and R4 must authenticate all OSPF exchanges within Area 0 using the unencrypted password of Juniper.
Note:
1. Only for OSPFv2. Currently the Junos OS only supports authentication for OSPFv3 through the use of IPsec security associations.

R1:
set logical-systems R1 protocols ospf area 0.0.0.0 interface fe-0/0/0.13 authentication simple-password Juniper
set logical-systems R1 protocols ospf area 0.0.0.0 interface fe-0/0/0.14 authentication simple-password Juniper

R3:
set logical-systems R3 protocols ospf area 0.0.0.0 interface fe-0/0/1.13 authentication simple-password Juniper
set logical-systems R3 protocols ospf area 0.0.0.0 interface fe-0/0/0.34 authentication simple-password Juniper

R3:
set logical-systems R4 protocols ospf area 0.0.0.0 interface fe-0/0/1.14 authentication simple-password Juniper
set logical-systems R4 protocols ospf area 0.0.0.0 interface fe-0/0/1.34 authentication simple-password Juniper

Verification:
JNCIE@M7i:R1# run show ospf neighbor    
Address          Interface              State     ID               Pri  Dead
172.27.0.13      fe-0/0/0.13            Full      172.27.255.3     128    34
172.27.0.9       fe-0/0/0.14            Full      172.27.255.4     128    37
172.27.0.2       fe-0/0/0.12            Full      172.27.255.2     128    31

[edit]
JNCIE@M7i:R1#

JNCIE@M7i:R2# run show ospf neighbor    
Address          Interface              State     ID               Pri  Dead
172.27.0.6       fe-0/0/0.24            Full      172.27.255.4     128    11
172.27.0.1       fe-0/0/1.12            Full      172.27.255.1     128    39

[edit]
JNCIE@M7i:R2#

JNCIE@M7i:R3# run show ospf neighbor    
Address          Interface              State     ID               Pri  Dead
172.27.0.18      fe-0/0/0.34            Full      172.27.255.4     128    35
172.27.0.14      fe-0/0/1.13            Full      172.27.255.1     128    36
172.27.0.25      fe-0/0/0.35            Full      172.27.255.5     128    39

[edit]
JNCIE@M7i:R3#

JNCIE@M7i:R4# run show ospf neighbor    
Address          Interface              State     ID               Pri  Dead
172.27.0.10      fe-0/0/1.14            Full      172.27.255.1     128    38
172.27.0.17      fe-0/0/1.34            Full      172.27.255.3     128    37
172.27.0.5       fe-0/0/1.24            Full      172.27.255.2     128    11
172.27.0.22      fe-0/0/0.45            Full      172.27.255.5     128    39

[edit]
JNCIE@M7i:R4#

JNCIE@M7i:R5# run show ospf neighbor    
Address          Interface              State     ID               Pri  Dead
172.27.0.26      fe-0/0/1.35            Full      172.27.255.3     128    33
172.27.0.21      fe-0/0/1.45            Full      172.27.255.4     128    39

[edit]
JNCIE@M7i:R5#


Task 4: Ensure that all OSPF links with the following bandwidth values are assigned the following OSPF cost values.
– 1 Gbps = 50
– 2 Gbps = 25
– 3 Gbps = 16

R1:
set logical-systems R1 protocols ospf reference-bandwidth 50g
#
set logical-systems R1 protocols ospf3 reference-bandwidth 50g

R2:
set logical-systems R2 protocols ospf reference-bandwidth 50g
#
set logical-systems R2 protocols ospf3 reference-bandwidth 50g

R3:
set logical-systems R3 protocols ospf reference-bandwidth 50g
#
set logical-systems R3 protocols ospf3 reference-bandwidth 50g

R4:
set logical-systems R4 protocols ospf reference-bandwidth 50g
#
set logical-systems R4 protocols ospf3 reference-bandwidth 50g

R5:
set logical-systems R5 protocols ospf reference-bandwidth 50g
#
set logical-systems R5 protocols ospf3 reference-bandwidth 50g

Verification:
JNCIE@M7i:R1# run show ospf interface detail
Interface           State   Area            DR ID           BDR ID          Nbrs
fe-0/0/0.13         PtToPt  0.0.0.0         0.0.0.0         0.0.0.0            1
  Type: P2P, Address: 172.27.0.14, Mask: 255.255.255.252, MTU: 1500, Cost: 500
  Adj count: 1
  Hello: 10, Dead: 40, ReXmit: 5, Not Stub
  Auth type: Password
  Protection type: None
  Topology default (ID 0) -> Cost: 500
fe-0/0/0.14         PtToPt  0.0.0.0         0.0.0.0         0.0.0.0            1
  Type: P2P, Address: 172.27.0.10, Mask: 255.255.255.252, MTU: 1500, Cost: 500
  Adj count: 1
  Hello: 10, Dead: 40, ReXmit: 5, Not Stub
  Auth type: Password
  Protection type: None
  Topology default (ID 0) -> Cost: 500
lo0.1               DRother 0.0.0.0         0.0.0.0         0.0.0.0            0
  Type: LAN, Address: 172.27.255.1, Mask: 255.255.255.255, MTU: 65535, Cost: 0
  Adj count: 0, Passive
  Hello: 10, Dead: 40, ReXmit: 5, Not Stub
  Auth type: None
  Protection type: None
  Topology default (ID 0) -> Passive, Cost: 0
fe-0/0/0.12         PtToPt  0.0.0.1         0.0.0.0         0.0.0.0            1
  Type: P2P, Address: 172.27.0.1, Mask: 255.255.255.252, MTU: 1500, Cost: 500
  Adj count: 1
  Hello: 10, Dead: 40, ReXmit: 5, Not Stub
  Auth type: None
  Protection type: None
  Topology default (ID 0) -> Cost: 500

[edit]
JNCIE@M7i:R1#

JNCIE@M7i:R2# run show ospf interface detail
Interface           State   Area            DR ID           BDR ID          Nbrs
fe-0/0/0.10         DRother 0.0.0.1         0.0.0.0         0.0.0.0            0
  Type: LAN, Address: 172.27.0.37, Mask: 255.255.255.252, MTU: 1500, Cost: 500
  Adj count: 0, Passive
  Hello: 10, Dead: 40, ReXmit: 5, Not Stub
  Auth type: None
  Protection type: None
  Topology default (ID 0) -> Passive, Cost: 500
fe-0/0/0.24         PtToPt  0.0.0.1         0.0.0.0         0.0.0.0            1
  Type: P2P, Address: 172.27.0.5, Mask: 255.255.255.252, MTU: 1500, Cost: 500
  Adj count: 1
  Hello: 10, Dead: 20, ReXmit: 5, Not Stub
  Auth type: None
  Protection type: None
  Topology default (ID 0) -> Cost: 500
fe-0/0/1.12         PtToPt  0.0.0.1         0.0.0.0         0.0.0.0            1
  Type: P2P, Address: 172.27.0.2, Mask: 255.255.255.252, MTU: 1500, Cost: 500
  Adj count: 1
  Hello: 10, Dead: 40, ReXmit: 5, Not Stub
  Auth type: None
  Protection type: None
  Topology default (ID 0) -> Cost: 500
lo0.2               DRother 0.0.0.1         0.0.0.0         0.0.0.0            0
  Type: LAN, Address: 172.27.255.2, Mask: 255.255.255.255, MTU: 65535, Cost: 0
  Adj count: 0, Passive
  Hello: 10, Dead: 40, ReXmit: 5, Not Stub
  Auth type: None
  Protection type: None
  Topology default (ID 0) -> Passive, Cost: 0

[edit]
JNCIE@M7i:R2#

JNCIE@M7i:R3# run show ospf interface detail
Interface           State   Area            DR ID           BDR ID          Nbrs
fe-0/0/0.34         PtToPt  0.0.0.0         0.0.0.0         0.0.0.0            1
  Type: P2P, Address: 172.27.0.17, Mask: 255.255.255.252, MTU: 1500, Cost: 500
  Adj count: 1
  Hello: 10, Dead: 40, ReXmit: 5, Not Stub
  Auth type: Password
  Protection type: None
  Topology default (ID 0) -> Cost: 500
fe-0/0/1.13         PtToPt  0.0.0.0         0.0.0.0         0.0.0.0            1
  Type: P2P, Address: 172.27.0.13, Mask: 255.255.255.252, MTU: 1500, Cost: 500
  Adj count: 1
  Hello: 10, Dead: 40, ReXmit: 5, Not Stub
  Auth type: Password
  Protection type: None
  Topology default (ID 0) -> Cost: 500
lo0.3               DRother 0.0.0.0         0.0.0.0         0.0.0.0            0
  Type: LAN, Address: 172.27.255.3, Mask: 255.255.255.255, MTU: 65535, Cost: 0
  Adj count: 0, Passive
  Hello: 10, Dead: 40, ReXmit: 5, Not Stub
  Auth type: None
  Protection type: None
  Topology default (ID 0) -> Passive, Cost: 0
fe-0/0/0.35         PtToPt  0.0.0.2         0.0.0.0         0.0.0.0            1
  Type: P2P, Address: 172.27.0.26, Mask: 255.255.255.252, MTU: 1500, Cost: 500
  Adj count: 1
  Hello: 10, Dead: 40, ReXmit: 5, Stub NSSA
  Auth type: None
  Protection type: None
  Topology default (ID 0) -> Cost: 500

[edit]
JNCIE@M7i:R3#

JNCIE@M7i:R4# run show ospf interface detail
Interface           State   Area            DR ID           BDR ID          Nbrs
fe-0/0/1.14         PtToPt  0.0.0.0         0.0.0.0         0.0.0.0            1
  Type: P2P, Address: 172.27.0.9, Mask: 255.255.255.252, MTU: 1500, Cost: 500
  Adj count: 1
  Hello: 10, Dead: 40, ReXmit: 5, Not Stub
  Auth type: Password
  Protection type: None
  Topology default (ID 0) -> Cost: 500
fe-0/0/1.34         PtToPt  0.0.0.0         0.0.0.0         0.0.0.0            1
  Type: P2P, Address: 172.27.0.18, Mask: 255.255.255.252, MTU: 1500, Cost: 500
  Adj count: 1
  Hello: 10, Dead: 40, ReXmit: 5, Not Stub
  Auth type: Password
  Protection type: None
  Topology default (ID 0) -> Cost: 500
lo0.4               DRother 0.0.0.0         0.0.0.0         0.0.0.0            0
  Type: LAN, Address: 172.27.255.4, Mask: 255.255.255.255, MTU: 65535, Cost: 0
  Adj count: 0, Passive
  Hello: 10, Dead: 40, ReXmit: 5, Not Stub
  Auth type: None
  Protection type: None
  Topology default (ID 0) -> Passive, Cost: 0
fe-0/0/1.24         PtToPt  0.0.0.1         0.0.0.0         0.0.0.0            1
  Type: P2P, Address: 172.27.0.6, Mask: 255.255.255.252, MTU: 1500, Cost: 500
  Adj count: 1
  Hello: 10, Dead: 20, ReXmit: 5, Not Stub
  Auth type: None
  Protection type: None
  Topology default (ID 0) -> Cost: 500
fe-0/0/0.45         PtToPt  0.0.0.2         0.0.0.0         0.0.0.0            1
  Type: P2P, Address: 172.27.0.21, Mask: 255.255.255.252, MTU: 1500, Cost: 500
  Adj count: 1
  Hello: 10, Dead: 40, ReXmit: 5, Stub NSSA
  Auth type: None
  Protection type: None
  Topology default (ID 0) -> Cost: 500
                                       
[edit]
JNCIE@M7i:R4#

JNCIE@M7i:R5# run show ospf interface detail
Interface           State   Area            DR ID           BDR ID          Nbrs
fe-0/0/0.20         DRother 0.0.0.2         0.0.0.0         0.0.0.0            0
  Type: LAN, Address: 172.27.0.57, Mask: 255.255.255.252, MTU: 1500, Cost: 500
  Adj count: 0, Passive
  Hello: 10, Dead: 40, ReXmit: 5, Stub NSSA
  Auth type: None
  Protection type: None
  Topology default (ID 0) -> Passive, Cost: 500
fe-0/0/1.35         PtToPt  0.0.0.2         0.0.0.0         0.0.0.0            1
  Type: P2P, Address: 172.27.0.25, Mask: 255.255.255.252, MTU: 1500, Cost: 500
  Adj count: 1
  Hello: 10, Dead: 40, ReXmit: 5, Stub NSSA
  Auth type: None
  Protection type: None
  Topology default (ID 0) -> Cost: 500
fe-0/0/1.45         PtToPt  0.0.0.2         0.0.0.0         0.0.0.0            1
  Type: P2P, Address: 172.27.0.22, Mask: 255.255.255.252, MTU: 1500, Cost: 500
  Adj count: 1
  Hello: 10, Dead: 40, ReXmit: 5, Stub NSSA
  Auth type: None
  Protection type: None
  Topology default (ID 0) -> Cost: 500
lo0.5               DRother 0.0.0.2         0.0.0.0         0.0.0.0            0
  Type: LAN, Address: 172.27.255.5, Mask: 255.255.255.255, MTU: 65535, Cost: 0
  Adj count: 0, Passive
  Hello: 10, Dead: 40, ReXmit: 5, Stub NSSA
  Auth type: None
  Protection type: None
  Topology default (ID 0) -> Passive, Cost: 0

[edit]
JNCIE@M7i:R5#


Task 5: If R4 reboots, configure it to wait 240 seconds after the OSPF instance has started before passing transit traffic.

R4:
set logical-systems R4 protocols ospf overload timeout 240
#
set logical-systems R4 protocols ospf3 overload timeout 240

Verification:
I did not verification because to verify this task, R4 need to reboot.


Task 6: Configure the OSPF adjacencies over the ae0 link to be declared down if 2 hello packets are missed.
Note:
1. Hello-interval: Broadcast(10s), P2P(10s), NBMA(30s)
2. Dead-interval: Broadcast(40s), P2P(40s), NBMA(120s)

R2:
set logical-systems R2 protocols ospf area 0.0.0.1 interface fe-0/0/0.24 dead-interval 20
#
set logical-systems R2 protocols ospf3 area 0.0.0.1 interface fe-0/0/0.24 dead-interval 20
s

R4:
set logical-systems R4 protocols ospf area 0.0.0.1 interface fe-0/0/1.24 dead-interval 20
#
set logical-systems R4 protocols ospf3 area 0.0.0.1 interface fe-0/0/1.24 dead-interval 20

Verification:
JNCIE@M7i:R2# run show ospf interface fe-0/0/0.24 detail | match hello    
  Hello: 10, Dead: 20, ReXmit: 5, Not Stub

[edit]
JNCIE@M7i:R2#

[edit]
JNCIE@M7i:R2# run show ospf3 interface fe-0/0/0.24 detail | match hello   
  Hello 10, Dead 20, ReXmit 5, Not Stub

[edit]
JNCIE@M7i:R2#

JNCIE@M7i:R4# run show ospf interface fe-0/0/1.24 detail | match hello   
  Hello: 10, Dead: 20, ReXmit: 5, Not Stub

[edit]
JNCIE@M7i:R4#

[edit]
JNCIE@M7i:R4# run show ospf3 interface fe-0/0/1.24 detail | match hello  
  Hello 10, Dead 20, ReXmit 5, Not Stub

[edit]
JNCIE@M7i:R4#


Task 7: The interface routes for the links between R5 and T2, and R2 and T1 must appear on Area 0 routers as internal OSPF routes. No OSPF adjacencies can form over these links.

R2:
set logical-systems R2 protocols ospf area 0.0.0.1 interface fe-0/0/0.10 passive
#
set logical-systems R2 protocols ospf3 area 0.0.0.1 interface fe-0/0/0.10 passive

R5:
set logical-systems R5 protocols ospf area 0.0.0.2 interface fe-0/0/0.20 passive
#
set logical-systems R5 protocols ospf3 area 0.0.0.2 interface fe-0/0/0.20 passive

Verification:
JJNCIE@M7i:R4# run show route 172.27.0.36/30   

inet.0: 42 destinations, 42 routes (42 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

172.27.0.36/30     *[OSPF/10] 00:58:13, metric 1000
                    > to 172.27.0.5 via fe-0/0/1.24

[edit]
JNCIE@M7i:R4#

[edit]
JNCIE@M7i:R4# run show route 172.27.0.56/30   

inet.0: 42 destinations, 42 routes (42 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

172.27.0.56/30     *[OSPF/10] 00:58:18, metric 1000
                    > to 172.27.0.22 via fe-0/0/0.45

[edit]
JNCIE@M7i:R4#


Task 8: Configure R1 to exchange RIP routes with C1. Create the most specific summary route possible that represents these routes and redistribute the summary route into OSPF. This summary route must be present on R2.

R1:
set logical-systems R1 protocols rip group RIP neighbor fe-0/0/0.30
#
set logical-systems R1 routing-options aggregate route 172.16.16.0/21
#
set logical-systems R1 policy-options policy-statement rip-ospf term agg from protocol aggregate
set logical-systems R1 policy-options policy-statement rip-ospf term agg from route-filter 172.16.16.0/21 exact
set logical-systems R1 policy-options policy-statement rip-ospf term agg then accept
#
set logical-systems R1 protocols ospf export rip-ospf

Verification:
R2:
JNCIE@M7i:R2# run show route 172.16.16/21

inet.0: 30 destinations, 30 routes (30 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

172.16.16.0/21     *[OSPF/150] 01:04:13, metric 0, tag 0
                    > to 172.27.0.1 via fe-0/0/1.12

[edit]
JNCIE@M7i:R2#


Task 9: Configure R3 and R5 to receive RIP routes from DC3. All other routers in your OSPF domain must be able to reach these destinations. However, the primary path to these destinations must lead through R3. Even R5 must use R3 as the primary path for these destinations.
Note:
1. There are 2 ways to do this.
1a. Solution 1: R3 & R5 both announce most specific routes, R3 set E1, R5 set E2(default), R5 set RIP prefernece 155.
2a. Solution 2: R3 announces most specific routes, R5 anncounces summary routes, R3 and R5 both setup E2, R5 set RIP prefernece 155.

Soultion 1:
R3:
set logical-systems R3 protocols rip group RIP neighbor fe-0/0/0.335
#
set logical-systems R3 policy-options policy-statement rip-ospf term rip from protocol rip
set logical-systems R3 policy-options policy-statement rip-ospf term rip from route-filter 10.22.0.0/21 orlonger
set logical-systems R3 policy-options policy-statement rip-ospf term rip then external type 1
set logical-systems R3 policy-options policy-statement rip-ospf term rip then accept
#
set logical-systems R3 protocols ospf export rip-ospf

R5:
set logical-systems R5 protocols rip group RIP neighbor fe-0/0/1.335
#
set logical-systems R5 policy-options policy-statement rip-ospf term rip from protocol rip
set logical-systems R5 policy-options policy-statement rip-ospf term rip from route-filter 10.22.0.0/21 orlonger
set logical-systems R5 policy-options policy-statement rip-ospf term rip then accept
#
set logical-systems R5 protocols ospf export rip-ospf
#
set logical-systems R5 protocols rip group RIP preference 155

Solution 2:
R3:
set logical-systems R3 protocols rip group RIP neighbor fe-0/0/0.335
#
set logical-systems R3 policy-options policy-statement rip-ospf term rip from protocol rip
set logical-systems R3 policy-options policy-statement rip-ospf term rip from route-filter 10.22.0.0/21 orlonger
set logical-systems R3 policy-options policy-statement rip-ospf term rip then accept
#
set logical-systems R3 protocols ospf export rip-ospf

R5:
set logical-systems R5 protocols rip group RIP neighbor fe-0/0/1.335
#
set logical-systems R5 routing-options aggregate route 10.22.0.0/21
#
set logical-systems R5 policy-options policy-statement rip-ospf term agg from protocol aggregate
set logical-systems R5 policy-options policy-statement rip-ospf term agg from route-filter 10.22.0.0/21 exact
set logical-systems R5 policy-options policy-statement rip-ospf term agg then accept
#
set logical-systems R5 protocols ospf export rip-ospf
#
set logical-systems R5 protocols rip group RIP preference 155

Verification:
JNCIE@M7i:R1# run show route 10.22/21

inet.0: 35 destinations, 35 routes (35 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.22.0.0/21       *[OSPF/150] 01:50:33, metric 0, tag 0
                      to 172.27.0.13 via fe-0/0/0.13
                    > to 172.27.0.9 via fe-0/0/0.14
10.22.1.0/24       *[OSPF/150] 01:51:52, metric 2, tag 0
                    > to 172.27.0.13 via fe-0/0/0.13
10.22.2.0/24       *[OSPF/150] 01:51:52, metric 2, tag 0
                    > to 172.27.0.13 via fe-0/0/0.13
10.22.3.0/24       *[OSPF/150] 01:51:52, metric 2, tag 0
                    > to 172.27.0.13 via fe-0/0/0.13
10.22.4.0/24       *[OSPF/150] 01:51:52, metric 2, tag 0
                    > to 172.27.0.13 via fe-0/0/0.13
10.22.5.0/24       *[OSPF/150] 01:51:52, metric 2, tag 0
                    > to 172.27.0.13 via fe-0/0/0.13
10.22.6.0/24       *[OSPF/150] 01:51:52, metric 2, tag 0
                    > to 172.27.0.13 via fe-0/0/0.13
10.22.7.0/24       *[OSPF/150] 01:51:52, metric 2, tag 0
                    > to 172.27.0.13 via fe-0/0/0.13

[edit]
JNCIE@M7i:R1#

JNCIE@M7i:R4# run show route 10.22/21

inet.0: 42 destinations, 42 routes (42 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.22.0.0/21       *[OSPF/150] 01:53:12, metric 0, tag 0
                    > to 172.27.0.22 via fe-0/0/0.45
10.22.1.0/24       *[OSPF/150] 01:53:07, metric 2, tag 0
                    > to 172.27.0.17 via fe-0/0/1.34
10.22.2.0/24       *[OSPF/150] 01:53:07, metric 2, tag 0
                    > to 172.27.0.17 via fe-0/0/1.34
10.22.3.0/24       *[OSPF/150] 01:53:07, metric 2, tag 0
                    > to 172.27.0.17 via fe-0/0/1.34
10.22.4.0/24       *[OSPF/150] 01:53:07, metric 2, tag 0
                    > to 172.27.0.17 via fe-0/0/1.34
10.22.5.0/24       *[OSPF/150] 01:53:07, metric 2, tag 0
                    > to 172.27.0.17 via fe-0/0/1.34
10.22.6.0/24       *[OSPF/150] 01:53:07, metric 2, tag 0
                    > to 172.27.0.17 via fe-0/0/1.34
10.22.7.0/24       *[OSPF/150] 01:53:07, metric 2, tag 0
                    > to 172.27.0.17 via fe-0/0/1.34

[edit]
JNCIE@M7i:R4#

JNCIE@M7i:R5# run show route 10.22/21

inet.0: 30 destinations, 37 routes (30 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.22.0.0/21       *[Aggregate/130] 01:56:02
                      Reject
10.22.1.0/24       *[OSPF/150] 01:53:20, metric 2, tag 0
                    > to 172.27.0.26 via fe-0/0/1.35
                    [RIP/155] 01:53:39, metric 2, tag 0
                    > to 172.27.0.101 via fe-0/0/1.335
10.22.2.0/24       *[OSPF/150] 01:53:20, metric 2, tag 0
                    > to 172.27.0.26 via fe-0/0/1.35
                    [RIP/155] 01:53:39, metric 2, tag 0
                    > to 172.27.0.101 via fe-0/0/1.335
10.22.3.0/24       *[OSPF/150] 01:53:20, metric 2, tag 0
                    > to 172.27.0.26 via fe-0/0/1.35
                    [RIP/155] 01:53:39, metric 2, tag 0
                    > to 172.27.0.101 via fe-0/0/1.335
10.22.4.0/24       *[OSPF/150] 01:53:20, metric 2, tag 0
                    > to 172.27.0.26 via fe-0/0/1.35
                    [RIP/155] 01:53:39, metric 2, tag 0
                    > to 172.27.0.101 via fe-0/0/1.335
10.22.5.0/24       *[OSPF/150] 01:53:20, metric 2, tag 0
                    > to 172.27.0.26 via fe-0/0/1.35
                    [RIP/155] 01:53:39, metric 2, tag 0
                    > to 172.27.0.101 via fe-0/0/1.335
10.22.6.0/24       *[OSPF/150] 01:53:20, metric 2, tag 0
                    > to 172.27.0.26 via fe-0/0/1.35
                    [RIP/155] 01:53:39, metric 2, tag 0
                    > to 172.27.0.101 via fe-0/0/1.335
10.22.7.0/24       *[OSPF/150] 01:53:20, metric 2, tag 0
                    > to 172.27.0.26 via fe-0/0/1.35
                    [RIP/155] 01:53:39, metric 2, tag 0
                    > to 172.27.0.101 via fe-0/0/1.335

[edit]
JNCIE@M7i:R5#


Task 10: No Type 5 or Type 3 LSAs are allowed in Area 2. R5 must use R3 to reach unknown destinations. R5 must use R4 to reach unknown destinations only if the link between R5 and R3 fails. Configure R3 to attach a metric of 10 and R4 to attach a metric of 5 to their respective default routes they inject into Area 2.

R3:
set logical-systems R3 protocols ospf area 0.0.0.2 nssa default-lsa default-metric 10
set logical-systems R3 protocols ospf area 0.0.0.2 nssa default-lsa metric-type 1
set logical-systems R3 protocols ospf area 0.0.0.2 nssa default-lsa type-7
set logical-systems R3 protocols ospf area 0.0.0.2 nssa no-summaries
#
set logical-systems R3 protocols ospf3 area 0.0.0.2 nssa default-lsa default-metric 10
set logical-systems R3 protocols ospf3 area 0.0.0.2 nssa default-lsa metric-type 1
set logical-systems R3 protocols ospf3 area 0.0.0.2 nssa default-lsa type-7
set logical-systems R3 protocols ospf3 area 0.0.0.2 nssa no-summaries

R4:
set logical-systems R4 protocols ospf area 0.0.0.2 nssa default-lsa default-metric 5
set logical-systems R4 protocols ospf area 0.0.0.2 nssa default-lsa metric-type 2
set logical-systems R4 protocols ospf area 0.0.0.2 nssa default-lsa type-7
set logical-systems R4 protocols ospf area 0.0.0.2 nssa no-summaries
#
set logical-systems R4 protocols ospf3 area 0.0.0.2 nssa default-lsa default-metric 5
set logical-systems R4 protocols ospf3 area 0.0.0.2 nssa default-lsa metric-type 2
set logical-systems R4 protocols ospf3 area 0.0.0.2 nssa default-lsa type-7
set logical-systems R4 protocols ospf3 area 0.0.0.2 nssa no-summaries

R5:
set logical-systems R5 protocols ospf area 0.0.0.2 nssa
#
set logical-systems R5 protocols ospf3 area 0.0.0.2 nssa

Verification:
JNCIE@M7i:R5# run show ospf database

    OSPF database, Area 0.0.0.2
 Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len
Router   172.27.255.3     172.27.255.3     0x80000004  1864  0x20 0xe62d  48
Router   172.27.255.4     172.27.255.4     0x80000006   141  0x20 0x34e4  48
Router  *172.27.255.5     172.27.255.5     0x80000006  1441  0x20 0x1a4   96
NSSA     0.0.0.0          172.27.255.3     0x80000003  2150  0x20 0xe279  36
NSSA     0.0.0.0          172.27.255.4     0x80000004   586  0x20 0x2cb2  36
NSSA    *10.22.0.0        172.27.255.5     0x80000003  1672  0x28 0xc530  36
NSSA     10.22.1.0        172.27.255.3     0x80000004  1007  0x20 0x7d44  36
NSSA     10.22.2.0        172.27.255.3     0x80000004   721  0x20 0x724e  36
NSSA     10.22.3.0        172.27.255.3     0x80000004   436  0x20 0x6758  36
NSSA     10.22.4.0        172.27.255.3     0x80000004   150  0x20 0x5c62  36
NSSA     10.22.5.0        172.27.255.3     0x80000003  2864  0x20 0x536b  36
NSSA     10.22.6.0        172.27.255.3     0x80000003  2578  0x20 0x4875  36
NSSA     10.22.7.0        172.27.255.3     0x80000003  2293  0x20 0x3d7f  36
NSSA    *10.255.3.0       172.27.255.5     0x80000004  1210  0x28 0xce32  36
NSSA    *10.255.4.0       172.27.255.5     0x80000004   980  0x28 0x69a5  36
NSSA    *10.255.5.0       172.27.255.5     0x80000004   749  0x28 0x5eaf  36
NSSA    *10.255.6.0       172.27.255.5     0x80000004   518  0x28 0x53b9  36
NSSA    *10.255.7.0       172.27.255.5     0x80000004   287  0x28 0x48c3  36
NSSA    *10.255.8.0       172.27.255.5     0x80000004    57  0x28 0x9ae0  36
NSSA    *10.255.9.0       172.27.255.5     0x80000003  2825  0x28 0x649e  36
NSSA    *10.255.10.0      172.27.255.5     0x80000003  2595  0x28 0x832   36
NSSA    *10.255.11.0      172.27.255.5     0x80000003  2364  0x28 0xbd5b  36
NSSA    *10.255.17.0      172.27.255.5     0x80000003  2133  0x28 0x393a  36
NSSA    *172.27.0.96      172.27.255.5     0x80000003  1903  0x28 0x4ca9  36

[edit]
JNCIE@M7i:R5#

JNCIE@M7i:R5# run show route 0/0 exact   

inet.0: 30 destinations, 37 routes (30 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

0.0.0.0/0          *[OSPF/150] 02:04:38, metric 510, tag 0
                    > to 172.27.0.26 via fe-0/0/1.35

[edit]
JNCIE@M7i:R5#

[edit]
JNCIE@M7i:R5# run show route ::/0 exact   

inet6.0: 12 destinations, 14 routes (12 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

::/0               *[OSPF3/150] 02:05:05, metric 510, tag 0
                    > to fe80::212:1e00:2313:1000 via fe-0/0/1.35

[edit]
JNCIE@M7i:R5#


Task 11: Redistribute the interface route for the link between R5 and DC3 into OSPF as an external OSPF route. This route must be present in Area 1 as an external LSA but cannot be present in R2’s routing table. The [edit routing-options] hierarchy level on R2 cannot be altered to accomplish this task.
R5:
set logical-systems R5 policy-options policy-statement interface-routes term DC3 from protocol direct
set logical-systems R5 policy-options policy-statement interface-routes term DC3 from route-filter 172.27.0.96/28 exact
set logical-systems R5 policy-options policy-statement interface-routes term DC3 then accept
#
set logical-systems R5 protocols ospf export interface-routes

R2:
set logical-systems R2 policy-options policy-statement ospf-import term DC3 from protocol ospf
set logical-systems R2 policy-options policy-statement ospf-import term DC3 from route-filter 172.27.0.96/28 exact
set logical-systems R2 policy-options policy-statement ospf-import term DC3 then reject
#
set logical-systems R2 protocols ospf import ospf-import

Verification:
JNCIE@M7i:R2# run show ospf database external   
    OSPF AS SCOPE link state database
 Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len
Extern   10.22.0.0        172.27.255.4     0x80000002   122  0x22 0x44bb  36
Extern   10.22.1.0        172.27.255.3     0x80000001   220  0x22 0x8143  36
Extern   10.22.2.0        172.27.255.3     0x80000001   220  0x22 0x764d  36
Extern   10.22.3.0        172.27.255.3     0x80000001   220  0x22 0x6b57  36
Extern   10.22.4.0        172.27.255.3     0x80000001   220  0x22 0x6061  36
Extern   10.22.5.0        172.27.255.3     0x80000001   220  0x22 0x556b  36
Extern   10.22.6.0        172.27.255.3     0x80000001   220  0x22 0x4a75  36
Extern   10.22.7.0        172.27.255.3     0x80000001   220  0x22 0x3f7f  36
Extern   10.255.0.0       172.27.255.4     0x80000001   214  0x22 0xe911  36
Extern   172.16.16.0      172.27.255.1     0x80000001   222  0x22 0xb66d  36
Extern   172.27.0.96      172.27.255.4     0x80000002   121  0x22 0xca35  36

[edit]
JNCIE@M7i:R2#

[edit]
JNCIE@M7i:R2# run show route 172.27.0.96/28     

[edit]
JNCIE@M7i:R2#


Task 12: Redistribute the static routes found on R5 into OSPF. These specific routes must be present in Area 2 but cannot be present in Area 1. However, R2 must be able to reach these destinations.
R5:
set logical-systems R5 policy-options policy-statement stat-ospf term statics from protocol static
set logical-systems R5 policy-options policy-statement stat-ospf term statics from route-filter 10.255.0.0/19 orlonger
set logical-systems R5 policy-options policy-statement stat-ospf term statics then accept
#
set logical-systems R5 protocols ospf export stat-ospf

R3:
set logical-systems R3 protocols ospf area 0.0.0.2 nssa area-range 10.255.0.0/19

R4:
set logical-systems R4 protocols ospf area 0.0.0.2 nssa area-range 10.255.0.0/19

Verification:
JNCIE@M7i:R2# run show route 10.255/19

inet.0: 30 destinations, 30 routes (30 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.255.0.0/19      *[OSPF/150] 00:15:42, metric 1, tag 0
                    > to 172.27.0.6 via fe-0/0/0.24

[edit]
JNCIE@M7i:R2#

JNCIE@M7i:R3# run show route 10.255/19

inet.0: 41 destinations, 42 routes (41 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.255.0.0/19      *[OSPF/150] 00:16:16, metric 1, tag 0
                    > to 172.27.0.18 via fe-0/0/0.34
10.255.3.0/24      *[OSPF/150] 00:16:11, metric 0, tag 0
                    > to 172.27.0.25 via fe-0/0/0.35
10.255.4.0/28      *[OSPF/150] 00:16:11, metric 0, tag 0
                    > to 172.27.0.25 via fe-0/0/0.35
10.255.5.0/28      *[OSPF/150] 00:16:11, metric 0, tag 0
                    > to 172.27.0.25 via fe-0/0/0.35
10.255.6.0/28      *[OSPF/150] 00:16:11, metric 0, tag 0
                    > to 172.27.0.25 via fe-0/0/0.35
10.255.7.0/28      *[OSPF/150] 00:16:11, metric 0, tag 0
                    > to 172.27.0.25 via fe-0/0/0.35
10.255.8.0/25      *[OSPF/150] 00:16:11, metric 0, tag 0
                    > to 172.27.0.25 via fe-0/0/0.35
10.255.9.0/29      *[OSPF/150] 00:16:11, metric 0, tag 0
                    > to 172.27.0.25 via fe-0/0/0.35
10.255.10.0/26     *[OSPF/150] 00:16:11, metric 0, tag 0
                    > to 172.27.0.25 via fe-0/0/0.35
10.255.11.0/27     *[OSPF/150] 00:16:11, metric 0, tag 0
                    > to 172.27.0.25 via fe-0/0/0.35
10.255.17.0/25     *[OSPF/150] 00:16:11, metric 0, tag 0
                    > to 172.27.0.25 via fe-0/0/0.35

[edit]
JNCIE@M7i:R3#

JNCIE@M7i:R4# run show route 10.255/19

inet.0: 42 destinations, 42 routes (42 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.255.0.0/19      *[OSPF/150] 00:16:35, metric 16777215, tag 0
                      Discard
10.255.3.0/24      *[OSPF/150] 00:16:35, metric 0, tag 0
                    > to 172.27.0.22 via fe-0/0/0.45
10.255.4.0/28      *[OSPF/150] 00:16:35, metric 0, tag 0
                    > to 172.27.0.22 via fe-0/0/0.45
10.255.5.0/28      *[OSPF/150] 00:16:35, metric 0, tag 0
                    > to 172.27.0.22 via fe-0/0/0.45
10.255.6.0/28      *[OSPF/150] 00:16:35, metric 0, tag 0
                    > to 172.27.0.22 via fe-0/0/0.45
10.255.7.0/28      *[OSPF/150] 00:16:35, metric 0, tag 0
                    > to 172.27.0.22 via fe-0/0/0.45
10.255.8.0/25      *[OSPF/150] 00:16:35, metric 0, tag 0
                    > to 172.27.0.22 via fe-0/0/0.45
10.255.9.0/29      *[OSPF/150] 00:16:35, metric 0, tag 0
                    > to 172.27.0.22 via fe-0/0/0.45
10.255.10.0/26     *[OSPF/150] 00:16:35, metric 0, tag 0
                    > to 172.27.0.22 via fe-0/0/0.45
10.255.11.0/27     *[OSPF/150] 00:16:35, metric 0, tag 0
                    > to 172.27.0.22 via fe-0/0/0.45
10.255.17.0/25     *[OSPF/150] 00:16:35, metric 0, tag 0
                    > to 172.27.0.22 via fe-0/0/0.45

[edit]
JNCIE@M7i:R4#


Final configuration:
JNCIE@M7i# run show configuration | display set
set version 12.3R6.6
set system host-name M7i
set system time-zone Asia/Taipei
set system root-authentication encrypted-password "$1$xHrLYWb1$t7zaprV7gI28TCVhVXknd0"
set system name-server 168.95.1.1
set system name-server 8.8.8.8
set system login user JNCIE uid 2001
set system login user JNCIE class super-user
set system login user JNCIE authentication encrypted-password "$1$CFRZNtzp$xpn4xLgXQrBom0tstx93H/"
set system services telnet
set system ntp boot-server 211.22.103.158
set system ntp server 211.22.103.158 prefer
set system ntp server 140.112.2.189
set logical-systems C interfaces fe-0/0/1 unit 30 description To_R1-Fe-0/0/0.30
set logical-systems C interfaces fe-0/0/1 unit 30 vlan-id 30
set logical-systems C interfaces fe-0/0/1 unit 30 family inet address 172.27.0.30/30
set logical-systems C protocols rip group RIP export RIP-OUT
set logical-systems C protocols rip group RIP neighbor fe-0/0/1.30
set logical-systems C policy-options policy-statement RIP-OUT term 1 from protocol static
set logical-systems C policy-options policy-statement RIP-OUT term 1 then accept
set logical-systems C routing-options static route 172.16.16.0/29 receive
set logical-systems C routing-options static route 172.16.20.0/24 receive
set logical-systems C routing-options static route 172.16.21.0/24 receive
set logical-systems DC1 interfaces fe-0/0/2 unit 21 description To_DC2_R2-Fe-0/0/0.21_R4-Fe-0/0/1.21
set logical-systems DC1 interfaces fe-0/0/2 unit 21 vlan-id 21
set logical-systems DC1 interfaces fe-0/0/2 unit 21 family inet address 172.20.21.201/28
set logical-systems DC2 interfaces fe-0/0/3 unit 21 description To_DC1_R2-Fe-0/0/0.21_R4-Fe-0/0/1.21
set logical-systems DC2 interfaces fe-0/0/3 unit 21 vlan-id 21
set logical-systems DC2 interfaces fe-0/0/3 unit 21 family inet address 172.20.21.200/28
set logical-systems DC3 interfaces fe-0/0/2 unit 335 description To_R3-Fe-0/0/0.335_R5-Fe-0/0/1.335
set logical-systems DC3 interfaces fe-0/0/2 unit 335 vlan-id 335
set logical-systems DC3 interfaces fe-0/0/2 unit 335 family inet address 172.27.0.101/28
set logical-systems DC3 protocols rip group RIP export RIP-OUT
set logical-systems DC3 protocols rip group RIP neighbor fe-0/0/2.335
set logical-systems DC3 policy-options policy-statement RIP-OUT term 1 from protocol static
set logical-systems DC3 policy-options policy-statement RIP-OUT term 1 then accept
set logical-systems DC3 routing-options static route 10.22.1.0/24 receive
set logical-systems DC3 routing-options static route 10.22.2.0/24 receive
set logical-systems DC3 routing-options static route 10.22.3.0/24 receive
set logical-systems DC3 routing-options static route 10.22.4.0/24 receive
set logical-systems DC3 routing-options static route 10.22.5.0/24 receive
set logical-systems DC3 routing-options static route 10.22.6.0/24 receive
set logical-systems DC3 routing-options static route 10.22.7.0/24 receive
set logical-systems R1 interfaces fe-0/0/0 unit 12 description To_R2-Fe-0/0/1.12
set logical-systems R1 interfaces fe-0/0/0 unit 12 vlan-id 12
set logical-systems R1 interfaces fe-0/0/0 unit 12 family inet address 172.27.0.1/30
set logical-systems R1 interfaces fe-0/0/0 unit 12 family inet6 address 2008:4498::1/126
set logical-systems R1 interfaces fe-0/0/0 unit 13 description To_R3-Fe-0/0/1.13
set logical-systems R1 interfaces fe-0/0/0 unit 13 vlan-id 13
set logical-systems R1 interfaces fe-0/0/0 unit 13 family inet address 172.27.0.14/30
set logical-systems R1 interfaces fe-0/0/0 unit 13 family inet6 address 2008:4498::e/126
set logical-systems R1 interfaces fe-0/0/0 unit 14 description To_R4-Fe-0/0/1.14
set logical-systems R1 interfaces fe-0/0/0 unit 14 vlan-id 14
set logical-systems R1 interfaces fe-0/0/0 unit 14 family inet address 172.27.0.10/30
set logical-systems R1 interfaces fe-0/0/0 unit 14 family inet6 address 2008:4498::a/126
set logical-systems R1 interfaces fe-0/0/0 unit 30 description To_C-Fe-0/0/1.30
set logical-systems R1 interfaces fe-0/0/0 unit 30 vlan-id 30
set logical-systems R1 interfaces fe-0/0/0 unit 30 family inet address 172.27.0.29/30
set logical-systems R1 interfaces lo0 unit 1 family inet address 172.27.255.1/32
set logical-systems R1 protocols ospf export rip-ospf
set logical-systems R1 protocols ospf reference-bandwidth 50g
set logical-systems R1 protocols ospf area 0.0.0.0 interface fe-0/0/0.13 interface-type p2p
set logical-systems R1 protocols ospf area 0.0.0.0 interface fe-0/0/0.13 authentication simple-password "$9$gwaGjmfzCtOHqtO1RlegoJ"
set logical-systems R1 protocols ospf area 0.0.0.0 interface fe-0/0/0.14 interface-type p2p
set logical-systems R1 protocols ospf area 0.0.0.0 interface fe-0/0/0.14 authentication simple-password "$9$4lJUiP5FApBk.pBIEeK4aZ"
set logical-systems R1 protocols ospf area 0.0.0.0 interface lo0.1 passive
set logical-systems R1 protocols ospf area 0.0.0.1 interface fe-0/0/0.12 interface-type p2p
set logical-systems R1 protocols ospf3 reference-bandwidth 50g
set logical-systems R1 protocols ospf3 area 0.0.0.0 interface fe-0/0/0.13 interface-type p2p
set logical-systems R1 protocols ospf3 area 0.0.0.0 interface fe-0/0/0.14 interface-type p2p
set logical-systems R1 protocols ospf3 area 0.0.0.1 interface fe-0/0/0.12 interface-type p2p
set logical-systems R1 protocols rip group RIP neighbor fe-0/0/0.30
set logical-systems R1 policy-options policy-statement rip-ospf term agg from protocol aggregate
set logical-systems R1 policy-options policy-statement rip-ospf term agg from route-filter 172.16.16.0/21 exact
set logical-systems R1 policy-options policy-statement rip-ospf term agg then accept
set logical-systems R1 routing-options aggregate route 172.16.16.0/21
set logical-systems R2 interfaces fe-0/0/0 unit 10 description To_T1-Fe-0/0/1.10
set logical-systems R2 interfaces fe-0/0/0 unit 10 vlan-id 10
set logical-systems R2 interfaces fe-0/0/0 unit 10 family inet address 172.27.0.37/30
set logical-systems R2 interfaces fe-0/0/0 unit 10 family inet6 address 2008:4498::25/126
set logical-systems R2 interfaces fe-0/0/0 unit 21 description To_DC1-2_R4-Fe-0/0/1.21
set logical-systems R2 interfaces fe-0/0/0 unit 21 vlan-id 21
set logical-systems R2 interfaces fe-0/0/0 unit 21 family inet address 172.20.21.202/28
set logical-systems R2 interfaces fe-0/0/0 unit 24 description To_R4-Fe-0/0/1.24
set logical-systems R2 interfaces fe-0/0/0 unit 24 vlan-id 24
set logical-systems R2 interfaces fe-0/0/0 unit 24 family inet address 172.27.0.5/30
set logical-systems R2 interfaces fe-0/0/0 unit 24 family inet6 address 2008:4498::5/126
set logical-systems R2 interfaces fe-0/0/1 unit 12 description To_R1-Fe-0/0/0.12
set logical-systems R2 interfaces fe-0/0/1 unit 12 vlan-id 12
set logical-systems R2 interfaces fe-0/0/1 unit 12 family inet address 172.27.0.2/30
set logical-systems R2 interfaces fe-0/0/1 unit 12 family inet6 address 2008:4498::2/126
set logical-systems R2 interfaces lo0 unit 2 family inet address 172.27.255.2/32
set logical-systems R2 protocols ospf import ospf-import
set logical-systems R2 protocols ospf reference-bandwidth 50g
set logical-systems R2 protocols ospf area 0.0.0.1 interface fe-0/0/0.24 interface-type p2p
set logical-systems R2 protocols ospf area 0.0.0.1 interface fe-0/0/0.24 dead-interval 20
set logical-systems R2 protocols ospf area 0.0.0.1 interface lo0.2 passive
set logical-systems R2 protocols ospf area 0.0.0.1 interface fe-0/0/1.12 interface-type p2p
set logical-systems R2 protocols ospf area 0.0.0.1 interface fe-0/0/0.10 passive
set logical-systems R2 protocols ospf3 reference-bandwidth 50g
set logical-systems R2 protocols ospf3 area 0.0.0.1 interface fe-0/0/0.24 interface-type p2p
set logical-systems R2 protocols ospf3 area 0.0.0.1 interface fe-0/0/0.24 dead-interval 20
set logical-systems R2 protocols ospf3 area 0.0.0.1 interface fe-0/0/1.12 interface-type p2p
set logical-systems R2 protocols ospf3 area 0.0.0.1 interface fe-0/0/0.10 passive
set logical-systems R2 policy-options policy-statement ospf-import term DC3 from protocol ospf
set logical-systems R2 policy-options policy-statement ospf-import term DC3 from route-filter 172.27.0.96/28 exact
set logical-systems R2 policy-options policy-statement ospf-import term DC3 then reject
set logical-systems R3 interfaces fe-0/0/0 unit 34 description To_R4-Fe-0/0/1.34
set logical-systems R3 interfaces fe-0/0/0 unit 34 vlan-id 34
set logical-systems R3 interfaces fe-0/0/0 unit 34 family inet address 172.27.0.17/30
set logical-systems R3 interfaces fe-0/0/0 unit 34 family inet6 address 2008:4498::13/126
set logical-systems R3 interfaces fe-0/0/0 unit 35 description To_R5-Fe-0/0/1.35
set logical-systems R3 interfaces fe-0/0/0 unit 35 vlan-id 35
set logical-systems R3 interfaces fe-0/0/0 unit 35 family inet address 172.27.0.26/30
set logical-systems R3 interfaces fe-0/0/0 unit 35 family inet6 address 2008:4498::1a/126
set logical-systems R3 interfaces fe-0/0/0 unit 335 description To_DC3_R5-Fe-0/0/1.335
set logical-systems R3 interfaces fe-0/0/0 unit 335 vlan-id 335
set logical-systems R3 interfaces fe-0/0/0 unit 335 family inet address 172.27.0.103/28
set logical-systems R3 interfaces fe-0/0/1 unit 13 description To_R1-Fe-0/0/0.13
set logical-systems R3 interfaces fe-0/0/1 unit 13 vlan-id 13
set logical-systems R3 interfaces fe-0/0/1 unit 13 family inet address 172.27.0.13/30
set logical-systems R3 interfaces fe-0/0/1 unit 13 family inet6 address 2008:4498::d/126
set logical-systems R3 interfaces lo0 unit 3 family inet address 172.27.255.3/32
set logical-systems R3 protocols ospf export rip-ospf
set logical-systems R3 protocols ospf reference-bandwidth 50g
set logical-systems R3 protocols ospf area 0.0.0.0 interface fe-0/0/1.13 interface-type p2p
set logical-systems R3 protocols ospf area 0.0.0.0 interface fe-0/0/1.13 authentication simple-password "$9$5zn90BEevLApvLxNY25QF"
set logical-systems R3 protocols ospf area 0.0.0.0 interface fe-0/0/0.34 interface-type p2p
set logical-systems R3 protocols ospf area 0.0.0.0 interface fe-0/0/0.34 authentication simple-password "$9$0B.w1ESvWxwYoreYoJGq.0BI"
set logical-systems R3 protocols ospf area 0.0.0.0 interface lo0.3 passive
set logical-systems R3 protocols ospf area 0.0.0.2 nssa default-lsa default-metric 10
set logical-systems R3 protocols ospf area 0.0.0.2 nssa default-lsa metric-type 1
set logical-systems R3 protocols ospf area 0.0.0.2 nssa default-lsa type-7
set logical-systems R3 protocols ospf area 0.0.0.2 nssa no-summaries
set logical-systems R3 protocols ospf area 0.0.0.2 nssa area-range 10.255.0.0/19
set logical-systems R3 protocols ospf area 0.0.0.2 interface fe-0/0/0.35 interface-type p2p
set logical-systems R3 protocols ospf3 reference-bandwidth 50g
set logical-systems R3 protocols ospf3 area 0.0.0.0 interface fe-0/0/1.13 interface-type p2p
set logical-systems R3 protocols ospf3 area 0.0.0.0 interface fe-0/0/0.34 interface-type p2p
set logical-systems R3 protocols ospf3 area 0.0.0.2 nssa default-lsa default-metric 10
set logical-systems R3 protocols ospf3 area 0.0.0.2 nssa default-lsa metric-type 1
set logical-systems R3 protocols ospf3 area 0.0.0.2 nssa default-lsa type-7
set logical-systems R3 protocols ospf3 area 0.0.0.2 nssa no-summaries
set logical-systems R3 protocols ospf3 area 0.0.0.2 interface fe-0/0/0.35 interface-type p2p
set logical-systems R3 protocols rip group RIP neighbor fe-0/0/0.335
set logical-systems R3 policy-options policy-statement rip-ospf term rip from protocol rip
set logical-systems R3 policy-options policy-statement rip-ospf term rip from route-filter 10.22.0.0/21 orlonger
set logical-systems R3 policy-options policy-statement rip-ospf term rip then accept
set logical-systems R4 interfaces fe-0/0/0 unit 45 description To_R5-Fe-0/0/1.45
set logical-systems R4 interfaces fe-0/0/0 unit 45 vlan-id 45
set logical-systems R4 interfaces fe-0/0/0 unit 45 family inet address 172.27.0.21/30
set logical-systems R4 interfaces fe-0/0/0 unit 45 family inet6 address 2008:4498::15/126
set logical-systems R4 interfaces fe-0/0/1 unit 14 description To_R1-Fe-0/0/0.14
set logical-systems R4 interfaces fe-0/0/1 unit 14 vlan-id 14
set logical-systems R4 interfaces fe-0/0/1 unit 14 family inet address 172.27.0.9/30
set logical-systems R4 interfaces fe-0/0/1 unit 14 family inet6 address 2008:4498::9/126
set logical-systems R4 interfaces fe-0/0/1 unit 21 description To_DC1-2_R2-Fe-0/0/0.21
set logical-systems R4 interfaces fe-0/0/1 unit 21 vlan-id 21
set logical-systems R4 interfaces fe-0/0/1 unit 21 family inet address 172.20.21.204/28
set logical-systems R4 interfaces fe-0/0/1 unit 24 description To_R2-Fe-0/0/0.24
set logical-systems R4 interfaces fe-0/0/1 unit 24 vlan-id 24
set logical-systems R4 interfaces fe-0/0/1 unit 24 family inet address 172.27.0.6/30
set logical-systems R4 interfaces fe-0/0/1 unit 24 family inet6 address 2008:4498::6/126
set logical-systems R4 interfaces fe-0/0/1 unit 34 description To_R3-Fe-0/0/0.34
set logical-systems R4 interfaces fe-0/0/1 unit 34 vlan-id 34
set logical-systems R4 interfaces fe-0/0/1 unit 34 family inet address 172.27.0.18/30
set logical-systems R4 interfaces fe-0/0/1 unit 34 family inet6 address 2008:4498::12/126
set logical-systems R4 interfaces lo0 unit 4 family inet address 172.27.255.4/32
set logical-systems R4 protocols ospf overload timeout 240
set logical-systems R4 protocols ospf reference-bandwidth 50g
set logical-systems R4 protocols ospf area 0.0.0.1 interface fe-0/0/1.24 interface-type p2p
set logical-systems R4 protocols ospf area 0.0.0.1 interface fe-0/0/1.24 dead-interval 20
set logical-systems R4 protocols ospf area 0.0.0.0 interface fe-0/0/1.14 interface-type p2p
set logical-systems R4 protocols ospf area 0.0.0.0 interface fe-0/0/1.14 authentication simple-password "$9$enzML7wYojHm-VHmfT/9evW"
set logical-systems R4 protocols ospf area 0.0.0.0 interface fe-0/0/1.34 interface-type p2p
set logical-systems R4 protocols ospf area 0.0.0.0 interface fe-0/0/1.34 authentication simple-password "$9$iqPT69pRhrz3hrev7Nik."
set logical-systems R4 protocols ospf area 0.0.0.0 interface lo0.4 passive
set logical-systems R4 protocols ospf area 0.0.0.2 nssa default-lsa default-metric 5
set logical-systems R4 protocols ospf area 0.0.0.2 nssa default-lsa metric-type 2
set logical-systems R4 protocols ospf area 0.0.0.2 nssa default-lsa type-7
set logical-systems R4 protocols ospf area 0.0.0.2 nssa no-summaries
set logical-systems R4 protocols ospf area 0.0.0.2 nssa area-range 10.255.0.0/19
set logical-systems R4 protocols ospf area 0.0.0.2 interface fe-0/0/0.45 interface-type p2p
set logical-systems R4 protocols ospf3 overload timeout 240
set logical-systems R4 protocols ospf3 reference-bandwidth 50g
set logical-systems R4 protocols ospf3 area 0.0.0.1 interface fe-0/0/1.24 interface-type p2p
set logical-systems R4 protocols ospf3 area 0.0.0.1 interface fe-0/0/1.24 dead-interval 20
set logical-systems R4 protocols ospf3 area 0.0.0.0 interface fe-0/0/1.14 interface-type p2p
set logical-systems R4 protocols ospf3 area 0.0.0.0 interface fe-0/0/1.34 interface-type p2p
set logical-systems R4 protocols ospf3 area 0.0.0.2 nssa default-lsa default-metric 5
set logical-systems R4 protocols ospf3 area 0.0.0.2 nssa default-lsa metric-type 2
set logical-systems R4 protocols ospf3 area 0.0.0.2 nssa default-lsa type-7
set logical-systems R4 protocols ospf3 area 0.0.0.2 nssa no-summaries
set logical-systems R4 protocols ospf3 area 0.0.0.2 interface fe-0/0/0.45 interface-type p2p
set logical-systems R5 interfaces fe-0/0/0 unit 20 description To_T2-Fe-0/0/1.20
set logical-systems R5 interfaces fe-0/0/0 unit 20 vlan-id 20
set logical-systems R5 interfaces fe-0/0/0 unit 20 family inet address 172.27.0.57/30
set logical-systems R5 interfaces fe-0/0/0 unit 20 family inet6 address 2008:4498::39/126
set logical-systems R5 interfaces fe-0/0/1 unit 35 description To_R3-Fe-0/0/0.35
set logical-systems R5 interfaces fe-0/0/1 unit 35 vlan-id 35
set logical-systems R5 interfaces fe-0/0/1 unit 35 family inet address 172.27.0.25/30
set logical-systems R5 interfaces fe-0/0/1 unit 35 family inet6 address 2008:4498::19/126
set logical-systems R5 interfaces fe-0/0/1 unit 45 description To_R4-Fe-0/0/0.45
set logical-systems R5 interfaces fe-0/0/1 unit 45 vlan-id 45
set logical-systems R5 interfaces fe-0/0/1 unit 45 family inet address 172.27.0.22/30
set logical-systems R5 interfaces fe-0/0/1 unit 45 family inet6 address 2008:4498::16/126
set logical-systems R5 interfaces fe-0/0/1 unit 335 description To_DC3_R3-Fe-0/0/0.335
set logical-systems R5 interfaces fe-0/0/1 unit 335 vlan-id 335
set logical-systems R5 interfaces fe-0/0/1 unit 335 family inet address 172.27.0.105/28
set logical-systems R5 interfaces lo0 unit 5 family inet address 172.27.255.5/32
set logical-systems R5 protocols ospf export rip-ospf
set logical-systems R5 protocols ospf export interface-routes
set logical-systems R5 protocols ospf export stat-ospf
set logical-systems R5 protocols ospf reference-bandwidth 50g
set logical-systems R5 protocols ospf area 0.0.0.2 nssa
set logical-systems R5 protocols ospf area 0.0.0.2 interface fe-0/0/1.45 interface-type p2p
set logical-systems R5 protocols ospf area 0.0.0.2 interface fe-0/0/1.35 interface-type p2p
set logical-systems R5 protocols ospf area 0.0.0.2 interface lo0.5 passive
set logical-systems R5 protocols ospf area 0.0.0.2 interface fe-0/0/0.20 passive
set logical-systems R5 protocols ospf3 reference-bandwidth 50g
set logical-systems R5 protocols ospf3 area 0.0.0.2 nssa
set logical-systems R5 protocols ospf3 area 0.0.0.2 interface fe-0/0/1.45 interface-type p2p
set logical-systems R5 protocols ospf3 area 0.0.0.2 interface fe-0/0/1.35 interface-type p2p
set logical-systems R5 protocols ospf3 area 0.0.0.2 interface fe-0/0/0.20 passive
set logical-systems R5 protocols rip group RIP preference 155
set logical-systems R5 protocols rip group RIP neighbor fe-0/0/1.335
set logical-systems R5 policy-options policy-statement interface-routes term DC3 from protocol direct
set logical-systems R5 policy-options policy-statement interface-routes term DC3 from route-filter 172.27.0.96/28 exact
set logical-systems R5 policy-options policy-statement interface-routes term DC3 then accept
set logical-systems R5 policy-options policy-statement rip-ospf term agg from protocol aggregate
set logical-systems R5 policy-options policy-statement rip-ospf term agg from route-filter 10.22.0.0/21 exact
set logical-systems R5 policy-options policy-statement rip-ospf term agg then accept
set logical-systems R5 policy-options policy-statement stat-ospf term statics from protocol static
set logical-systems R5 policy-options policy-statement stat-ospf term statics from route-filter 10.255.0.0/19 orlonger
set logical-systems R5 policy-options policy-statement stat-ospf term statics then accept
set logical-systems R5 routing-options static route 10.255.3.0/24 receive
set logical-systems R5 routing-options static route 10.255.4.0/28 receive
set logical-systems R5 routing-options static route 10.255.5.0/28 receive
set logical-systems R5 routing-options static route 10.255.6.0/28 receive
set logical-systems R5 routing-options static route 10.255.7.0/28 receive
set logical-systems R5 routing-options static route 10.255.8.0/25 receive
set logical-systems R5 routing-options static route 10.255.9.0/29 receive
set logical-systems R5 routing-options static route 10.255.10.0/26 receive
set logical-systems R5 routing-options static route 10.255.11.0/27 receive
set logical-systems R5 routing-options static route 10.255.17.0/25 receive
set logical-systems R5 routing-options aggregate route 10.22.0.0/21
set logical-systems T1 interfaces fe-0/0/1 unit 10 description To_R2-Fe-0/0/0.10
set logical-systems T1 interfaces fe-0/0/1 unit 10 vlan-id 10
set logical-systems T1 interfaces fe-0/0/1 unit 10 family inet address 172.27.0.38/30
set logical-systems T1 interfaces fe-0/0/1 unit 10 family inet6 address 2008:4498::26/126
set logical-systems T2 interfaces fe-0/0/1 unit 20 description To_R5-Fe-0/0/0.20
set logical-systems T2 interfaces fe-0/0/1 unit 20 vlan-id 20
set logical-systems T2 interfaces fe-0/0/1 unit 20 family inet address 172.27.0.58/30
set logical-systems T2 interfaces fe-0/0/1 unit 20 family inet6 address 2008:4498::3a/126
set interfaces fe-0/0/0 vlan-tagging
set interfaces fe-0/0/1 vlan-tagging
set interfaces fe-0/0/2 vlan-tagging
set interfaces fe-0/0/3 vlan-tagging
set interfaces fxp0 description To_SW1_Fa1/0/23
set interfaces fxp0 unit 0 family inet address 192.168.100.221/26
set routing-options static route 0.0.0.0/0 next-hop 192.168.100.200

[edit]
JNCIE@M7i#


Reference:
JNCIE Service Provider Bootcamp 10.b Detailed Lab Guide Lab3 OSPF Implementation

JunOS 12.3 OSPF Configuration Guide
http://www.juniper.net/techpubs/en_US/junos12.3/information-products/pathway-pages/config-guide-routing/config-guide-ospf.html


最初發表 / 最後更新: 2015.02.02 / 2018.06.01

0 comments:

張貼留言