Published 6月 15, 2018 by with 0 comment

JNCIP-SP Lab: Study Guide Chapter 5 Case Study


In this lab, I use Olive (JunOS 12.1R1.9) to finish the JNCIP study guide chapter 5 case study lab.
I use two VMWares to run Olive-1 and Olive-2
Olive-1 have run logical-systems r1 to r7 and Ovlie-2 have run logical-systems RIP.
Note: Due to JNCIP study Guide use old version JunOS (5.2R2.3) and  I use JunOS (12.1R1.9).
So,This lab will find some commands different.


Before we start lab, we need to load pre-configuration which JNCIP study guide chapter 3 case study lab(OSPF).

For VMware Olive-1 & Olive-2 setting:





VMware Olive-1 pre-configuration:
set version 12.1R1.9
set system host-name JNCIP_1
set system time-zone Asia/Taipei
set system authentication-order radius
set system ports auxiliary type vt100
set system root-authentication encrypted-password "$1$9xaCfeIA$DoMiHW7akhvyMpAHebr/R0"
set system radius-server 10.0.200.2 secret "$9$-DbYoDi.z39JG39ApREdbs"
set system login class NOC permissions view
set system login user lab uid 2000
set system login user lab class super-user
set system login user lab authentication encrypted-password "$1$q0M9ehlx$9XZkXwUuPJK1bVFie2FCS."
set system login user noc uid 2001
set system login user noc class NOC
set system login user noc authentication encrypted-password "$1$nutuTWm9$j40sAjOFPTImr7tm/6/pE1"
set system static-host-mapping proctor inet 10.0.200.1
set system services ssh root-login deny
set system services ssh protocol-version v2
set system services telnet
set system syslog user * any emergency
set system syslog host 10.0.200.2 interactive-commands any
set system syslog file messages any notice
set system syslog file messages authorization info
set system syslog file interactive-commands interactive-commands any
set system syslog file r1-cli interactive-commands any
set system syslog file r1-cli archive files 4
set system ntp boot-server 10.0.1.102
set system ntp authentication-key 200 type md5
set system ntp authentication-key 200 value "$9$PTF/uORlK8CtK8X7sYfTz"
set system ntp broadcast-client
set system ntp trusted-key 200
set logical-systems r1 interfaces em1 unit 12 description "Connect to r2 em2.12"
set logical-systems r1 interfaces em1 unit 12 vlan-id 12
set logical-systems r1 interfaces em1 unit 12 family inet address 10.0.4.5/30
set logical-systems r1 interfaces em1 unit 13 description "Connect to r3 em3.13"
set logical-systems r1 interfaces em1 unit 13 vlan-id 13
set logical-systems r1 interfaces em1 unit 13 family inet address 10.0.4.14/30
set logical-systems r1 interfaces em1 unit 129 description "Connect to r2 em2.129"
set logical-systems r1 interfaces em1 unit 129 vlan-id 129
set logical-systems r1 interfaces em1 unit 129 family inet address 10.0.5.1/24
set logical-systems r1 interfaces lo0 unit 1 family inet address 10.0.6.1/32
set logical-systems r1 protocols ospf export VL129
set logical-systems r1 protocols ospf reference-bandwidth 1g
set logical-systems r1 protocols ospf area 0.0.0.1 nssa
set logical-systems r1 protocols ospf area 0.0.0.1 interface em1.12 priority 0
set logical-systems r1 protocols ospf area 0.0.0.1 interface em1.13 priority 0
set logical-systems r1 protocols ospf area 0.0.0.1 interface lo0.1 passive
set logical-systems r1 policy-options policy-statement VL129 term 1 from protocol direct
set logical-systems r1 policy-options policy-statement VL129 term 1 from route-filter 10.0.5.0/24 exact
set logical-systems r1 policy-options policy-statement VL129 term 1 then metric 10
set logical-systems r1 policy-options policy-statement VL129 term 1 then tag 420
set logical-systems r1 policy-options policy-statement VL129 term 1 then external type 1
set logical-systems r1 policy-options policy-statement VL129 term 1 then accept
set logical-systems r1 routing-options router-id 10.0.6.1
set logical-systems r2 interfaces em2 unit 12 description "Connect to r1 em1.12"
set logical-systems r2 interfaces em2 unit 12 vlan-id 12
set logical-systems r2 interfaces em2 unit 12 family inet address 10.0.4.6/30
set logical-systems r2 interfaces em2 unit 23 description "Connect to r3 em3.23"
set logical-systems r2 interfaces em2 unit 23 vlan-id 23
set logical-systems r2 interfaces em2 unit 23 family inet address 10.0.4.2/30
set logical-systems r2 interfaces em2 unit 24 description "Connect to r4 em4.24"
set logical-systems r2 interfaces em2 unit 24 vlan-id 24
set logical-systems r2 interfaces em2 unit 24 family inet address 10.0.4.10/30
set logical-systems r2 interfaces em2 unit 129 description "Connect to r1 em1.129"
set logical-systems r2 interfaces em2 unit 129 vlan-id 129
set logical-systems r2 interfaces em2 unit 129 family inet address 10.0.5.2/24
set logical-systems r2 interfaces lo0 unit 2 family inet address 10.0.6.2/32
set logical-systems r2 protocols ospf export VL129
set logical-systems r2 protocols ospf reference-bandwidth 1g
set logical-systems r2 protocols ospf area 0.0.0.1 nssa
set logical-systems r2 protocols ospf area 0.0.0.1 interface em2.12
set logical-systems r2 protocols ospf area 0.0.0.1 interface em2.23
set logical-systems r2 protocols ospf area 0.0.0.1 interface em2.24
set logical-systems r2 protocols ospf area 0.0.0.1 interface lo0.2 passive
set logical-systems r2 policy-options policy-statement VL129 term 1 from protocol direct
set logical-systems r2 policy-options policy-statement VL129 term 1 from route-filter 10.0.5.0/24 exact
set logical-systems r2 policy-options policy-statement VL129 term 1 then metric 10
set logical-systems r2 policy-options policy-statement VL129 term 1 then tag 420
set logical-systems r2 policy-options policy-statement VL129 term 1 then external type 1
set logical-systems r2 policy-options policy-statement VL129 term 1 then accept
set logical-systems r2 routing-options router-id 10.0.6.2
set logical-systems r3 interfaces em3 unit 13 description "Connecto to r1 em1.13"
set logical-systems r3 interfaces em3 unit 13 vlan-id 13
set logical-systems r3 interfaces em3 unit 13 family inet address 10.0.4.13/30
set logical-systems r3 interfaces em3 unit 23 description "Connecto to r2 em2.23"
set logical-systems r3 interfaces em3 unit 23 vlan-id 23
set logical-systems r3 interfaces em3 unit 23 family inet address 10.0.4.1/30
set logical-systems r3 interfaces em3 unit 34 description "Connecto to r4 em4.34"
set logical-systems r3 interfaces em3 unit 34 vlan-id 34
set logical-systems r3 interfaces em3 unit 34 family inet address 10.0.2.5/30
set logical-systems r3 interfaces em3 unit 35 description "Connecto to r5 em5.35"
set logical-systems r3 interfaces em3 unit 35 vlan-id 35
set logical-systems r3 interfaces em3 unit 35 family inet address 10.0.2.2/30
set logical-systems r3 interfaces lo0 unit 3 family inet address 10.0.3.3/32
set logical-systems r3 protocols ospf reference-bandwidth 1g
set logical-systems r3 protocols ospf area 0.0.0.1 nssa default-lsa default-metric 10
set logical-systems r3 protocols ospf area 0.0.0.1 nssa default-lsa metric-type 1
set logical-systems r3 protocols ospf area 0.0.0.1 nssa default-lsa type-7
set logical-systems r3 protocols ospf area 0.0.0.1 nssa no-summaries
set logical-systems r3 protocols ospf area 0.0.0.1 area-range 10.0.4.0/22
set logical-systems r3 protocols ospf area 0.0.0.1 interface em3.23 metric 2
set logical-systems r3 protocols ospf area 0.0.0.1 interface em3.13 metric 2
set logical-systems r3 protocols ospf area 0.0.0.0 interface em3.34 interface-type nbma
set logical-systems r3 protocols ospf area 0.0.0.0 interface em3.34 authentication md5 1 key "$9$PTF/cSeK87"
set logical-systems r3 protocols ospf area 0.0.0.0 interface em3.34 neighbor 10.0.2.6 eligible
set logical-systems r3 protocols ospf area 0.0.0.0 interface em3.35 authentication md5 1 key "$9$c0krK84oGUHm"
set logical-systems r3 protocols ospf area 0.0.0.0 interface lo0.3 passive
set logical-systems r3 routing-options router-id 10.0.3.3
set logical-systems r4 interfaces em4 unit 24 description "Connect to r2 em2.24"
set logical-systems r4 interfaces em4 unit 24 vlan-id 24
set logical-systems r4 interfaces em4 unit 24 family inet address 10.0.4.9/30
set logical-systems r4 interfaces em4 unit 34 description "Connect to r3 em3.34"
set logical-systems r4 interfaces em4 unit 34 vlan-id 34
set logical-systems r4 interfaces em4 unit 34 family inet address 10.0.2.6/30
set logical-systems r4 interfaces em4 unit 45 description "Connect to r5 em5.45"
set logical-systems r4 interfaces em4 unit 45 vlan-id 45
set logical-systems r4 interfaces em4 unit 45 family inet address 10.0.2.10/30
set logical-systems r4 interfaces lo0 unit 4 family inet address 10.0.3.4/32
set logical-systems r4 protocols ospf reference-bandwidth 1g
set logical-systems r4 protocols ospf area 0.0.0.0 interface em4.34 interface-type nbma
set logical-systems r4 protocols ospf area 0.0.0.0 interface em4.34 authentication md5 1 key "$9$OIrTIhrVb2gJD"
set logical-systems r4 protocols ospf area 0.0.0.0 interface em4.34 neighbor 10.0.2.5
set logical-systems r4 protocols ospf area 0.0.0.0 interface em4.45 authentication md5 1 key "$9$NPVs4PfzF/t"
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.1 nssa default-lsa default-metric 10
set logical-systems r4 protocols ospf area 0.0.0.1 nssa default-lsa metric-type 1
set logical-systems r4 protocols ospf area 0.0.0.1 nssa default-lsa type-7
set logical-systems r4 protocols ospf area 0.0.0.1 nssa no-summaries
set logical-systems r4 protocols ospf area 0.0.0.1 area-range 10.0.4.0/22
set logical-systems r4 protocols ospf area 0.0.0.1 interface em4.24
set logical-systems r4 routing-options router-id 10.0.3.4
set logical-systems r5 interfaces em5 unit 35 description "Connect to r3 em3.35"
set logical-systems r5 interfaces em5 unit 35 vlan-id 35
set logical-systems r5 interfaces em5 unit 35 family inet address 10.0.2.1/30
set logical-systems r5 interfaces em5 unit 45 description "Connect to r4 em4.45"
set logical-systems r5 interfaces em5 unit 45 vlan-id 45
set logical-systems r5 interfaces em5 unit 45 family inet address 10.0.2.9/30
set logical-systems r5 interfaces em5 unit 56 description "Connect to r6 em6.56"
set logical-systems r5 interfaces em5 unit 56 vlan-id 56
set logical-systems r5 interfaces em5 unit 56 family inet address 10.0.8.6/30
set logical-systems r5 interfaces em5 unit 57 description "Connect to r7 em7.57"
set logical-systems r5 interfaces em5 unit 57 vlan-id 57
set logical-systems r5 interfaces em5 unit 57 family inet address 10.0.8.9/30
set logical-systems r5 interfaces lo0 unit 5 family inet address 10.0.3.5/32
set logical-systems r5 protocols ospf reference-bandwidth 1g
set logical-systems r5 protocols ospf area 0.0.0.0 interface em5.35 authentication md5 1 key "$9$2foZjn6AtOR"
set logical-systems r5 protocols ospf area 0.0.0.0 interface em5.45 authentication md5 1 key "$9$F7rr6CuKvLX-w"
set logical-systems r5 protocols ospf area 0.0.0.0 interface lo0.5 passive
set logical-systems r5 protocols ospf area 0.0.0.20 area-range 10.0.8.0/21
set logical-systems r5 protocols ospf area 0.0.0.20 area-range 172.16.40.0/28
set logical-systems r5 protocols ospf area 0.0.0.20 interface em5.56
set logical-systems r5 protocols ospf area 0.0.0.20 interface em5.57
set logical-systems r5 routing-options router-id 10.0.3.5
set logical-systems r6 interfaces em6 unit 56 description "Connect to r5 em5.56"
set logical-systems r6 interfaces em6 unit 56 vlan-id 56
set logical-systems r6 interfaces em6 unit 56 family inet address 10.0.8.5/30
set logical-systems r6 interfaces em6 unit 67 description "Connect to r7 em7.67"
set logical-systems r6 interfaces em6 unit 67 vlan-id 67
set logical-systems r6 interfaces em6 unit 67 family inet address 10.0.8.1/30
set logical-systems r6 interfaces em6 unit 68 description "Connect to RIP em1.68"
set logical-systems r6 interfaces em6 unit 68 vlan-id 68
set logical-systems r6 interfaces em6 unit 68 family inet address 172.16.40.2/30
set logical-systems r6 interfaces lo0 unit 6 family inet address 10.0.9.6/32
set logical-systems r6 protocols ospf export RIP>OSPF
set logical-systems r6 protocols ospf reference-bandwidth 1g
set logical-systems r6 protocols ospf area 0.0.0.20 interface em6.56
set logical-systems r6 protocols ospf area 0.0.0.20 interface em6.67
set logical-systems r6 protocols ospf area 0.0.0.20 interface lo0.6 passive
set logical-systems r6 protocols ospf area 0.0.0.20 interface em6.68 passive
set logical-systems r6 protocols rip group RIP metric-out 1
set logical-systems r6 protocols rip group RIP export OSPF>RIP
set logical-systems r6 protocols rip group RIP import RIP>IMPORT-1
set logical-systems r6 protocols rip group RIP neighbor em6.68
set logical-systems r6 policy-options policy-statement OSPF>RIP term 1 from protocol ospf
set logical-systems r6 policy-options policy-statement OSPF>RIP term 1 from route-filter 10.0.5.0/24 exact
set logical-systems r6 policy-options policy-statement OSPF>RIP term 1 then accept
set logical-systems r6 policy-options policy-statement OSPF>RIP term 2 then reject
set logical-systems r6 policy-options policy-statement RIP>IMPORT-1 term 1 from protocol rip
set logical-systems r6 policy-options policy-statement RIP>IMPORT-1 term 1 from route-filter 192.168.0.0/24 orlonger
set logical-systems r6 policy-options policy-statement RIP>IMPORT-1 term 1 then accept
set logical-systems r6 policy-options policy-statement RIP>IMPORT-1 term 2 then reject
set logical-systems r6 policy-options policy-statement RIP>IMPORT-2 from protocol rip
set logical-systems r6 policy-options policy-statement RIP>IMPORT-2 from route-filter 10.0.5.0/24 exact
set logical-systems r6 policy-options policy-statement RIP>IMPORT-2 then preference 155
set logical-systems r6 policy-options policy-statement RIP>OSPF term 1 from protocol aggregate
set logical-systems r6 policy-options policy-statement RIP>OSPF term 1 from route-filter 192.168.0.0/22 exact
set logical-systems r6 policy-options policy-statement RIP>OSPF term 1 then accept
set logical-systems r6 routing-options aggregate route 192.168.0.0/22
set logical-systems r6 routing-options router-id 10.0.9.6
set logical-systems r7 interfaces em7 unit 57 description "Connect to r5 em5.57"
set logical-systems r7 interfaces em7 unit 57 vlan-id 57
set logical-systems r7 interfaces em7 unit 57 family inet address 10.0.8.10/30
set logical-systems r7 interfaces em7 unit 67 description "Connect to r6 em6.67"
set logical-systems r7 interfaces em7 unit 67 vlan-id 67
set logical-systems r7 interfaces em7 unit 67 family inet address 10.0.8.2/30
set logical-systems r7 interfaces em7 unit 78 description "Connect to RIP em1.78"
set logical-systems r7 interfaces em7 unit 78 vlan-id 78
set logical-systems r7 interfaces em7 unit 78 family inet address 172.16.40.6/30
set logical-systems r7 interfaces lo0 unit 7 family inet address 10.0.9.7/32
set logical-systems r7 protocols ospf export RIP>OSPF
set logical-systems r7 protocols ospf reference-bandwidth 1g
set logical-systems r7 protocols ospf area 0.0.0.20 interface em7.57
set logical-systems r7 protocols ospf area 0.0.0.20 interface em7.67
set logical-systems r7 protocols ospf area 0.0.0.20 interface lo0.7 passive
set logical-systems r7 protocols ospf area 0.0.0.20 interface em7.78 passive
set logical-systems r7 protocols rip group RIP metric-out 2
set logical-systems r7 protocols rip group RIP export OSPF>RIP
set logical-systems r7 protocols rip group RIP import RIP>IMPORT-1
set logical-systems r7 protocols rip group RIP neighbor em7.78
set logical-systems r7 policy-options policy-statement OSPF>RIP term 1 from protocol ospf
set logical-systems r7 policy-options policy-statement OSPF>RIP term 1 from route-filter 10.0.5.0/24 exact
set logical-systems r7 policy-options policy-statement OSPF>RIP term 1 then accept
set logical-systems r7 policy-options policy-statement OSPF>RIP term 2 then reject
set logical-systems r7 policy-options policy-statement RIP>IMPORT-1 term 1 from protocol rip
set logical-systems r7 policy-options policy-statement RIP>IMPORT-1 term 1 from route-filter 192.168.0.0/24 orlonger
set logical-systems r7 policy-options policy-statement RIP>IMPORT-1 term 1 then accept
set logical-systems r7 policy-options policy-statement RIP>IMPORT-1 term 2 then reject
set logical-systems r7 policy-options policy-statement RIP>IMPORT-2 term 1 from protocol rip
set logical-systems r7 policy-options policy-statement RIP>IMPORT-2 term 1 from route-filter 10.0.5.0/24 exact
set logical-systems r7 policy-options policy-statement RIP>IMPORT-2 term 1 then preference 155
set logical-systems r7 policy-options policy-statement RIP>OSPF term 1 from protocol aggregate
set logical-systems r7 policy-options policy-statement RIP>OSPF term 1 from route-filter 192.168.0.0/22 exact
set logical-systems r7 policy-options policy-statement RIP>OSPF term 1 then accept
set logical-systems r7 routing-options aggregate route 192.168.0.0/22
set logical-systems r7 routing-options router-id 10.0.9.7
set chassis alarm management-ethernet link-down ignore
set interfaces em0 unit 0 family inet address 10.0.1.1/24
set interfaces em1 vlan-tagging
set interfaces em2 vlan-tagging
set interfaces em3 vlan-tagging
set interfaces em4 vlan-tagging
set interfaces em5 vlan-tagging
set interfaces em6 vlan-tagging
set interfaces em7 vlan-tagging
set snmp interface em0.0
set snmp community public authorization read-only
set snmp community private authorization read-write
set snmp trap-group FOO version v1
set snmp trap-group FOO categories authentication
set snmp trap-group FOO targets 10.0.200.2
set routing-options static route 10.0.200.0/24 next-hop 10.0.1.102
set routing-options static route 10.0.200.0/24 no-readvertise


