Juniper JNCIA – Juniper RIP and OSPF Route Configuration

  • View
    211

  • Download
    3

Embed Size (px)

Text of Juniper JNCIA – Juniper RIP and OSPF Route Configuration

CISCO CCNA DHCP SERVER

Juniper JNCIJuniper OSPF Route Configuration

Juniper JNCIA

ASM Educational Center Inc. (ASM)WhereTraining,Technology&ServiceConvergeCheck out our Juniper Training Videos: www.asmed.com/j1

Juniper RIP and OSPF Route Configuration

Juniper RIP and OSPF Route Configuration

Juniper RIP and OSPF Route ConfigurationThe Goal is when I configure OSPF on the left side ( between R1,R2,R3) ; R4 be able to ping 1.1.1.1 and 3.3.3.3 after I export from OSPF to RIP.Up to now R2 has loopback address 2.2.2.2/32 and 2.2.2.3/32 that will be seen on R4 Routing tables since I have done RIP on R2 and R4

Juniper RIP and OSPF Route ConfigurationHere what we have on R4:root@R4> show configuration em2 { unit 0 { family inet { address 20.20.20.4/24; } } } lo0 { unit 0 { family inet { address 4.4.4.4/32; } } }}

Juniper RIP and OSPF Route Configurationprotocols { rip { group RIPGROUP4 { export RIPPOLICY; neighbor em2.0; } }}policy-options { policy-statement RIPPOLICY { term 1 { from protocol [ rip direct ]; then accept; } }}

Juniper RIP and OSPF Route ConfigurationHere what I have on R2#root@R2> show configurationinterfaces { em1 { unit 0 { family inet { address 10.10.10.2/24; } } } em2 { unit 0 { family inet { address 20.20.20.2/24; } } }

Juniper RIP and OSPF Route Configurationem3 { unit 0 { family inet { address 30.30.30.2/24; } } } lo0 { unit 0 { family inet { address 2.2.2.2/32; address 2.2.2.3/32; } } }}

Juniper RIP and OSPF Route Configurationprotocols { rip { group RIPGROUP { export RIPPOLICY2; neighbor em2.0; } }}policy-options { policy-statement RIPPOLICY2 { term 1 { from protocol [ rip direct ]; then accept; } }}

Juniper RIP and OSPF Route ConfigurationNow remember from last lab R4 can ping loopback address 2.2.2.2 and 2.2.2.3 root@R4> show routeinet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both

Juniper RIP and OSPF Route Configuration2.2.2.2/32 *[RIP/100] 00:01:48, metric 2, tag 0 > to 20.20.20.2 via em2.02.2.2.3/32 *[RIP/100] 00:01:48, metric 2, tag 0 > to 20.20.20.2 via em2.04.4.4.4/32 *[Direct/0] 00:02:59 > via lo0.010.10.10.0/24 *[RIP/100] 00:01:52, metric 2, tag 0 > to 20.20.20.2 via em2.020.20.20.0/24 *[Direct/0] 00:03:00 > via em2.020.20.20.4/32 *[Local/0] 00:03:00 Local via em2.030.30.30.0/24 *[RIP/100] 00:01:48, metric 2, tag 0 > to 20.20.20.2 via em2.0224.0.0.9/32 *[RIP/100] 00:03:01, metric 1 MultiRecv

Juniper RIP and OSPF Route Configurationroot@R4> ping 2.2.2.2PING 2.2.2.2 (2.2.2.2): 56 data bytes64 bytes from 2.2.2.2: icmp_seq=0 ttl=64 time=0.462 ms64 bytes from 2.2.2.2: icmp_seq=1 ttl=64 time=0.587 ms64 bytes from 2.2.2.2: icmp_seq=2 ttl=64 time=1.029 ms^C--- 2.2.2.2 ping statistics ---3 packets transmitted, 3 packets received, 0% packet lossround-trip min/avg/max/stddev = 0.462/0.693/1.029/0.243 ms

Juniper RIP and OSPF Route Configurationroot@R4> ping 2.2.2.3PING 2.2.2.3 (2.2.2.3): 56 data bytes64 bytes from 2.2.2.3: icmp_seq=0 ttl=64 time=0.522 ms64 bytes from 2.2.2.3: icmp_seq=1 ttl=64 time=0.910 ms64 bytes from 2.2.2.3: icmp_seq=2 ttl=64 time=0.948 ms64 bytes from 2.2.2.3: icmp_seq=3 ttl=64 time=0.^C--- 2.2.2.3 ping statistics ---4 packets transmitted, 4 packets received, 0% packet lossround-trip min/avg/max/stddev = 0.522/0.825/0.948/0.175 ms

Juniper RIP and OSPF Route ConfigurationNow I go to R1 and R3 and create all my interface and loopback address :Here is R1 configuration:root@R1# set interfaces em1 unit 0 family inet address 10.10.10.1/24 set interfaces lo0 unit 0 family inet address 1.1.1.1/32Now I will do on R3:root@R3#set interfaces em3 unit 0 family inet address 30.30.30.1/24 set interfaces lo0 unit 0 family inet address 3.3.3.3/32

