SOURCECODEBD.NET

Live Experience

Juniper RIP Advertise Its Routes
 
You want your RIP-enabled router to share routes with its neighbors and learn routes from them.
To have RIP advertise RIP routes to its neighbors, you need to configure a routing policy that accepts all RIP packets:
 
[edit policy-options]
source@RouterA# set policy-statement Advertise-RIP-Routes term 1 from protocol direct
source@RouterA# set policy-statement Advertise-RIP-Routes term 1 from protocol rip
source@RouterA# set policy-statement Advertise-RIP-Routes term 1 then accept
source@router1# show
policy-options {
    policy-statement Advertise-RIP-Routes {
        term 1 {
            from protocol [ direct rip ];
            then accept;
        }
    }
}
 
Then you apply the policy to all updates sent by RIP:
 
[edit protocols rip]
source@RouterA# set group RIP-GROUP export Advertise-RIP-Routes
 
When you simply enable RIP, the default JUNOS behavior is to only receive RIP traffic but not learn any of the routes or send any RIP routes. To have RIP send routing information to its neighbors, you need to configure a routing policy that has RIP export routes to its neighbors. An easy way to do this is to have RIP send both the direct and the RIP routes it knows about. Sending the RIP routes is obvious, but why do you need to send the direct routes? Direct routes, which are routes directly to a subnet, are automatically created when you configure the subnet on an interface address. Because RIP does not exchange routes by default, when you first configure RIP on your network, your routers might not have learned any RIP routes. You use the direct routes to catalyze the route-learning process. Once the RIP routers have exchanged direct routes, they can start to exchange their RIP routes.
 
The routing policy you set up is a simple one. It has one term, which accepts all direct routes and all RIP routes. You apply the policy on the entire group of RIP neighbors, using an export statement to apply the policy to all outgoing RIP traffic. You can apply a RIP export policy only on an entire group of neighbors, so when you are designing your network and have decided which neighbors to place in which group, you need to consider that you have to apply the same routing policies to the entire group.
 
You see that RIP is now advertising routes to its neighbors. The fe-0/0/1 interface has sent two updates and has advertised four routes:
 
source@RouterA# run show rip statistics
 
You are here: Home / RIP / Juniper RIP Advertise Its Routes