VMware Olive-2 pre-configuration:
set version 12.1R1.9
set system host-name JNCIP_2
set system root-authentication encrypted-password "$1$5bfCL6uX$DlJ/81p.yu2.aai.8e7tA1"
set logical-systems RIP interfaces em1 unit 68 description "Connect to r6 em6.68"
set logical-systems RIP interfaces em1 unit 68 vlan-id 68
set logical-systems RIP interfaces em1 unit 68 family inet address 172.16.40.1/30
set logical-systems RIP interfaces em1 unit 78 description "Connect to r7 em7.78"
set logical-systems RIP interfaces em1 unit 78 vlan-id 78
set logical-systems RIP interfaces em1 unit 78 family inet address 172.16.40.5/30
set logical-systems RIP interfaces lo0 unit 8 family inet address 192.168.0.1/32
set logical-systems RIP interfaces lo0 unit 8 family inet address 192.168.1.1/32
set logical-systems RIP interfaces lo0 unit 8 family inet address 192.168.2.1/32
set logical-systems RIP interfaces lo0 unit 8 family inet address 192.168.3.1/32
set logical-systems RIP interfaces lo0 unit 8 family inet address 192.168.4.1/32
set logical-systems RIP protocols rip group RIP export RIP_OUT
set logical-systems RIP protocols rip group RIP neighbor em1.68
set logical-systems RIP protocols rip group RIP neighbor em1.78
set logical-systems RIP policy-options policy-statement RIP_OUT term 1 from protocol static
set logical-systems RIP policy-options policy-statement RIP_OUT term 1 from protocol rip
set logical-systems RIP policy-options policy-statement RIP_OUT then accept
set logical-systems RIP routing-options static route 192.168.0.0/24 receive
set logical-systems RIP routing-options static route 192.168.1.0/24 receive
set logical-systems RIP routing-options static route 192.168.2.0/24 receive
set logical-systems RIP routing-options static route 192.168.3.0/24 receive
set logical-systems RIP routing-options static route 192.168.4.0/24 receive
set interfaces em1 vlan-tagging
set interfaces em2 vlan-tagging
set interfaces em3 vlan-tagging
set interfaces em4 vlan-tagging
set interfaces em5 vlan-tagging
set interfaces em6 vlan-tagging


Requirements:
1. Your IBGP design must be added to the OSPF case study configuration from Chapter 3.
2. Deploy two confederations using AS 65000 and 65001.
3. Use route reflection in each confederation.
Your design must use exactly two unique cluster IDs and no more than three route reflectors.
4. Suppress reflection in one of the clusters.
5. Ensure that your design will tolerate the failure of any single link/interface, and the failure of either r3 or r4.
6. You must use loopback-based IBGP peering within each cluster, and interface peering for C-BGP links.
7. Authenticate all IBGP sessions in one of the clusters with key jnx.
8. Redistribute the static routes shown earlier in Figure 5.7 into IBGP, and using communities,
ensure that all routers prefer r2’s 192.168.100/24 IBGP route.
You must not alter the default local preference of this route.
9. Your IBGP design cannot result in any black holes or suboptimal routing.
10. Redistribute a summary of the RIP routes into IBGP from both r6 and r7.
11. r5 must IBGP load-balance to the summary route representing the RIP prefixes.
12. Make sure that r1 and r2 receive the RIP route summary from r3 and r4 through IBGP.
You cannot change any protocol preference values on r3 or r4,
and the BGP protocol next hop as seen by r1 and r2 must be the same as that seen by r5.
13. Configure r7 to be passive, and ensure that its IBGP sessions operate with a 45-second keepalive interval.
No other session keepalive intervals should be modified.


IBGP Case Study Configurations:
1. Your IBGP design must be added to the OSPF case study configuration from Chapter 3.
2. Deploy two confederations using AS 65000 and 65001.
3. Use route reflection in each confederation.
Your design must use exactly two unique cluster IDs and no more than three route reflectors.


R1:
set logical-systems r1 routing-options autonomous-system 65000
set logical-systems r1 routing-options confederation 65412
set logical-systems r1 routing-options confederation members [65000 65001]

set logical-systems r1 protocols bgp group 65000 type internal
set logical-systems r1 protocols bgp group 65000 local-address 10.0.6.1
set logical-systems r1 protocols bgp group 65000 neighbor 10.0.3.3
set logical-systems r1 protocols bgp group 65000 neighbor 10.0.3.4

R2:
set logical-systems r2 routing-options autonomous-system 65000
set logical-systems r2 routing-options confederation 65412
set logical-systems r2 routing-options confederation members [65000 65001]

set logical-systems r2 protocols bgp group 65000 type internal
set logical-systems r2 protocols bgp group 65000 local-address 10.0.6.2
set logical-systems r2 protocols bgp group 65000 neighbor 10.0.3.3
set logical-systems r2 protocols bgp group 65000 neighbor 10.0.3.4

R3:
set logical-systems r3 routing-options router-id 10.0.3.3
set logical-systems r3 routing-options autonomous-system 65000
set logical-systems r3 routing-options confederation 65412
set logical-systems r3 routing-options confederation members [65000 65001]

set logical-systems r3 protocols bgp group 65000 type internal
set logical-systems r3 protocols bgp group 65000 local-address 10.0.3.3
set logical-systems r3 protocols bgp group 65000 cluster 1.1.1.1
set logical-systems r3 protocols bgp group 65000 neighbor 10.0.6.1
set logical-systems r3 protocols bgp group 65000 neighbor 10.0.6.2
set logical-systems r3 protocols bgp group 65000 neighbor 10.0.3.4

R4:
set logical-systems r4 routing-options autonomous-system 65000
set logical-systems r4 routing-options confederation 65412
set logical-systems r4 routing-options confederation members [65000 65001]

set logical-systems r4 protocols bgp group 65000 type internal
set logical-systems r4 protocols bgp group 65000 local-address 10.0.3.4
set logical-systems r4 protocols bgp group 65000 cluster 1.1.1.1
set logical-systems r4 protocols bgp group 65000 neighbor 10.0.6.1
set logical-systems r4 protocols bgp group 65000 neighbor 10.0.6.2
set logical-systems r4 protocols bgp group 65000 neighbor 10.0.3.3

R5:
set logical-systems r5 routing-options autonomous-system 65001
set logical-systems r5 routing-options confederation 65412
set logical-systems r5 routing-options confederation members [65000 65001]

set logical-systems r5 protocols bgp group 65001 type internal
set logical-systems r5 protocols bgp group 65001 local-address 10.0.3.5
set logical-systems r5 protocols bgp group 65001 cluster 2.2.2.2
set logical-systems r5 protocols bgp group 65001 neighbor 10.0.9.6
set logical-systems r5 protocols bgp group 65001 neighbor 10.0.9.7

R6:
set logical-systems r6 routing-options autonomous-system 65001
set logical-systems r6 routing-options confederation 65412
set logical-systems r6 routing-options confederation members [65000 65001]

