Juniper RIP OSPF Routes Redistribution
IN FIGURE 1 WE SHOW
A TOPOLOGY THAT IS RUNNING OSPF AND RIP. THIS LAB IS DESIGNED ON
VMWARE JUNIPER OLIVE. THE GOAL FOR THIS TOPOLOGY IS SIMPLE: ROUTES
REDISTRIBUTION BETWEEN ROUTERS. SO LET'S START:
1 Configuration on Juniper 1
1.1 Configure RIP protocol:
[edit]
root@juniper1# set interface em0.0 family inet address 192.168.3.1/24
root@juniper1# set interface em1.0 family inet address 10.1.1.5/24 ('this interface is used for test purposes)
root@juniper1# set protocols rip group small-rip neighbor em0.0
1.2 Configure RIP policy:
Default policy of RIP is to send out no routes unless explicitly told to do so. In order to begin sending out routes, first write a policy on Juniper 1 that sends the locally connected interface routes into RIP:
[edit]
root@juniper1# set policy-options policy-statement send-connected term 1 from protocol direct
root@juniper1# set policy-options policy-statement send-connected then accept
1.3 Apply the policy to RIP:
[edit]
root@juniper1# set protocols rip group small-rip export send-connected
2 Configuration on Juniper 2:
2.1 Configure RIP protocol on interface em1:
[edit]
root@juniper2# set interface em0.0 family inet address 192.168.1.2/24
root@juniper2# set interface em1.0 family inet address 192.168.3.2/24
root@juniper2# set protocols rip group small-rip neighbor em1.0
2.2 Configure RIP policy:
root@juniper2# set policy-options policy-statement send-connected term 1 from protocol direct
root@juniper2# set policy-options policy-statement send-connected then accept
2.3 Apply the policy to RIP:
[edit]
root@juniper2# set protocols rip group small-rip export send-connected
2.4 Configure OSPF protocol on interface em0:
[edit]
root@juniper2# set protocols ospf area 100 interface em0.0
2.5 Next, Juniper 2 must take the routes it receives from RIP and redistribute them into OSPF, for this purpose create the following policy:
[edit]
root@juniper2# set policy-options policy-statement rip-ospf term 2 from protocol riproot@juniper2# set policy-options policy-statement rip-ospf then accept
2.6 Apply the policy to OSPF:
[edit]
root@juniper2# set protocols ospf export rip-ospf
2.7 Now, create the policy for routes redistribution from OSPF into RIP :
[edit]
root@juniper2# set policy-options policy-statement send-default term 1 from protocol ospf
root@juniper2# set policy-options policy-statement send-default then accept
2.8) Apply the policy to RIP :
root@juniper2# set protocols rip group small-rip export send-default
3 Configuration on Juniper 3:
3.1. Configure OSPF protocol on interface em0:
root@juniper3# set interface em0.0 family inet address 192.168.1.5/24
root@juniper3# set interface em1.0 family inet address 10.1.1.1/24
root@juniper3# set protocols ospf area 100 interface em0.0
Now, routes from Juniper 1 are advertised to both routers Juniper 2 and Juniper 3. You can test it with ping command. Good Luck.
For more information please refer to "Junos Enterprise Switching" by Harry Reynolds and Douge Marschke
Comments