Juniper RIP and OSPF Route ConfigurationNow I will go configure OPPF on R1#root@R1#set protocols ospf area 0.0.0.0 interface em1.0 set protocols ospf area 0.0.0.0 interface lo0.0Now I will go configure OPSF on R2#root@R2# set protocols ospf area 0.0.0.0 interface em1.0 set protocols ospf area 0.0.0.0 interface em3.0 set protocols ospf area 0.0.0.0 interface lo0.0

Juniper RIP and OSPF Route ConfigurationNow we see R2 is neighbor with R1 root@R2> show ospf neighborAddress Interface State ID Pri Dead10.10.10.1 em1.0 Full 1.1.1.1 128 35Lets look at R1 , routing table : I can see the loopback of R2 , not Loopback of R3 =3.3.3.3 since I need to finish my OSPF configuration on R3

Juniper RIP and OSPF Route Configurationroot@R1> show routeinet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both1.1.1.1/32 *[Direct/0] 00:23:25 > via lo0.02.2.2.2/32 *[OSPF/10] 00:09:04, metric 1 > to 10.10.10.2 via em1.02.2.2.3/32 *[OSPF/10] 00:09:04, metric 1 > to 10.10.10.2 via em1.010.10.10.0/24 *[Direct/0] 00:31:53 > via em1.010.10.10.1/32 *[Local/0] 00:31:53 Local via em1.030.30.30.0/24 *[OSPF/10] 00:09:04, metric 2 > to 10.10.10.2 via em1.0224.0.0.5/32 *[OSPF/10] 00:13:11, metric 1 MultiRecv

Juniper RIP and OSPF Route ConfigurationNow I will configure OSPF on R3#root@R3# set protocols ospf area 0.0.0.0 interface em3.0 set protocols ospf area 0.0.0.0 interface lo0.0Now when I go to R3 and I should have two neighbors on R3root@R2> show ospf neighborAddress Interface State ID Pri Dead10.10.10.1 em1.0 Full 1.1.1.1 128 3430.30.30.1 em3.0 Full 3.3.3.3 128 39Lets look at R1 routing table I should see the loopback of R2=2.2.2.2 , 2.2.2.3 and Loopback of R3=3.3.3.3

Juniper RIP and OSPF Route Configurationroot@R1> show routeinet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both1.1.1.1/32 *[Direct/0] 00:30:12 > via lo0.02.2.2.2/32 *[OSPF/10] 00:15:51, metric 1 > to 10.10.10.2 via em1.02.2.2.3/32 *[OSPF/10] 00:15:51, metric 1 > to 10.10.10.2 via em1.03.3.3.3/32 *[OSPF/10] 00:03:03, metric 2 > to 10.10.10.2 via em1.010.10.10.0/24 *[Direct/0] 00:38:40 > via em1.010.10.10.1/32 *[Local/0] 00:38:40 Local via em1.030.30.30.0/24 *[OSPF/10] 00:15:51, metric 2 > to 10.10.10.2 via em1.0224.0.0.5/32 *[OSPF/10] 00:19:58, metric 1 MultiRecv

Juniper RIP and OSPF Route ConfigurationSo up to now R1, R2, R3 are talking via OPSF and R2 and R4 are talking via RIP ; now when I go to R4 routing table I do not see the loopback of R1=1.1.1.1 and R3=3.3.3.3 inside R4Lets go to R4#root@R4> show route

Juniper RIP and OSPF Route Configurationinet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both2.2.2.2/32 *[RIP/100] 00:48:21, metric 2, tag 0 > to 20.20.20.2 via em2.02.2.2.3/32 *[RIP/100] 00:48:21, metric 2, tag 0 > to 20.20.20.2 via em2.04.4.4.4/32 *[Direct/0] 00:49:32 > via lo0.010.10.10.0/24 *[RIP/100] 00:48:25, metric 2, tag 0 > to 20.20.20.2 via em2.020.20.20.0/24 *[Direct/0] 00:49:33 > via em2.020.20.20.4/32 *[Local/0] 00:49:33 Local via em2.030.30.30.0/24 *[RIP/100] 00:48:21, metric 2, tag 0 > to 20.20.20.2 via em2.0224.0.0.9/32 *[RIP/100] 00:49:34, metric 1 MultiRecv

Juniper RIP and OSPF Route Configurationinet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both2.2.2.2/32 *[RIP/100] 00:48:21, metric 2, tag 0 > to 20.20.20.2 via em2.02.2.2.3/32 *[RIP/100] 00:48:21, metric 2, tag 0 > to 20.20.20.2 via em2.04.4.4.4/32 *[Direct/0] 00:49:32 > via lo0.010.10.10.0/24 *[RIP/100] 00:48:25, metric 2, tag 0 > to 20.20.20.2 via em2.020.20.20.0/24 *[Direct/0] 00:49:33 > via em2.020.20.20.4/32 *[Local/0] 00:49:33 Local via em2.030.30.30.0/24 *[RIP/100] 00:48:21, metric 2, tag 0 > to 20.20.20.2 via em2.0224.0.0.9/32 *[RIP/100] 00:49:34, metric 1 MultiRecv

Juniper RIP and OSPF Route ConfigurationIn order R4 be able to see loopback 1.1.1.1 and 3.3.3.3 I need to go to Middle router R2 and export the OSPF into RIP ( the same way we did on RIP and connected) lets look at R2 , what we have so far:root@R2> show configurationproto