set logical-systems r6 protocols bgp group 65001 type internal
set logical-systems r6 protocols bgp group 65001 local-address 10.0.9.6
set logical-systems r6 protocols bgp group 65001 neighbor 10.0.3.5

R7:
set logical-systems r7 routing-options autonomous-system 65001
set logical-systems r7 routing-options confederation 65412
set logical-systems r7 routing-options confederation members [65000 65001]

set logical-systems r7 protocols bgp group 65001 type internal
set logical-systems r7 protocols bgp group 65001 local-address 10.0.9.7
set logical-systems r7 protocols bgp group 65001 neighbor 10.0.3.5

Check:
root@JNCIP_1# run show bgp summary logical-system r3   
Groups: 1 Peers: 3 Down peers: 0
Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
inet.0                 0          0          0          0          0          0
Peer                     AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.0.3.4              65000         46         47       0       0       20:34 0/0/0/0              0/0/0/0
10.0.6.1              65000         10         10       0       2        3:50 0/0/0/0              0/0/0/0
10.0.6.2              65000         25         24       0       1       10:18 0/0/0/0              0/0/0/0

[edit logical-systems]
root@JNCIP_1#

[edit logical-systems]
root@JNCIP_1# run show bgp summary logical-system r5   
Groups: 1 Peers: 2 Down peers: 0
Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
inet.0                 0          0          0          0          0          0
Peer                     AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.0.9.6              65001         19         20       0       0        7:48 0/0/0/0              0/0/0/0
10.0.9.7              65001         12         12       0       0        4:47 0/0/0/0              0/0/0/0

[edit logical-systems]
root@JNCIP_1#


4. Suppress reflection in one of the clusters.

R5:
set logical-systems r5 protocols bgp group 65001 no-client-reflect

R6:
set logical-systems r6 protocols bgp group 65001 neighbor 10.0.9.7

R7:
set logical-systems r7 protocols bgp group 65001 neighbor 10.0.9.6

Check:
root@JNCIP_1# run show bgp summary logical-system r6   
Groups: 1 Peers: 2 Down peers: 0
Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
inet.0                 0          0          0          0          0          0
Peer                     AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.0.3.5              65001         33         33       0       0       13:52 0/0/0/0              0/0/0/0
10.0.9.7              65001          7          8       0       0        2:57 0/0/0/0              0/0/0/0

[edit logical-systems]
root@JNCIP_1#

[edit logical-systems]
root@JNCIP_1# run show bgp summary logical-system r7   
Groups: 1 Peers: 2 Down peers: 0
Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
inet.0                 0          0          0          0          0          0
Peer                     AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.0.3.5              65001         26         27       0       0       10:57 0/0/0/0              0/0/0/0
10.0.9.6              65001          8          9       0       0        3:03 0/0/0/0              0/0/0/0

[edit logical-systems]
root@JNCIP_1#


5. Ensure that your design will tolerate the failure of any single link/interface, and the failure of either r3 or r4.
6. You must use loopback-based IBGP peering within each cluster, and interface peering for C-BGP links.

Note: peer-as command must be in the neighbor level.
R3:
set logical-systems r3 protocols bgp group C-BGP type external
set logical-systems r3 protocols bgp group C-BGP neighbor 10.0.2.1 peer-as 65001

R4:
set logical-systems r4 protocols bgp group C-BGP type external
set logical-systems r4 protocols bgp group C-BGP neighbor 10.0.2.9 peer-as 65001

R5:
set logical-systems r5 protocols bgp group C-BGP type external
set logical-systems r5 protocols bgp group C-BGP peer-as 65000
set logical-systems r5 protocols bgp group C-BGP neighbor 10.0.2.2 peer-as 65000
set logical-systems r5 protocols bgp group C-BGP neighbor 10.0.2.10 peer-as 65000

Check:
root@JNCIP_1# run show bgp summary logical-system r3
Groups: 2 Peers: 4 Down peers: 0
Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
inet.0                 6          2          0          0          0          0
Peer                     AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.0.2.1              65001        128        150       0       6        2:53 1/1/1/0              0/0/0/0
10.0.3.4              65000     142498     142302       0       0     1:52:03 0/1/1/0              0/0/0/0
10.0.6.1              65000         53      21391       0       4       22:56 0/2/2/0              0/0/0/0
10.0.6.2              65000         54      21089       0       3       23:17 1/2/2/0              0/0/0/0

[edit logical-systems]
root@JNCIP_1#

[edit logical-systems]
root@JNCIP_1# run show bgp summary logical-system r5   
Groups: 2 Peers: 4 Down peers: 0
Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
inet.0                 5          0          0          0          0          0
Peer                     AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.0.2.2              65000       1324       1099       0       6        2:56 0/2/2/0              0/0/0/0
10.0.2.10             65000        177        127       0       6        2:56 0/1/1/0              0/0/0/0
10.0.9.6              65001        163        609       0       0     1:12:18 0/1/1/0              0/0/0/0
10.0.9.7              65001        164        607       0       0     1:12:18 0/1/1/0              0/0/0/0

[edit logical-systems]
root@JNCIP_1#


7. Authenticate all IBGP sessions in one of the clusters with key jnx.

Note: authentication-key command is in the group 65001. It is not in the bgp level.
R5:
set logical-systems r5 protocols bgp group 65001 authentication-key jnx

R6:
set logical-systems r6 protocols bgp group 65001 authentication-key jnx

R7:
set logical-systems r7 protocols bgp group 65001 authentication-key jnx


8. Redistribute the static routes shown earlier in Figure 5.7 into IBGP, and using communities,
ensure that all routers prefer r2’s 192.168.100/24 IBGP route.
You must not alter the default local preference of this route.

R1:
set logical-systems r1 routing-options static route 192.168.10.0/24 reject
set logical-systems r1 routing-options static route 192.168.100.0/24 reject

set logical-systems r1 policy-options policy-statement ibgp term 1 from protocol static
set logical-systems r1 policy-options policy-statement ibgp term 1 from route-filter 192.168.0.0/16 longer
set logical-systems r1 policy-options policy-statement ibgp term 1 then accept

set logical-systems r1 protocols bgp export ibgp

R2:
set logical-systems r2 routing-options static route 192.168.20.0/24 reject
set logical-systems r2 routing-options static route 192.168.100.0/24 reject

set logical-systems r2 policy-options policy-statement ibgp term 1 from protocol static
set logical-systems r2 policy-options policy-statement ibgp term 1 from route-filter 192.168.0.0/16 longer
set logical-systems r2 policy-options policy-statement ibgp term 1 then accept

set logical-systems r2 protocols bgp export ibgp

R3:
set logical-systems r3 routing-options static route 192.168.30.0/24 reject

set logical-systems r3 policy-options policy-statement ibgp term 1 from protocol static
set logical-systems r3 policy-options policy-statement ibgp term 1 from route-filter 192.168.30.0/24 exact
set logical-systems r3 policy-options policy-statement ibgp term 1 then accept

set logical-systems r3 protocols bgp export ibgp

R4:
set logical-systems r4 routing-options static route 192.168.40.0/24 reject

set logical-systems r4 policy-options policy-statement ibgp term 1 from protocol static
set logical-systems r4 policy-options policy-statement ibgp term 1 from route-filter 192.168.40.0/24 exact
set logical-systems r4 policy-options policy-statement ibgp term 1 then accept

set logical-systems r4 protocols bgp export ibgp

R5:
set logical-systems r5 routing-options static route 192.168.50.0/24 reject

set logical-systems r5 policy-options policy-statement ibgp term 1 from protocol static
set logical-systems r5 policy-options policy-statement ibgp term 1 from route-filter 192.168.50.0/24 exact
set logical-systems r5 policy-options policy-statement ibgp term 1 then accept

set logical-systems r5 protocols bgp export ibgp

R6:
set logical-systems r6 routing-options static route 192.168.60.0/24 reject

set logical-systems r6 policy-options policy-statement ibgp term 1 from protocol static
set logical-systems r6 policy-options policy-statement ibgp term 1 from route-filter 192.168.60.0/24 exact
set logical-systems r6 policy-options policy-statement ibgp term 1 then accept

set logical-systems r6 protocols bgp export ibgp

R7:
set logical-systems r7 routing-options static route 192.168.70.0/24 reject

set logical-systems r7 policy-options policy-statement ibgp term 1 from protocol static
set logical-systems r7 policy-options policy-statement ibgp term 1 from route-filter 192.168.70.0/24 exact
set logical-systems r7 policy-options policy-statement ibgp term 1 then accept

set logical-systems r7 protocols bgp export ibgp

Note: We define the community r2 on r3 & r4, and we write a BGP import policy that
will match on this community with the intent of setting a preference setting less than 170 on
r3 & r4.

R2:
set logical-systems r2 policy-options policy-statement ibgp term 1 from route-filter 192.168.100.0/24 exact next term
set logical-systems r2 policy-options policy-statement ibgp term 1 then accept
set logical-systems r2 policy-options policy-statement ibgp term 2 from route-filter 192.168.100.0/24 exact
set logical-systems r2 policy-options policy-statement ibgp term 2 then community add r2
set logical-systems r2 policy-options policy-statement ibgp term 2 then accept
set logical-systems r2 policy-options community r2 members 65412:2

R3:
set logical-systems r3 policy-options community r2 members 65412:2

set logical-systems r3 policy-options policy-statement PREFER-R2 term 1 from community r2
set logical-systems r3 policy-options policy-statement PREFER-R2 term 1 then preference 20

set logical-systems r3 protocols bgp group 65000 import PREFER-R2

R4:
set logical-systems r4 policy-options community r2 members 65412:2

set logical-systems r4 policy-options policy-statement PREFER-R2 term 1 from community r2
set logical-systems r4 policy-options policy-statement PREFER-R2 term 1 then preference 20

set logical-systems r4 protocols bgp group 65000 import PREFER-R2

Check:
root@JNCIP_1# run show route 192.168.100.0/24 detail logical-system r5

inet.0: 31 destinations, 36 routes (31 active, 0 holddown, 0 hidden)
192.168.100.0/24 (2 entries, 1 announced)
        *BGP    Preference: 170/-101
                Next hop type: Indirect
                Address: 0x9334b98
                Next-hop reference count: 8
                Source: 10.0.2.2
                Next hop type: Router, Next hop index: 131095
                Next hop: 10.0.2.2 via em5.35
                Next hop: 10.0.2.10 via em5.45, selected
                Protocol next hop: 10.0.6.2
                Indirect next hop: 9425fb8 131075
                State:
                Local AS: 65001 Peer AS: 65000
                Age: 5:36       Metric2: 4
                Task: BGP_65000.10.0.2.2+179
                Announcement bits (3): 3-KRT 4-BGP_RT_Background 5-Resolve tree 1
                AS path: (65000) I
                Communities: 65412:2
                Accepted
                Localpref: 100
                Router ID: 10.0.3.3    
         BGP    Preference: 170/-101
                Next hop type: Indirect
                Address: 0x9334b98
                Next-hop reference count: 8
                Source: 10.0.2.10
                Next hop type: Router, Next hop index: 131095
                Next hop: 10.0.2.2 via em5.35
                Next hop: 10.0.2.10 via em5.45, selected
                Protocol next hop: 10.0.6.2
                Indirect next hop: 9425fb8 131075
                State:
                Inactive reason: Not Best in its group - Router ID
                Local AS: 65001 Peer AS: 65000
                Age: 5:36       Metric2: 4
                Task: BGP_65000.10.0.2.10+55469
                AS path: (65000) I
                Communities: 65412:2
                Accepted
                Localpref: 100
                Router ID: 10.0.3.4

[edit logical-systems]
root@JNCIP_1#


9. Your IBGP design cannot result in any black holes or suboptimal routing.
10. Redistribute a summary of the RIP routes into IBGP from both r6 and r7.

R6:
set logical-systems r6 policy-options policy-statement ibgp term 2 from protocol aggregate
set logical-systems r6 policy-options policy-statement ibgp term 2 from route-filter 192.168.0.0/22 exact
set logical-systems r6 policy-options policy-statement ibgp term 2 then accept

R7:
set logical-systems r7 policy-options policy-statement ibgp term 2 from protocol aggregate
set logical-systems r7 policy-options policy-statement ibgp term 2 from route-filter 192.168.0.0/22 exact
set logical-systems r7 policy-options policy-statement ibgp term 2 then accept

Check:
root@JNCIP_1# run show route 192.168.0.0/22 logical-system r5

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

192.168.0.0/22     *[OSPF/150] 00:00:33, metric 0, tag 0
                    > to 10.0.8.5 via em5.56
                      to 10.0.8.10 via em5.57
                    [BGP/170] 00:00:27, localpref 100, from 10.0.9.6
                      AS path: I
                    > to 10.0.8.5 via em5.56
                    [BGP/170] 00:00:32, localpref 100, from 10.0.9.7
                      AS path: I
                    > to 10.0.8.10 via em5.57

[edit logical-systems]
root@JNCIP_1#


11. r5 must IBGP load-balance to the summary route representing the RIP prefixes.

R5:
set logical-systems r5 protocols bgp group 65001 multipath

set logical-systems r5 protocols ospf external-preference 171

Check:
root@JNCIP_1# run show route 192.168.0.0/22 logical-system r5   

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

192.168.0.0/22     *[BGP/170] 00:00:01, localpref 100, from 10.0.9.6
                      AS path: I
                      to 10.0.8.5 via em5.56
                    > to 10.0.8.10 via em5.57
                    [BGP/170] 00:00:01, localpref 100, from 10.0.9.7
                      AS path: I
                    > to 10.0.8.10 via em5.57
                    [OSPF/171] 00:00:03, metric 0, tag 0
                    > to 10.0.8.5 via em5.56
                      to 10.0.8.10 via em5.57

[edit logical-systems]
root@JNCIP_1#


12. Make sure that r1 and r2 receive the RIP route summary from r3 and r4 through IBGP.
You cannot change any protocol preference values on r3 or r4,
and the BGP protocol next hop as seen by r1 and r2 must be the same as that seen by r5.

Note: On r3 & r4, 192.168.0.0/22 using OSPF(Preference 150).
So we use this command "advertise-inactive" to advertise 192.168.0.0/22

R3:
set logical-systems r3 protocols bgp group 65000 advertise-inactive

R4:
set logical-systems r4 protocols bgp group 65000 advertise-inactive

Check:
root@JNCIP_1# run show route 192.168.0.0/22 logical-system r3   

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

192.168.0.0/22     *[OSPF/150] 00:06:34, metric 0, tag 0
                    > to 10.0.2.1 via em3.35
                    [BGP/170] 00:06:29, localpref 100
                      AS path: (65001) I
                    > to 10.0.2.1 via em3.35

[edit]
root@JNCIP_1#

[edit]
root@JNCIP_1# run show route 192.168.0.0/22 logical-system r4   

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

192.168.0.0/22     *[OSPF/150] 00:06:43, metric 0, tag 0
                    > to 10.0.2.9 via em4.45
                    [BGP/170] 00:06:19, localpref 100, from 10.0.3.3
                      AS path: (65001) I
                    > to 10.0.2.9 via em4.45
                    [BGP/170] 00:06:32, localpref 100
                      AS path: (65001) I
                    > to 10.0.2.9 via em4.45

[edit]
root@JNCIP_1#

[edit]
root@JNCIP_1# run show route 192.168.0.0/22 logical-system r1   

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

192.168.0.0/22     *[BGP/170] 00:06:25, localpref 100, from 10.0.3.3
                      AS path: (65001) I
                    > to 10.0.4.13 via em1.13
                    [BGP/170] 00:06:25, localpref 100, from 10.0.3.4
                      AS path: (65001) I
                    > to 10.0.4.13 via em1.13

[edit]
root@JNCIP_1#

[edit]
root@JNCIP_1# run show route 192.168.0.0/22 logical-system r2   

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

192.168.0.0/22     *[BGP/170] 00:06:27, localpref 100, from 10.0.3.3
                      AS path: (65001) I
                      to 10.0.4.1 via em2.23
                    > to 10.0.4.9 via em2.24
                    [BGP/170] 00:06:27, localpref 100, from 10.0.3.4
                      AS path: (65001) I
                      to 10.0.4.1 via em2.23
                    > to 10.0.4.9 via em2.24

[edit]
root@JNCIP_1#


13. Configure r7 to be passive, and ensure that its IBGP sessions operate with a 45-second keepalive interval.
No other session keepalive intervals should be modified.

Note:
Hold-timer = keepalive * 3

R7:
set logical-systems r7 protocols bgp group 65001 hold-time 135
set logical-systems r7 protocols bgp group 65001 passive

R5:
set logical-systems r5 protocols bgp group 65001 neighbor 10.0.9.7 hold-time 135

R6:
set logical-systems r6 protocols bgp group 65001 neighbor 10.0.9.7 hold-time 135

Check:
root@JNCIP_1# run show bgp neighbor logical-system r7 | match hold
  Options:
  Local Address: 10.0.9.7 Holdtime: 135 Preference: 170
  Peer ID: 10.0.3.5        Local ID: 10.0.9.7          Active Holdtime: 135
  Options:
  Local Address: 10.0.9.7 Holdtime: 135 Preference: 170
  Peer ID: 10.0.9.6        Local ID: 10.0.9.7          Active Holdtime: 135

[edit logical-systems]
root@JNCIP_1#


Final Check:
(Routing Table)
[edit logical-systems]
root@JNCIP_1# run show route logical-system r1   

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

0.0.0.0/0          *[OSPF/150] 00:06:23, metric 11, tag 0
                    > to 10.0.4.13 via em1.13
10.0.4.0/30        *[OSPF/10] 00:06:24, metric 2
                    > to 10.0.4.6 via em1.12
10.0.4.4/30        *[Direct/0] 00:07:04
                    > via em1.12
10.0.4.5/32        *[Local/0] 00:07:04
                      Local via em1.12
10.0.4.8/30        *[OSPF/10] 00:06:24, metric 2
                    > to 10.0.4.6 via em1.12
10.0.4.12/30       *[Direct/0] 00:07:04
                    > via em1.13
10.0.4.14/32       *[Local/0] 00:07:04
                      Local via em1.13
10.0.5.0/24        *[Direct/0] 00:07:04
                    > via em1.129
                    [OSPF/150] 00:06:24, metric 11, tag 420
                    > to 10.0.4.6 via em1.12
10.0.5.1/32        *[Local/0] 00:07:04
                      Local via em1.129
10.0.6.1/32        *[Direct/0] 00:26:32
                    > via lo0.1
10.0.6.2/32        *[OSPF/10] 00:06:24, metric 1
                    > to 10.0.4.6 via em1.12
192.168.0.0/22     *[BGP/170] 00:05:02, localpref 100, from 10.0.3.3
                      AS path: (65001) I
                    > to 10.0.4.13 via em1.13
                    [BGP/170] 00:05:02, localpref 100, from 10.0.3.4
                      AS path: (65001) I
                    > to 10.0.4.13 via em1.13
192.168.10.0/24    *[Static/5] 00:26:39
                      Reject
192.168.20.0/24    *[BGP/170] 00:25:23, localpref 100, from 10.0.3.3
                      AS path: I
                    > to 10.0.4.6 via em1.12
                    [BGP/170] 00:25:19, localpref 100, from 10.0.3.4
                      AS path: I
                    > to 10.0.4.6 via em1.12
192.168.30.0/24    *[BGP/170] 00:25:23, localpref 100, from 10.0.3.3
                      AS path: I
                    > to 10.0.4.13 via em1.13
                    [BGP/170] 00:05:56, localpref 100, from 10.0.3.4
                      AS path: I       
                    > to 10.0.4.13 via em1.13
192.168.40.0/24    *[BGP/170] 00:25:20, localpref 100, from 10.0.3.4
                      AS path: I
                    > to 10.0.4.13 via em1.13
                    [BGP/170] 00:06:20, localpref 100, from 10.0.3.3
                      AS path: I
                    > to 10.0.4.13 via em1.13
192.168.50.0/24    *[BGP/170] 00:06:20, localpref 100, from 10.0.3.3
                      AS path: (65001) I
                    > to 10.0.4.13 via em1.13
                    [BGP/170] 00:05:56, localpref 100, from 10.0.3.4
                      AS path: (65001) I
                    > to 10.0.4.13 via em1.13
192.168.60.0/24    *[BGP/170] 00:05:02, localpref 100, from 10.0.3.3
                      AS path: (65001) I
                    > to 10.0.4.13 via em1.13
                    [BGP/170] 00:05:01, localpref 100, from 10.0.3.4
                      AS path: (65001) I
                    > to 10.0.4.13 via em1.13
192.168.70.0/24    *[BGP/170] 00:06:20, localpref 100, from 10.0.3.3
                      AS path: (65001) I
                    > to 10.0.4.13 via em1.13
                    [BGP/170] 00:05:56, localpref 100, from 10.0.3.4
                      AS path: (65001) I
                    > to 10.0.4.13 via em1.13
192.168.100.0/24   *[Static/5] 00:26:39
                      Reject
                    [BGP/170] 00:25:23, localpref 100, from 10.0.3.3
                      AS path: I
                    > to 10.0.4.6 via em1.12
                    [BGP/170] 00:25:19, localpref 100, from 10.0.3.4
                      AS path: I
                    > to 10.0.4.6 via em1.12
224.0.0.5/32       *[OSPF/10] 00:26:39, metric 1
                      MultiRecv

[edit logical-systems]
root@JNCIP_1#

[edit logical-systems]
root@JNCIP_1# run show route logical-system r2   

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

0.0.0.0/0          *[OSPF/150] 00:07:03, metric 11, tag 0
                      to 10.0.4.1 via em2.23
                    > to 10.0.4.9 via em2.24
10.0.4.0/30        *[Direct/0] 00:07:08
                    > via em2.23
10.0.4.2/32        *[Local/0] 00:07:08
                      Local via em2.23
10.0.4.4/30        *[Direct/0] 00:07:08
                    > via em2.12
10.0.4.6/32        *[Local/0] 00:07:08
                      Local via em2.12
10.0.4.8/30        *[Direct/0] 00:07:08
                    > via em2.24
10.0.4.10/32       *[Local/0] 00:07:08
                      Local via em2.24
10.0.4.12/30       *[OSPF/10] 00:06:28, metric 2
                    > to 10.0.4.5 via em2.12
10.0.5.0/24        *[Direct/0] 00:07:08
                    > via em2.129
                    [OSPF/150] 00:06:28, metric 11, tag 420
                    > to 10.0.4.5 via em2.12
10.0.5.2/32        *[Local/0] 00:07:08
                      Local via em2.129
10.0.6.1/32        *[OSPF/10] 00:06:28, metric 1
                    > to 10.0.4.5 via em2.12
10.0.6.2/32        *[Direct/0] 00:26:36
                    > via lo0.2
192.168.0.0/22     *[BGP/170] 00:05:06, localpref 100, from 10.0.3.3
                      AS path: (65001) I
                      to 10.0.4.1 via em2.23
                    > to 10.0.4.9 via em2.24
                    [BGP/170] 00:05:06, localpref 100, from 10.0.3.4
                      AS path: (65001) I
                      to 10.0.4.1 via em2.23
                    > to 10.0.4.9 via em2.24
192.168.10.0/24    *[BGP/170] 00:25:27, localpref 100, from 10.0.3.3
                      AS path: I
                    > to 10.0.4.5 via em2.12
                    [BGP/170] 00:25:23, localpref 100, from 10.0.3.4
                      AS path: I
                    > to 10.0.4.5 via em2.12
192.168.20.0/24    *[Static/5] 00:26:43
                      Reject           
192.168.30.0/24    *[BGP/170] 00:25:28, localpref 100, from 10.0.3.3
                      AS path: I
                    > to 10.0.4.1 via em2.23
                      to 10.0.4.9 via em2.24
                    [BGP/170] 00:07:00, localpref 100, from 10.0.3.4
                      AS path: I
                    > to 10.0.4.1 via em2.23
                      to 10.0.4.9 via em2.24
192.168.40.0/24    *[BGP/170] 00:25:23, localpref 100, from 10.0.3.4
                      AS path: I
                    > to 10.0.4.1 via em2.23
                      to 10.0.4.9 via em2.24
                    [BGP/170] 00:07:00, localpref 100, from 10.0.3.3
                      AS path: I
                    > to 10.0.4.1 via em2.23
                      to 10.0.4.9 via em2.24
192.168.50.0/24    *[BGP/170] 00:07:00, localpref 100, from 10.0.3.3
                      AS path: (65001) I
                      to 10.0.4.1 via em2.23
                    > to 10.0.4.9 via em2.24
                    [BGP/170] 00:07:00, localpref 100, from 10.0.3.4
                      AS path: (65001) I
                      to 10.0.4.1 via em2.23
                    > to 10.0.4.9 via em2.24
192.168.60.0/24    *[BGP/170] 00:05:06, localpref 100, from 10.0.3.3
                      AS path: (65001) I
                    > to 10.0.4.1 via em2.23
                      to 10.0.4.9 via em2.24
                    [BGP/170] 00:05:05, localpref 100, from 10.0.3.4
                      AS path: (65001) I
                    > to 10.0.4.1 via em2.23
                      to 10.0.4.9 via em2.24
192.168.70.0/24    *[BGP/170] 00:06:56, localpref 100, from 10.0.3.3
                      AS path: (65001) I
                      to 10.0.4.1 via em2.23
                    > to 10.0.4.9 via em2.24
                    [BGP/170] 00:06:56, localpref 100, from 10.0.3.4
                      AS path: (65001) I
                      to 10.0.4.1 via em2.23
                    > to 10.0.4.9 via em2.24
192.168.100.0/24   *[Static/5] 00:26:43
                      Reject
224.0.0.5/32       *[OSPF/10] 00:26:46, metric 1
                      MultiRecv

[edit logical-systems]
root@JNCIP_1#

[edit logical-systems]
root@JNCIP_1# run show route logical-system r3   

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

10.0.2.0/30        *[Direct/0] 00:07:12
                    > via em3.35
10.0.2.2/32        *[Local/0] 00:07:12
                      Local via em3.35
10.0.2.4/30        *[Direct/0] 00:07:12
                    > via em3.34
10.0.2.5/32        *[Local/0] 00:07:12
                      Local via em3.34
10.0.2.8/30        *[OSPF/10] 00:07:07, metric 2
                      to 10.0.2.6 via em3.34
                    > to 10.0.2.1 via em3.35
10.0.3.3/32        *[Direct/0] 00:26:38
                    > via lo0.3
10.0.3.4/32        *[OSPF/10] 00:07:07, metric 1
                    > to 10.0.2.6 via em3.34
10.0.3.5/32        *[OSPF/10] 00:07:07, metric 1
                    > to 10.0.2.1 via em3.35
10.0.4.0/22        *[OSPF/10] 00:26:38, metric 16777215
                      Discard
10.0.4.0/30        *[Direct/0] 00:07:12
                    > via em3.23
10.0.4.1/32        *[Local/0] 00:07:12
                      Local via em3.23
10.0.4.4/30        *[OSPF/10] 00:06:31, metric 3
                      to 10.0.4.14 via em3.13
                    > to 10.0.4.2 via em3.23
10.0.4.8/30        *[OSPF/10] 00:07:07, metric 3
                    > to 10.0.4.2 via em3.23
10.0.4.12/30       *[Direct/0] 00:07:12
                    > via em3.13
10.0.4.13/32       *[Local/0] 00:07:12
                      Local via em3.13
10.0.5.0/24        *[OSPF/150] 00:06:31, metric 12, tag 420
                      to 10.0.4.14 via em3.13
                    > to 10.0.4.2 via em3.23
10.0.6.1/32        *[OSPF/10] 00:06:31, metric 2
                    > to 10.0.4.14 via em3.13
10.0.6.2/32        *[OSPF/10] 00:07:07, metric 2
                    > to 10.0.4.2 via em3.23
10.0.8.0/21        *[OSPF/10] 00:07:06, metric 3
                    > to 10.0.2.1 via em3.35
172.16.40.0/28     *[OSPF/10] 00:06:24, metric 3
                    > to 10.0.2.1 via em3.35
192.168.0.0/22     *[OSPF/150] 00:07:06, metric 0, tag 0
                    > to 10.0.2.1 via em3.35
                    [BGP/170] 00:05:10, localpref 100
                      AS path: (65001) I
                    > to 10.0.2.1 via em3.35
192.168.10.0/24    *[BGP/170] 00:25:31, localpref 100, from 10.0.6.1
                      AS path: I
                    > to 10.0.4.14 via em3.13
192.168.20.0/24    *[BGP/170] 00:25:32, localpref 100, from 10.0.6.2
                      AS path: I
                    > to 10.0.4.2 via em3.23
192.168.30.0/24    *[Static/5] 00:26:47
                      Reject
192.168.40.0/24    *[BGP/170] 00:25:18, localpref 100, from 10.0.3.4
                      AS path: I
                    > to 10.0.2.6 via em3.34
192.168.50.0/24    *[BGP/170] 00:07:08, localpref 100
                      AS path: (65001) I
                    > to 10.0.2.1 via em3.35
                    [BGP/170] 00:07:04, localpref 100, from 10.0.3.4
                      AS path: (65001) I
                      to 10.0.2.6 via em3.34
                    > to 10.0.2.1 via em3.35
192.168.60.0/24    *[BGP/170] 00:05:10, localpref 100
                      AS path: (65001) I
                    > to 10.0.2.1 via em3.35
192.168.70.0/24    *[BGP/170] 00:07:00, localpref 100
                      AS path: (65001) I
                    > to 10.0.2.1 via em3.35
192.168.100.0/24   *[BGP/20] 00:25:32, localpref 100, from 10.0.6.2
                      AS path: I
                    > to 10.0.4.2 via em3.23
                    [BGP/170] 00:25:31, localpref 100, from 10.0.6.1
                      AS path: I
                    > to 10.0.4.14 via em3.13
224.0.0.5/32       *[OSPF/10] 00:26:47, metric 1
                      MultiRecv

[edit logical-systems]
root@JNCIP_1#

[edit logical-systems]
root@JNCIP_1# run show route logical-system r4   

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

10.0.2.0/30        *[OSPF/10] 00:07:09, metric 2
                    > to 10.0.2.5 via em4.34
                      to 10.0.2.9 via em4.45
10.0.2.4/30        *[Direct/0] 00:07:15
                    > via em4.34
10.0.2.6/32        *[Local/0] 00:07:15
                      Local via em4.34
10.0.2.8/30        *[Direct/0] 00:07:15
                    > via em4.45
10.0.2.10/32       *[Local/0] 00:07:15
                      Local via em4.45
10.0.3.3/32        *[OSPF/10] 00:07:09, metric 1
                    > to 10.0.2.5 via em4.34
10.0.3.4/32        *[Direct/0] 00:26:41
                    > via lo0.4
10.0.3.5/32        *[OSPF/10] 00:07:10, metric 1
                    > to 10.0.2.9 via em4.45
10.0.4.0/22        *[OSPF/10] 00:25:45, metric 16777215
                      Discard
10.0.4.0/30        *[OSPF/10] 00:07:10, metric 2
                    > to 10.0.4.10 via em4.24
10.0.4.4/30        *[OSPF/10] 00:07:10, metric 2
                    > to 10.0.4.10 via em4.24
10.0.4.8/30        *[Direct/0] 00:07:15
                    > via em4.24
10.0.4.9/32        *[Local/0] 00:07:15
                      Local via em4.24
10.0.4.12/30       *[OSPF/10] 00:06:35, metric 3
                    > to 10.0.4.10 via em4.24
10.0.5.0/24        *[OSPF/150] 00:07:10, metric 11, tag 420
                    > to 10.0.4.10 via em4.24
10.0.6.1/32        *[OSPF/10] 00:06:35, metric 2
                    > to 10.0.4.10 via em4.24
10.0.6.2/32        *[OSPF/10] 00:07:10, metric 1
                    > to 10.0.4.10 via em4.24
10.0.8.0/21        *[OSPF/10] 00:07:09, metric 3
                    > to 10.0.2.9 via em4.45
172.16.40.0/28     *[OSPF/10] 00:06:27, metric 3
                    > to 10.0.2.9 via em4.45
192.168.0.0/22     *[OSPF/150] 00:07:09, metric 0, tag 0
                    > to 10.0.2.9 via em4.45
                    [BGP/170] 00:05:13, localpref 100, from 10.0.3.3
                      AS path: (65001) I
                    > to 10.0.2.9 via em4.45
                    [BGP/170] 00:05:13, localpref 100
                      AS path: (65001) I
                    > to 10.0.2.9 via em4.45
192.168.10.0/24    *[BGP/170] 00:25:31, localpref 100, from 10.0.6.1
                      AS path: I
                    > to 10.0.4.10 via em4.24
192.168.20.0/24    *[BGP/170] 00:25:30, localpref 100, from 10.0.6.2
                      AS path: I
                    > to 10.0.4.10 via em4.24
192.168.30.0/24    *[BGP/170] 00:25:21, localpref 100, from 10.0.3.3
                      AS path: I
                    > to 10.0.2.5 via em4.34
192.168.40.0/24    *[Static/5] 00:26:50
                      Reject
192.168.50.0/24    *[BGP/170] 00:07:11, localpref 100
                      AS path: (65001) I
                    > to 10.0.2.9 via em4.45
                    [BGP/170] 00:07:10, localpref 100, from 10.0.3.3
                      AS path: (65001) I
                      to 10.0.2.5 via em4.34
                    > to 10.0.2.9 via em4.45
192.168.60.0/24    *[BGP/170] 00:05:13, localpref 100, from 10.0.3.3
                      AS path: (65001) I
                    > to 10.0.2.9 via em4.45
                    [BGP/170] 00:05:13, localpref 100
                      AS path: (65001) I
                    > to 10.0.2.9 via em4.45
192.168.70.0/24    *[BGP/170] 00:07:03, localpref 100, from 10.0.3.3
                      AS path: (65001) I
                    > to 10.0.2.9 via em4.45
                    [BGP/170] 00:07:03, localpref 100
                      AS path: (65001) I
                    > to 10.0.2.9 via em4.45
192.168.100.0/24   *[BGP/20] 00:25:30, localpref 100, from 10.0.6.2
                      AS path: I
                    > to 10.0.4.10 via em4.24
                    [BGP/170] 00:25:31, localpref 100, from 10.0.6.1
                      AS path: I
                    > to 10.0.4.10 via em4.24
224.0.0.5/32       *[OSPF/10] 00:26:50, metric 1
                      MultiRecv

[edit logical-systems]
root@JNCIP_1#

[edit logical-systems]
root@JNCIP_1# run show route logical-system r5   

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

10.0.2.0/30        *[Direct/0] 00:07:19
                    > via em5.35
10.0.2.1/32        *[Local/0] 00:07:19
                      Local via em5.35
10.0.2.4/30        *[OSPF/10] 00:07:13, metric 2
                    > to 10.0.2.2 via em5.35
                      to 10.0.2.10 via em5.45
10.0.2.8/30        *[Direct/0] 00:07:19
                    > via em5.45
10.0.2.9/32        *[Local/0] 00:07:19
                      Local via em5.45
10.0.3.3/32        *[OSPF/10] 00:07:13, metric 1
                    > to 10.0.2.2 via em5.35
10.0.3.4/32        *[OSPF/10] 00:07:14, metric 1
                    > to 10.0.2.10 via em5.45
10.0.3.5/32        *[Direct/0] 00:26:46
                    > via lo0.5
10.0.4.0/22        *[OSPF/10] 00:06:39, metric 4
                    > to 10.0.2.2 via em5.35
                      to 10.0.2.10 via em5.45
10.0.5.0/24        *[OSPF/171] 00:06:39, metric 14, tag 420
                      to 10.0.2.2 via em5.35
                    > to 10.0.2.10 via em5.45
10.0.8.0/21        *[OSPF/10] 00:25:53, metric 16777215
                      Discard
10.0.8.0/30        *[OSPF/10] 00:06:31, metric 2
                    > to 10.0.8.5 via em5.56
                      to 10.0.8.10 via em5.57
10.0.8.4/30        *[Direct/0] 00:07:19
                    > via em5.56
10.0.8.6/32        *[Local/0] 00:07:19
                      Local via em5.56
10.0.8.8/30        *[Direct/0] 00:07:19
                    > via em5.57
10.0.8.9/32        *[Local/0] 00:07:19
                      Local via em5.57
10.0.9.6/32        *[OSPF/10] 00:06:31, metric 1
                    > to 10.0.8.5 via em5.56
10.0.9.7/32        *[OSPF/10] 00:07:14, metric 1
                    > to 10.0.8.10 via em5.57
172.16.40.0/28     *[OSPF/10] 00:07:14, metric 16777215
                      Discard
172.16.40.0/30     *[OSPF/10] 00:06:31, metric 2
                    > to 10.0.8.5 via em5.56
172.16.40.4/30     *[OSPF/10] 00:07:14, metric 2
                    > to 10.0.8.10 via em5.57
192.168.0.0/22     *[BGP/170] 00:05:17, localpref 100, from 10.0.9.6
                      AS path: I
                      to 10.0.8.5 via em5.56
                    > to 10.0.8.10 via em5.57
                    [BGP/170] 00:07:07, localpref 100, from 10.0.9.7
                      AS path: I
                    > to 10.0.8.10 via em5.57
                    [OSPF/171] 00:06:31, metric 0, tag 0
                    > to 10.0.8.5 via em5.56
                      to 10.0.8.10 via em5.57
192.168.10.0/24    *[BGP/170] 00:07:15, localpref 100
                      AS path: (65000) I
                    > to 10.0.2.2 via em5.35
                      to 10.0.2.10 via em5.45
                    [BGP/170] 00:07:15, localpref 100, from 10.0.2.10
                      AS path: (65000) I
                    > to 10.0.2.2 via em5.35
                      to 10.0.2.10 via em5.45
192.168.20.0/24    *[BGP/170] 00:07:15, localpref 100, from 10.0.2.2
                      AS path: (65000) I
                      to 10.0.2.2 via em5.35
                    > to 10.0.2.10 via em5.45
                    [BGP/170] 00:07:15, localpref 100
                      AS path: (65000) I
                      to 10.0.2.2 via em5.35
                    > to 10.0.2.10 via em5.45
192.168.30.0/24    *[BGP/170] 00:07:15, localpref 100
                      AS path: (65000) I
                    > to 10.0.2.2 via em5.35
                    [BGP/170] 00:07:13, localpref 100, from 10.0.2.10
                      AS path: (65000) I
                    > to 10.0.2.2 via em5.35
192.168.40.0/24    *[BGP/170] 00:07:15, localpref 100
                      AS path: (65000) I
                    > to 10.0.2.10 via em5.45
                    [BGP/170] 00:07:14, localpref 100, from 10.0.2.2
                      AS path: (65000) I
                    > to 10.0.2.10 via em5.45
192.168.50.0/24    *[Static/5] 00:26:54
                      Reject
192.168.60.0/24    *[BGP/170] 00:05:17, localpref 100, from 10.0.9.6
                      AS path: I
                    > to 10.0.8.5 via em5.56
192.168.70.0/24    *[BGP/170] 00:07:07, localpref 100, from 10.0.9.7
                      AS path: I
                    > to 10.0.8.10 via em5.57
192.168.100.0/24   *[BGP/170] 00:07:15, localpref 100, from 10.0.2.2
                      AS path: (65000) I
                      to 10.0.2.2 via em5.35
                    > to 10.0.2.10 via em5.45
                    [BGP/170] 00:07:15, localpref 100
                      AS path: (65000) I
                      to 10.0.2.2 via em5.35
                    > to 10.0.2.10 via em5.45
224.0.0.5/32       *[OSPF/10] 00:26:54, metric 1
                      MultiRecv

[edit logical-systems]
root@JNCIP_1#

[edit logical-systems]
root@JNCIP_1# run show route logical-system r6   

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

10.0.2.0/30        *[OSPF/10] 00:06:35, metric 2
                    > to 10.0.8.6 via em6.56
10.0.2.4/30        *[OSPF/10] 00:06:35, metric 3
                    > to 10.0.8.6 via em6.56
10.0.2.8/30        *[OSPF/10] 00:06:35, metric 2
                    > to 10.0.8.6 via em6.56
10.0.3.3/32        *[OSPF/10] 00:06:35, metric 2
                    > to 10.0.8.6 via em6.56
10.0.3.4/32        *[OSPF/10] 00:06:35, metric 2
                    > to 10.0.8.6 via em6.56
10.0.3.5/32        *[OSPF/10] 00:06:35, metric 1
                    > to 10.0.8.6 via em6.56
10.0.4.0/22        *[OSPF/10] 00:06:35, metric 5
                    > to 10.0.8.6 via em6.56
10.0.5.0/24        *[OSPF/150] 00:06:35, metric 15, tag 420
                    > to 10.0.8.6 via em6.56
10.0.8.0/30        *[Direct/0] 00:07:23
                    > via em6.67
10.0.8.1/32        *[Local/0] 00:07:23
                      Local via em6.67 
10.0.8.4/30        *[Direct/0] 00:07:23
                    > via em6.56
10.0.8.5/32        *[Local/0] 00:07:23
                      Local via em6.56
10.0.8.8/30        *[OSPF/10] 00:06:35, metric 2
                    > to 10.0.8.6 via em6.56
                      to 10.0.8.2 via em6.67
10.0.9.6/32        *[Direct/0] 00:26:50
                    > via lo0.6
10.0.9.7/32        *[OSPF/10] 00:06:42, metric 1
                    > to 10.0.8.2 via em6.67
172.16.40.0/30     *[Direct/0] 00:07:23
                    > via em6.68
172.16.40.2/32     *[Local/0] 00:07:23
                      Local via em6.68
172.16.40.4/30     *[OSPF/10] 00:06:42, metric 2
                    > to 10.0.8.2 via em6.67
192.168.0.0/22     *[Aggregate/130] 00:26:58
                      Reject
                    [OSPF/150] 00:06:42, metric 0, tag 0
                    > to 10.0.8.2 via em6.67
                    [BGP/170] 00:06:39, localpref 100, from 10.0.9.7
                      AS path: I       
                    > to 10.0.8.2 via em6.67
192.168.0.0/24     *[RIP/100] 00:07:23, metric 2, tag 0
                    > to 172.16.40.1 via em6.68
192.168.0.1/32     *[RIP/100] 00:07:23, metric 2, tag 0
                    > to 172.16.40.1 via em6.68
192.168.10.0/24    *[BGP/170] 00:05:21, localpref 100, from 10.0.3.5
                      AS path: (65000) I
                    > to 10.0.8.6 via em6.56
192.168.20.0/24    *[BGP/170] 00:05:21, localpref 100, from 10.0.3.5
                      AS path: (65000) I
                    > to 10.0.8.6 via em6.56
192.168.30.0/24    *[BGP/170] 00:05:21, localpref 100, from 10.0.3.5
                      AS path: (65000) I
                    > to 10.0.8.6 via em6.56
192.168.40.0/24    *[BGP/170] 00:05:21, localpref 100, from 10.0.3.5
                      AS path: (65000) I
                    > to 10.0.8.6 via em6.56
192.168.50.0/24    *[BGP/170] 00:05:21, localpref 100, from 10.0.3.5
                      AS path: I
                    > to 10.0.8.6 via em6.56
192.168.60.0/24    *[Static/5] 00:26:58
                      Reject
192.168.70.0/24    *[BGP/170] 00:06:39, localpref 100, from 10.0.9.7
                      AS path: I
                    > to 10.0.8.2 via em6.67
192.168.100.0/24   *[BGP/170] 00:05:21, localpref 100, from 10.0.3.5
                      AS path: (65000) I
                    > to 10.0.8.6 via em6.56
224.0.0.5/32       *[OSPF/10] 00:26:58, metric 1
                      MultiRecv
224.0.0.9/32       *[RIP/100] 00:07:23, metric 1
                      MultiRecv

[edit logical-systems]
root@JNCIP_1#

[edit logical-systems]
root@JNCIP_1# run show route logical-system r7   

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

10.0.2.0/30        *[OSPF/10] 00:07:22, metric 2
                    > to 10.0.8.9 via em7.57
10.0.2.4/30        *[OSPF/10] 00:07:22, metric 3
                    > to 10.0.8.9 via em7.57
10.0.2.8/30        *[OSPF/10] 00:07:22, metric 2
                    > to 10.0.8.9 via em7.57
10.0.3.3/32        *[OSPF/10] 00:07:17, metric 2
                    > to 10.0.8.9 via em7.57
10.0.3.4/32        *[OSPF/10] 00:07:22, metric 2
                    > to 10.0.8.9 via em7.57
10.0.3.5/32        *[OSPF/10] 00:07:22, metric 1
                    > to 10.0.8.9 via em7.57
10.0.4.0/22        *[OSPF/10] 00:07:17, metric 5
                    > to 10.0.8.9 via em7.57
10.0.5.0/24        *[OSPF/150] 00:07:17, metric 15, tag 420
                    > to 10.0.8.9 via em7.57
10.0.8.0/30        *[Direct/0] 00:07:27
                    > via em7.67
10.0.8.2/32        *[Local/0] 00:07:27
                      Local via em7.67 
10.0.8.4/30        *[OSPF/10] 00:06:46, metric 2
                      to 10.0.8.9 via em7.57
                    > to 10.0.8.1 via em7.67
10.0.8.8/30        *[Direct/0] 00:07:27
                    > via em7.57
10.0.8.10/32       *[Local/0] 00:07:27
                      Local via em7.57
10.0.9.6/32        *[OSPF/10] 00:06:46, metric 1
                    > to 10.0.8.1 via em7.67
10.0.9.7/32        *[Direct/0] 00:26:54
                    > via lo0.7
172.16.40.0/30     *[OSPF/10] 00:06:46, metric 2
                    > to 10.0.8.1 via em7.67
172.16.40.4/30     *[Direct/0] 00:07:27
                    > via em7.78
172.16.40.6/32     *[Local/0] 00:07:27
                      Local via em7.78
192.168.0.0/22     *[Aggregate/130] 00:27:02
                      Reject
                    [OSPF/150] 00:06:46, metric 0, tag 0
                    > to 10.0.8.1 via em7.67
                    [BGP/170] 00:06:43, localpref 100, from 10.0.9.6
                      AS path: I       
                    > to 10.0.8.1 via em7.67
192.168.0.0/24     *[RIP/100] 00:07:27, metric 2, tag 0
                    > to 172.16.40.5 via em7.78
192.168.0.1/32     *[RIP/100] 00:07:27, metric 2, tag 0
                    > to 172.16.40.5 via em7.78
192.168.10.0/24    *[BGP/170] 00:07:15, localpref 100, from 10.0.3.5
                      AS path: (65000) I
                    > to 10.0.8.9 via em7.57
192.168.20.0/24    *[BGP/170] 00:07:15, localpref 100, from 10.0.3.5
                      AS path: (65000) I
                    > to 10.0.8.9 via em7.57
192.168.30.0/24    *[BGP/170] 00:07:15, localpref 100, from 10.0.3.5
                      AS path: (65000) I
                    > to 10.0.8.9 via em7.57
192.168.40.0/24    *[BGP/170] 00:07:15, localpref 100, from 10.0.3.5
                      AS path: (65000) I
                    > to 10.0.8.9 via em7.57
192.168.50.0/24    *[BGP/170] 00:07:15, localpref 100, from 10.0.3.5
                      AS path: I
                    > to 10.0.8.9 via em7.57
192.168.60.0/24    *[BGP/170] 00:06:43, localpref 100, from 10.0.9.6
                      AS path: I
                    > to 10.0.8.1 via em7.67
192.168.70.0/24    *[Static/5] 00:27:02
                      Reject
192.168.100.0/24   *[BGP/170] 00:07:15, localpref 100, from 10.0.3.5
                      AS path: (65000) I
                    > to 10.0.8.9 via em7.57
224.0.0.5/32       *[OSPF/10] 00:27:02, metric 1
                      MultiRecv
224.0.0.9/32       *[RIP/100] 00:07:27, metric 1
                      MultiRecv

[edit logical-systems]
root@JNCIP_1#


(Traceroute)
root@JNCIP_1# run traceroute 192.168.0.1 logical-system r1 source 10.0.5.1                      
traceroute to 192.168.0.1 (192.168.0.1) from 10.0.5.1, 30 hops max, 40 byte packets
 1  10.0.4.13 (10.0.4.13)  0.909 ms  0.297 ms  0.255 ms
 2  10.0.2.1 (10.0.2.1)  0.264 ms  0.397 ms  0.372 ms
 3  10.0.8.10 (10.0.8.10)  0.548 ms  0.562 ms  0.441 ms
 4  192.168.0.1 (192.168.0.1)  0.644 ms  1.097 ms  2.007 ms

[edit logical-systems]
root@JNCIP_1#

root@JNCIP_2# run traceroute 10.0.5.1 logical-system RIP source 192.168.0.1   
traceroute to 10.0.5.1 (10.0.5.1) from 192.168.0.1, 30 hops max, 40 byte packets
 1  172.16.40.2 (172.16.40.2)  1.258 ms  0.259 ms  0.262 ms
 2  10.0.8.6 (10.0.8.6)  1.714 ms  7.315 ms  1.746 ms
 3  10.0.2.10 (10.0.2.10)  0.744 ms  0.668 ms  0.402 ms
 4  10.0.4.10 (10.0.4.10)  0.558 ms  0.794 ms  0.525 ms
 5  10.0.5.1 (10.0.5.1)  0.505 ms  0.518 ms  0.520 ms

[edit]
root@JNCIP_2#


Final configuration:
(Olive-1):
[edit logical-systems]
root@JNCIP_1# show | display set
set logical-systems r1 interfaces em1 unit 12 description "Connect to r2 em2.12"
set logical-systems r1 interfaces em1 unit 12 vlan-id 12
set logical-systems r1 interfaces em1 unit 12 family inet address 10.0.4.5/30
set logical-systems r1 interfaces em1 unit 13 description "Connect to r3 em3.13"
set logical-systems r1 interfaces em1 unit 13 vlan-id 13
set logical-systems r1 interfaces em1 unit 13 family inet address 10.0.4.14/30
set logical-systems r1 interfaces em1 unit 129 description "Connect to r2 em2.129"
set logical-systems r1 interfaces em1 unit 129 vlan-id 129
set logical-systems r1 interfaces em1 unit 129 family inet address 10.0.5.1/24
set logical-systems r1 interfaces lo0 unit 1 family inet address 10.0.6.1/32
set logical-systems r1 protocols bgp export ibgp
set logical-systems r1 protocols bgp group 65000 type internal
set logical-systems r1 protocols bgp group 65000 local-address 10.0.6.1
set logical-systems r1 protocols bgp group 65000 neighbor 10.0.3.3
set logical-systems r1 protocols bgp group 65000 neighbor 10.0.3.4
set logical-systems r1 protocols ospf export VL129
set logical-systems r1 protocols ospf reference-bandwidth 1g
set logical-systems r1 protocols ospf area 0.0.0.1 nssa
set logical-systems r1 protocols ospf area 0.0.0.1 interface em1.12 priority 0
set logical-systems r1 protocols ospf area 0.0.0.1 interface em1.13 priority 0
set logical-systems r1 protocols ospf area 0.0.0.1 interface lo0.1 passive
set logical-systems r1 policy-options policy-statement VL129 term 1 from protocol direct
set logical-systems r1 policy-options policy-statement VL129 term 1 from route-filter 10.0.5.0/24 exact
set logical-systems r1 policy-options policy-statement VL129 term 1 then metric 10
set logical-systems r1 policy-options policy-statement VL129 term 1 then tag 420
set logical-systems r1 policy-options policy-statement VL129 term 1 then external type 1
set logical-systems r1 policy-options policy-statement VL129 term 1 then accept
set logical-systems r1 policy-options policy-statement ibgp term 1 from protocol static
set logical-systems r1 policy-options policy-statement ibgp term 1 from route-filter 192.168.0.0/16 longer
set logical-systems r1 policy-options policy-statement ibgp term 1 then accept
set logical-systems r1 routing-options static route 192.168.10.0/24 reject
set logical-systems r1 routing-options static route 192.168.100.0/24 reject
set logical-systems r1 routing-options router-id 10.0.6.1
set logical-systems r1 routing-options autonomous-system 65000
set logical-systems r1 routing-options confederation 65412
set logical-systems r1 routing-options confederation members 65000
set logical-systems r1 routing-options confederation members 65001
set logical-systems r2 interfaces em2 unit 12 description "Connect to r1 em1.12"
set logical-systems r2 interfaces em2 unit 12 vlan-id 12
set logical-systems r2 interfaces em2 unit 12 family inet address 10.0.4.6/30
set logical-systems r2 interfaces em2 unit 23 description "Connect to r3 em3.23"
set logical-systems r2 interfaces em2 unit 23 vlan-id 23
set logical-systems r2 interfaces em2 unit 23 family inet address 10.0.4.2/30
set logical-systems r2 interfaces em2 unit 24 description "Connect to r4 em4.24"
set logical-systems r2 interfaces em2 unit 24 vlan-id 24
set logical-systems r2 interfaces em2 unit 24 family inet address 10.0.4.10/30
set logical-systems r2 interfaces em2 unit 129 description "Connect to r1 em1.129"
set logical-systems r2 interfaces em2 unit 129 vlan-id 129
set logical-systems r2 interfaces em2 unit 129 family inet address 10.0.5.2/24
set logical-systems r2 interfaces lo0 unit 2 family inet address 10.0.6.2/32
set logical-systems r2 protocols bgp export ibgp
set logical-systems r2 protocols bgp group 65000 type internal
set logical-systems r2 protocols bgp group 65000 local-address 10.0.6.2
set logical-systems r2 protocols bgp group 65000 neighbor 10.0.3.3
set logical-systems r2 protocols bgp group 65000 neighbor 10.0.3.4
set logical-systems r2 protocols ospf export VL129
set logical-systems r2 protocols ospf reference-bandwidth 1g
set logical-systems r2 protocols ospf area 0.0.0.1 nssa
set logical-systems r2 protocols ospf area 0.0.0.1 interface em2.12
set logical-systems r2 protocols ospf area 0.0.0.1 interface em2.23
set logical-systems r2 protocols ospf area 0.0.0.1 interface em2.24
set logical-systems r2 protocols ospf area 0.0.0.1 interface lo0.2 passive
set logical-systems r2 policy-options policy-statement VL129 term 1 from protocol direct
set logical-systems r2 policy-options policy-statement VL129 term 1 from route-filter 10.0.5.0/24 exact
set logical-systems r2 policy-options policy-statement VL129 term 1 then metric 10
set logical-systems r2 policy-options policy-statement VL129 term 1 then tag 420
set logical-systems r2 policy-options policy-statement VL129 term 1 then external type 1
set logical-systems r2 policy-options policy-statement VL129 term 1 then accept
set logical-systems r2 policy-options policy-statement ibgp term 1 from protocol static
set logical-systems r2 policy-options policy-statement ibgp term 1 from route-filter 192.168.0.0/16 longer
set logical-systems r2 policy-options policy-statement ibgp term 1 from route-filter 192.168.100.0/24 exact next term
set logical-systems r2 policy-options policy-statement ibgp term 1 then accept
set logical-systems r2 policy-options policy-statement ibgp term 2 from route-filter 192.168.100.0/24 exact
set logical-systems r2 policy-options policy-statement ibgp term 2 then community add r2
set logical-systems r2 policy-options policy-statement ibgp term 2 then accept
set logical-systems r2 policy-options community r2 members 65412:2
set logical-systems r2 routing-options static route 192.168.20.0/24 reject
set logical-systems r2 routing-options static route 192.168.100.0/24 reject
set logical-systems r2 routing-options router-id 10.0.6.2
set logical-systems r2 routing-options autonomous-system 65000
set logical-systems r2 routing-options confederation 65412
set logical-systems r2 routing-options confederation members 65000
set logical-systems r2 routing-options confederation members 65001
set logical-systems r3 interfaces em3 unit 13 description "Connecto to r1 em1.13"
set logical-systems r3 interfaces em3 unit 13 vlan-id 13
set logical-systems r3 interfaces em3 unit 13 family inet address 10.0.4.13/30
set logical-systems r3 interfaces em3 unit 23 description "Connecto to r2 em2.23"
set logical-systems r3 interfaces em3 unit 23 vlan-id 23
set logical-systems r3 interfaces em3 unit 23 family inet address 10.0.4.1/30
set logical-systems r3 interfaces em3 unit 34 description "Connecto to r4 em4.34"
set logical-systems r3 interfaces em3 unit 34 vlan-id 34
set logical-systems r3 interfaces em3 unit 34 family inet address 10.0.2.5/30
set logical-systems r3 interfaces em3 unit 35 description "Connecto to r5 em5.35"
set logical-systems r3 interfaces em3 unit 35 vlan-id 35
set logical-systems r3 interfaces em3 unit 35 family inet address 10.0.2.2/30
set logical-systems r3 interfaces lo0 unit 3 family inet address 10.0.3.3/32
set logical-systems r3 protocols bgp export ibgp
set logical-systems r3 protocols bgp group 65000 type internal
set logical-systems r3 protocols bgp group 65000 local-address 10.0.3.3
set logical-systems r3 protocols bgp group 65000 advertise-inactive
set logical-systems r3 protocols bgp group 65000 import PREFER-R2
set logical-systems r3 protocols bgp group 65000 cluster 1.1.1.1
set logical-systems r3 protocols bgp group 65000 neighbor 10.0.6.1
set logical-systems r3 protocols bgp group 65000 neighbor 10.0.6.2
set logical-systems r3 protocols bgp group 65000 neighbor 10.0.3.4
set logical-systems r3 protocols bgp group C-BGP type external
set logical-systems r3 protocols bgp group C-BGP neighbor 10.0.2.1 peer-as 65001
set logical-systems r3 protocols ospf reference-bandwidth 1g
set logical-systems r3 protocols ospf area 0.0.0.1 nssa default-lsa default-metric 10
set logical-systems r3 protocols ospf area 0.0.0.1 nssa default-lsa metric-type 1
set logical-systems r3 protocols ospf area 0.0.0.1 nssa default-lsa type-7
set logical-systems r3 protocols ospf area 0.0.0.1 nssa no-summaries
set logical-systems r3 protocols ospf area 0.0.0.1 area-range 10.0.4.0/22
set logical-systems r3 protocols ospf area 0.0.0.1 interface em3.23 metric 2
set logical-systems r3 protocols ospf area 0.0.0.1 interface em3.13 metric 2
set logical-systems r3 protocols ospf area 0.0.0.0 interface em3.34 interface-type nbma
set logical-systems r3 protocols ospf area 0.0.0.0 interface em3.34 authentication md5 1 key "$9$PTF/cSeK87"
set logical-systems r3 protocols ospf area 0.0.0.0 interface em3.34 neighbor 10.0.2.6 eligible
set logical-systems r3 protocols ospf area 0.0.0.0 interface em3.35 authentication md5 1 key "$9$c0krK84oGUHm"
set logical-systems r3 protocols ospf area 0.0.0.0 interface lo0.3 passive
set logical-systems r3 policy-options policy-statement PREFER-R2 term 1 from community r2
set logical-systems r3 policy-options policy-statement PREFER-R2 term 1 then preference 20
set logical-systems r3 policy-options policy-statement ibgp term 1 from protocol static
set logical-systems r3 policy-options policy-statement ibgp term 1 from route-filter 192.168.30.0/24 exact
set logical-systems r3 policy-options policy-statement ibgp term 1 then accept
set logical-systems r3 policy-options community r2 members 65412:2
set logical-systems r3 routing-options static route 192.168.30.0/24 reject
set logical-systems r3 routing-options router-id 10.0.3.3
set logical-systems r3 routing-options autonomous-system 65000
set logical-systems r3 routing-options confederation 65412
set logical-systems r3 routing-options confederation members 65000
set logical-systems r3 routing-options confederation members 65001
set logical-systems r4 interfaces em4 unit 24 description "Connect to r2 em2.24"
set logical-systems r4 interfaces em4 unit 24 vlan-id 24
set logical-systems r4 interfaces em4 unit 24 family inet address 10.0.4.9/30
set logical-systems r4 interfaces em4 unit 34 description "Connect to r3 em3.34"
set logical-systems r4 interfaces em4 unit 34 vlan-id 34
set logical-systems r4 interfaces em4 unit 34 family inet address 10.0.2.6/30
set logical-systems r4 interfaces em4 unit 45 description "Connect to r5 em5.45"
set logical-systems r4 interfaces em4 unit 45 vlan-id 45
set logical-systems r4 interfaces em4 unit 45 family inet address 10.0.2.10/30
set logical-systems r4 interfaces lo0 unit 4 family inet address 10.0.3.4/32
set logical-systems r4 protocols bgp export ibgp
set logical-systems r4 protocols bgp group 65000 type internal
set logical-systems r4 protocols bgp group 65000 local-address 10.0.3.4
set logical-systems r4 protocols bgp group 65000 advertise-inactive
set logical-systems r4 protocols bgp group 65000 import PREFER-R2
set logical-systems r4 protocols bgp group 65000 cluster 1.1.1.1
set logical-systems r4 protocols bgp group 65000 neighbor 10.0.6.1
set logical-systems r4 protocols bgp group 65000 neighbor 10.0.6.2
set logical-systems r4 protocols bgp group 65000 neighbor 10.0.3.3
set logical-systems r4 protocols bgp group C-BGP type external
set logical-systems r4 protocols bgp group C-BGP neighbor 10.0.2.9 peer-as 65001
set logical-systems r4 protocols ospf reference-bandwidth 1g
set logical-systems r4 protocols ospf area 0.0.0.0 interface em4.34 interface-type nbma
set logical-systems r4 protocols ospf area 0.0.0.0 interface em4.34 authentication md5 1 key "$9$OIrTIhrVb2gJD"
set logical-systems r4 protocols ospf area 0.0.0.0 interface em4.34 neighbor 10.0.2.5
set logical-systems r4 protocols ospf area 0.0.0.0 interface em4.45 authentication md5 1 key "$9$NPVs4PfzF/t"
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.1 nssa default-lsa default-metric 10
set logical-systems r4 protocols ospf area 0.0.0.1 nssa default-lsa metric-type 1
set logical-systems r4 protocols ospf area 0.0.0.1 nssa default-lsa type-7
set logical-systems r4 protocols ospf area 0.0.0.1 nssa no-summaries
set logical-systems r4 protocols ospf area 0.0.0.1 area-range 10.0.4.0/22
set logical-systems r4 protocols ospf area 0.0.0.1 interface em4.24
set logical-systems r4 policy-options policy-statement PREFER-R2 term 1 from community r2
set logical-systems r4 policy-options policy-statement PREFER-R2 term 1 then preference 20
set logical-systems r4 policy-options policy-statement ibgp term 1 from protocol static
set logical-systems r4 policy-options policy-statement ibgp term 1 from route-filter 192.168.40.0/24 exact
set logical-systems r4 policy-options policy-statement ibgp term 1 then accept
set logical-systems r4 policy-options community r2 members 65412:2
set logical-systems r4 routing-options static route 192.168.40.0/24 reject
set logical-systems r4 routing-options router-id 10.0.3.4
set logical-systems r4 routing-options autonomous-system 65000
set logical-systems r4 routing-options confederation 65412
set logical-systems r4 routing-options confederation members 65000
set logical-systems r4 routing-options confederation members 65001
set logical-systems r5 interfaces em5 unit 35 description "Connect to r3 em3.35"
set logical-systems r5 interfaces em5 unit 35 vlan-id 35
set logical-systems r5 interfaces em5 unit 35 family inet address 10.0.2.1/30
set logical-systems r5 interfaces em5 unit 45 description "Connect to r4 em4.45"
set logical-systems r5 interfaces em5 unit 45 vlan-id 45
set logical-systems r5 interfaces em5 unit 45 family inet address 10.0.2.9/30
set logical-systems r5 interfaces em5 unit 56 description "Connect to r6 em6.56"
set logical-systems r5 interfaces em5 unit 56 vlan-id 56
set logical-systems r5 interfaces em5 unit 56 family inet address 10.0.8.6/30
set logical-systems r5 interfaces em5 unit 57 description "Connect to r7 em7.57"
set logical-systems r5 interfaces em5 unit 57 vlan-id 57
set logical-systems r5 interfaces em5 unit 57 family inet address 10.0.8.9/30
set logical-systems r5 interfaces lo0 unit 5 family inet address 10.0.3.5/32
set logical-systems r5 protocols bgp export ibgp
set logical-systems r5 protocols bgp group 65001 type internal
set logical-systems r5 protocols bgp group 65001 local-address 10.0.3.5
set logical-systems r5 protocols bgp group 65001 authentication-key "$9$KSYWX-UDkqfz"
set logical-systems r5 protocols bgp group 65001 cluster 2.2.2.2
set logical-systems r5 protocols bgp group 65001 no-client-reflect
set logical-systems r5 protocols bgp group 65001 multipath
set logical-systems r5 protocols bgp group 65001 neighbor 10.0.9.6
set logical-systems r5 protocols bgp group 65001 neighbor 10.0.9.7 hold-time 135
set logical-systems r5 protocols bgp group C-BGP type external
set logical-systems r5 protocols bgp group C-BGP neighbor 10.0.2.2 peer-as 65000
set logical-systems r5 protocols bgp group C-BGP neighbor 10.0.2.10 peer-as 65000
set logical-systems r5 protocols ospf external-preference 171
set logical-systems r5 protocols ospf reference-bandwidth 1g
set logical-systems r5 protocols ospf area 0.0.0.0 interface em5.35 authentication md5 1 key "$9$2foZjn6AtOR"
set logical-systems r5 protocols ospf area 0.0.0.0 interface em5.45 authentication md5 1 key "$9$F7rr6CuKvLX-w"
set logical-systems r5 protocols ospf area 0.0.0.0 interface lo0.5 passive
set logical-systems r5 protocols ospf area 0.0.0.20 area-range 10.0.8.0/21
set logical-systems r5 protocols ospf area 0.0.0.20 area-range 172.16.40.0/28
set logical-systems r5 protocols ospf area 0.0.0.20 interface em5.56
set logical-systems r5 protocols ospf area 0.0.0.20 interface em5.57
set logical-systems r5 policy-options policy-statement ibgp term 1 from protocol static
set logical-systems r5 policy-options policy-statement ibgp term 1 from route-filter 192.168.50.0/24 exact
set logical-systems r5 policy-options policy-statement ibgp term 1 then accept
set logical-systems r5 routing-options static route 192.168.50.0/24 reject
set logical-systems r5 routing-options router-id 10.0.3.5
set logical-systems r5 routing-options autonomous-system 65001
set logical-systems r5 routing-options confederation 65412
set logical-systems r5 routing-options confederation members 65000
set logical-systems r5 routing-options confederation members 65001
set logical-systems r6 interfaces em6 unit 56 description "Connect to r5 em5.56"
set logical-systems r6 interfaces em6 unit 56 vlan-id 56
set logical-systems r6 interfaces em6 unit 56 family inet address 10.0.8.5/30
set logical-systems r6 interfaces em6 unit 67 description "Connect to r7 em7.67"
set logical-systems r6 interfaces em6 unit 67 vlan-id 67
set logical-systems r6 interfaces em6 unit 67 family inet address 10.0.8.1/30
set logical-systems r6 interfaces em6 unit 68 description "Connect to RIP em1.68"
set logical-systems r6 interfaces em6 unit 68 vlan-id 68
set logical-systems r6 interfaces em6 unit 68 family inet address 172.16.40.2/30
set logical-systems r6 interfaces lo0 unit 6 family inet address 10.0.9.6/32
set logical-systems r6 protocols bgp export ibgp
set logical-systems r6 protocols bgp group 65001 type internal
set logical-systems r6 protocols bgp group 65001 local-address 10.0.9.6
set logical-systems r6 protocols bgp group 65001 authentication-key "$9$I1ChyKsYoaUH"
set logical-systems r6 protocols bgp group 65001 neighbor 10.0.3.5
set logical-systems r6 protocols bgp group 65001 neighbor 10.0.9.7 hold-time 135
set logical-systems r6 protocols ospf export RIP>OSPF
set logical-systems r6 protocols ospf reference-bandwidth 1g
set logical-systems r6 protocols ospf area 0.0.0.20 interface em6.56
set logical-systems r6 protocols ospf area 0.0.0.20 interface em6.67
set logical-systems r6 protocols ospf area 0.0.0.20 interface lo0.6 passive
set logical-systems r6 protocols ospf area 0.0.0.20 interface em6.68 passive
set logical-systems r6 protocols rip group RIP metric-out 1
set logical-systems r6 protocols rip group RIP export OSPF>RIP
set logical-systems r6 protocols rip group RIP import RIP>IMPORT-1
set logical-systems r6 protocols rip group RIP neighbor em6.68
set logical-systems r6 policy-options policy-statement OSPF>RIP term 1 from protocol ospf
set logical-systems r6 policy-options policy-statement OSPF>RIP term 1 from route-filter 10.0.5.0/24 exact
set logical-systems r6 policy-options policy-statement OSPF>RIP term 1 then accept
set logical-systems r6 policy-options policy-statement OSPF>RIP term 2 then reject
set logical-systems r6 policy-options policy-statement RIP>IMPORT-1 term 1 from protocol rip
set logical-systems r6 policy-options policy-statement RIP>IMPORT-1 term 1 from route-filter 192.168.0.0/24 orlonger
set logical-systems r6 policy-options policy-statement RIP>IMPORT-1 term 1 then accept
set logical-systems r6 policy-options policy-statement RIP>IMPORT-1 term 2 then reject
set logical-systems r6 policy-options policy-statement RIP>IMPORT-2 from protocol rip
set logical-systems r6 policy-options policy-statement RIP>IMPORT-2 from route-filter 10.0.5.0/24 exact
set logical-systems r6 policy-options policy-statement RIP>IMPORT-2 then preference 155
set logical-systems r6 policy-options policy-statement RIP>OSPF term 1 from protocol aggregate
set logical-systems r6 policy-options policy-statement RIP>OSPF term 1 from route-filter 192.168.0.0/22 exact
set logical-systems r6 policy-options policy-statement RIP>OSPF term 1 then accept
set logical-systems r6 policy-options policy-statement ibgp term 1 from protocol static
set logical-systems r6 policy-options policy-statement ibgp term 1 from route-filter 192.168.60.0/24 exact
set logical-systems r6 policy-options policy-statement ibgp term 1 then accept
set logical-systems r6 policy-options policy-statement ibgp term 2 from protocol aggregate
set logical-systems r6 policy-options policy-statement ibgp term 2 from route-filter 192.168.0.0/22 exact
set logical-systems r6 policy-options policy-statement ibgp term 2 then accept
set logical-systems r6 routing-options static route 192.168.60.0/24 reject
set logical-systems r6 routing-options aggregate route 192.168.0.0/22
set logical-systems r6 routing-options router-id 10.0.9.6
set logical-systems r6 routing-options autonomous-system 65001
set logical-systems r6 routing-options confederation 65412
set logical-systems r6 routing-options confederation members 65000
set logical-systems r6 routing-options confederation members 65001
set logical-systems r7 interfaces em7 unit 57 description "Connect to r5 em5.57"
set logical-systems r7 interfaces em7 unit 57 vlan-id 57
set logical-systems r7 interfaces em7 unit 57 family inet address 10.0.8.10/30
set logical-systems r7 interfaces em7 unit 67 description "Connect to r6 em6.67"
set logical-systems r7 interfaces em7 unit 67 vlan-id 67
set logical-systems r7 interfaces em7 unit 67 family inet address 10.0.8.2/30
set logical-systems r7 interfaces em7 unit 78 description "Connect to RIP em1.78"
set logical-systems r7 interfaces em7 unit 78 vlan-id 78
set logical-systems r7 interfaces em7 unit 78 family inet address 172.16.40.6/30
set logical-systems r7 interfaces lo0 unit 7 family inet address 10.0.9.7/32
set logical-systems r7 protocols bgp export ibgp
set logical-systems r7 protocols bgp group 65001 type internal
set logical-systems r7 protocols bgp group 65001 local-address 10.0.9.7
set logical-systems r7 protocols bgp group 65001 hold-time 135
set logical-systems r7 protocols bgp group 65001 passive
set logical-systems r7 protocols bgp group 65001 authentication-key "$9$p3oXOIcN-ws4Z"
set logical-systems r7 protocols bgp group 65001 neighbor 10.0.3.5
set logical-systems r7 protocols bgp group 65001 neighbor 10.0.9.6
set logical-systems r7 protocols ospf export RIP>OSPF
set logical-systems r7 protocols ospf reference-bandwidth 1g
set logical-systems r7 protocols ospf area 0.0.0.20 interface em7.57
set logical-systems r7 protocols ospf area 0.0.0.20 interface em7.67
set logical-systems r7 protocols ospf area 0.0.0.20 interface lo0.7 passive
set logical-systems r7 protocols ospf area 0.0.0.20 interface em7.78 passive
set logical-systems r7 protocols rip group RIP metric-out 2
set logical-systems r7 protocols rip group RIP export OSPF>RIP
set logical-systems r7 protocols rip group RIP import RIP>IMPORT-1
set logical-systems r7 protocols rip group RIP neighbor em7.78
set logical-systems r7 policy-options policy-statement OSPF>RIP term 1 from protocol ospf
set logical-systems r7 policy-options policy-statement OSPF>RIP term 1 from route-filter 10.0.5.0/24 exact
set logical-systems r7 policy-options policy-statement OSPF>RIP term 1 then accept
set logical-systems r7 policy-options policy-statement OSPF>RIP term 2 then reject
set logical-systems r7 policy-options policy-statement RIP>IMPORT-1 term 1 from protocol rip
set logical-systems r7 policy-options policy-statement RIP>IMPORT-1 term 1 from route-filter 192.168.0.0/24 orlonger
set logical-systems r7 policy-options policy-statement RIP>IMPORT-1 term 1 then accept
set logical-systems r7 policy-options policy-statement RIP>IMPORT-1 term 2 then reject
set logical-systems r7 policy-options policy-statement RIP>IMPORT-2 term 1 from protocol rip
set logical-systems r7 policy-options policy-statement RIP>IMPORT-2 term 1 from route-filter 10.0.5.0/24 exact
set logical-systems r7 policy-options policy-statement RIP>IMPORT-2 term 1 then preference 155
set logical-systems r7 policy-options policy-statement RIP>OSPF term 1 from protocol aggregate
set logical-systems r7 policy-options policy-statement RIP>OSPF term 1 from route-filter 192.168.0.0/22 exact
set logical-systems r7 policy-options policy-statement RIP>OSPF term 1 then accept
set logical-systems r7 policy-options policy-statement ibgp term 1 from protocol static
set logical-systems r7 policy-options policy-statement ibgp term 1 from route-filter 192.168.70.0/24 exact
set logical-systems r7 policy-options policy-statement ibgp term 1 then accept
set logical-systems r7 policy-options policy-statement ibgp term 2 from protocol aggregate
set logical-systems r7 policy-options policy-statement ibgp term 2 from route-filter 192.168.0.0/22 exact
set logical-systems r7 policy-options policy-statement ibgp term 2 then accept
set logical-systems r7 routing-options static route 192.168.70.0/24 reject
set logical-systems r7 routing-options aggregate route 192.168.0.0/22
set logical-systems r7 routing-options router-id 10.0.9.7
set logical-systems r7 routing-options autonomous-system 65001
set logical-systems r7 routing-options confederation 65412
set logical-systems r7 routing-options confederation members 65000
set logical-systems r7 routing-options confederation members 65001

[edit logical-systems]
root@JNCIP_1#


(Olvie-2):
[edit]
root@JNCIP_2# show | display set
set version 12.1R1.9
set system host-name JNCIP_2
set system root-authentication encrypted-password "$1$5bfCL6uX$DlJ/81p.yu2.aai.8e7tA1"
set logical-systems RIP interfaces em1 unit 68 description "Connect to r6 em6.68"
set logical-systems RIP interfaces em1 unit 68 vlan-id 68
set logical-systems RIP interfaces em1 unit 68 family inet address 172.16.40.1/30
set logical-systems RIP interfaces em1 unit 78 description "Connect to r7 em7.78"
set logical-systems RIP interfaces em1 unit 78 vlan-id 78
set logical-systems RIP interfaces em1 unit 78 family inet address 172.16.40.5/30
set logical-systems RIP interfaces lo0 unit 8 family inet address 192.168.0.1/32
set logical-systems RIP interfaces lo0 unit 8 family inet address 192.168.1.1/32
set logical-systems RIP interfaces lo0 unit 8 family inet address 192.168.2.1/32
set logical-systems RIP interfaces lo0 unit 8 family inet address 192.168.3.1/32
set logical-systems RIP interfaces lo0 unit 8 family inet address 192.168.4.1/32
set logical-systems RIP protocols rip group RIP export RIP_OUT
set logical-systems RIP protocols rip group RIP neighbor em1.68
set logical-systems RIP protocols rip group RIP neighbor em1.78
set logical-systems RIP policy-options policy-statement RIP_OUT term 1 from protocol static
set logical-systems RIP policy-options policy-statement RIP_OUT term 1 from protocol rip
set logical-systems RIP policy-options policy-statement RIP_OUT then accept
set logical-systems RIP routing-options static route 192.168.0.0/24 receive
set logical-systems RIP routing-options static route 192.168.1.0/24 receive
set logical-systems RIP routing-options static route 192.168.2.0/24 receive
set logical-systems RIP routing-options static route 192.168.3.0/24 receive
set logical-systems RIP routing-options static route 192.168.4.0/24 receive
set interfaces em1 vlan-tagging
set interfaces em2 vlan-tagging
set interfaces em3 vlan-tagging
set interfaces em4 vlan-tagging
set interfaces em5 vlan-tagging
set interfaces em6 vlan-tagging

[edit]
root@JNCIP_2#


Reference:
Juniper Networks Certified Internet Professional Study Guide
Chapter 5 Case Study (p.440)

JunOS 12.1 BGP Configuration Guide
http://www.juniper.net/techpubs/en_US/junos12.1/information-products/pathway-pages/config-guide-routing/config-guide-routing-bgp.html


最初發表 / 最後更新: 2014.06.05 / 2018.06.15

0 comments:

張貼留言