Configuring a RIP Network with a Configuration Editor
To configure the Juniper Networks device as a node in a RIP network, you must perform the following task marked (Required).
- Configuring a Basic RIP Network (Required)
- Controlling Traffic in a RIP Network (Optional)
- Enabling Authentication for RIP Exchanges (Optional)
For information about using the J-Web and CLI configuration editors, see the J-Web Interface User Guide and the JUNOS CLI User Guide.
Configuring a Basic RIP Network (Required)
To use RIP on the device, you must configure RIP on all the RIP interfaces within a network like the one shown in Figure 73.
Figure 73: Typical RIP Network Topology
By default, RIP does not advertise the subnets that are directly connected through the device's interfaces. For traffic to pass through a RIP network, you must create a routing policy to export these routes. Advertising only the direct routes propagates the routes to the immediately adjacent RIP-enabled router only. To propagate all routes through the entire RIP network, you must configure the routing policy to export the routes learned through RIP.
To configure a RIP network like the one in Figure 73, with a routing policy, perform these steps on each device in the network:
- Navigate to the top of the configuration hierarchy in either the J-Web or CLI configuration editor.
- Perform the configuration tasks described in Table 154.
- If you are finished configuring the router, commit
the configuration.
After you add the appropriate interfaces to the RIP group, RIP begins sending routing information. No additional configuration is required to enable RIP traffic on the network.
- Go on to one of the following procedures:
- To control RIP traffic on the network, see Controlling Traffic in a RIP Network (Optional).
- To authenticate RIP exchanges, see Enabling Authentication for RIP Exchanges (Optional).
- To check the configuration, see Verifying the RIP Configuration.
Table 154: Configuring a RIP Network
Task | J-Web Configuration Editor | CLI Configuration Editor |
---|---|---|
Navigate to the Rip level in the configuration hierarchy. |
| From the [edit] hierarchy level, enter edit protocols rip |
Create the RIP group alpha1. |
|
|
Add interfaces to the RIP group alpha1. For information about interface names, see Network Interface Naming. |
| |
Configure a routing policy to advertise directly connected routes. |
|
|
Configure the previous routing policy to advertise routes learned from RIP. |
|
|
Controlling Traffic in a RIP Network (Optional)
There are two primary means for controlling traffic in a RIP network: the incoming metric and the outgoing metric. To modify these attributes, see the following sections:
Controlling Traffic with the Incoming Metric
Depending on the RIP network topology and the links between nodes in the network, you might want to control traffic flow through the network to maximize flow across higher-bandwidth links. Figure 74 shows a network with alternate routes between Routers A and D.
Figure 74: Controlling Traffic in a RIP Network with the Incoming Metric
In this example, routes to Router D are received by Router A across both of its RIP-enabled interfaces. Because the route through Router B and the route through Router C have the same number of hops, both routes are imported into the forwarding table. However, because the T3 link from Router B to Router D has a higher bandwidth than the T1 link from Router C to Router D, you want traffic to flow from A through B to D.
To force this flow, you can modify the route metrics as they are imported into Router A's routing table. By setting the incoming metric on the interface from Router A to Router C, you modify the metric on all routes received through that interface. Setting the incoming route metric on Router A changes only the routes in Router A's routing table, and affects only how Router A sends traffic to Router D. Router D's route selection is based on its own routing table, which, by default, includes no adjusted metric values.
In the example, Router C receives a route advertisement from Router D and readvertises the route to Router A. When Router A receives the route, it applies the incoming metric on the interface. Instead of incrementing the metric by 1 (the default), Router A increments it by 3 (the configured incoming metric), giving the route from Router A to Router D through Router C a total path metric of 4. Because the route through Router B has a metric of 2, it becomes the preferred route for all traffic from Router A to Router D.
To modify the incoming metric on all routes learned on the link between Router A and Router C and force traffic through Router B:
- Navigate to the top of the configuration hierarchy in either the J-Web or CLI configuration editor.
- Perform the configuration tasks described in Table 155.
- If you are finished configuring the router, commit the configuration.
- Go on to one of the following procedures:
- To authenticate RIP exchanges, see Enabling Authentication for RIP Exchanges (Optional).
- To check the configuration, see Verifying the RIP Configuration.
Table 155: Modifying the Incoming Metric
Task | J-Web Configuration Editor | CLI Configuration Editor |
---|---|---|
In the configuration hierarchy, navigate to the level of an interface in the alpha1 RIP group. |
| From the [edit] hierarchy level, enter edit protocols rip group alpha1 neighbor ge-0/0/0 |
Increase the incoming metric to 3. | In the Metric in box, type 3, and click OK. | Set the incoming metric to 3: set metric-in 3 |
Controlling Traffic with the Outgoing Metric
If an exported route was learned from a member of the same RIP group, the metric associated with that route is the normal RIP metric. For example, a RIP route with a metric of 5 learned from a neighbor configured with an incoming metric of 2 is advertised with a combined metric of 7 when advertised to neighbors in the same group. However, if this route was learned from a RIP neighbor in a different group or from a different protocol, the route is advertised with the metric value configured in the outgoing metric for that group. Figure 75 shows a network with alternate routes between Routers A and D.
Figure 75: Controlling Traffic in a RIP Network with the Outgoing Metric
In this example, each route from Router A to Router D has two hops. However, because the link from Router A to Router B in RIP group Beta 1 has a higher bandwidth than the link from Router A to Router C in RIP group Alpha 1, you want traffic from Router D to Router A to flow through Router B. To control the way Router D sends traffic to Router A, you can alter the routes that Router D receives by configuring the outgoing metric on Router A's interfaces in the Alpha 1 RIP group.
If the outgoing metric for the Alpha 1 RIP group—the A-to-C link—is changed to 3, Router D calculates the total path metric from to A through C as 4. In contrast, the unchanged default total path metric to A through B in the Beta 1 RIP group is 2. The fact that Router A's interfaces belong to two different RIP groups allows you to configure two different outgoing metrics on its interfaces, because you configure path metrics at the group level.
By configuring the incoming metric, you control the way Router A sends traffic to Router D. By configuring the outgoing metric on the same router, you control the way Router D sends traffic to Router A.
To modify the outgoing metric on Router A and force traffic through Router B:
- Navigate to the top of the configuration hierarchy in either the J-Web or CLI configuration editor.
- Perform the configuration tasks described in Table 156.
- If you are finished configuring the router, commit the configuration.
- Go on to one of the following procedures:
- To authenticate RIP exchanges, see Enabling Authentication for RIP Exchanges (Optional).
- To check the configuration, see Verifying the RIP Configuration.
Table 156: Modifying the Outgoing Metric
Task | J-Web Configuration Editor | CLI Configuration Editor |
---|---|---|
Navigate to the alpha1 level in the configuration hierarchy. |
| From the [edit] hierarchy level, enter edit protocols rip group alpha1 |
Increase the outgoing metric to 3. | In the Metric out box, type 3, and click OK. | Set the outgoing metric to 3: set metric-out 3 |
Enabling Authentication for RIP Exchanges (Optional)
All RIPv2 protocol exchanges can be authenticated to guarantee that only trusted routers participate in the AS's routing. By default, this authentication is disabled. Authentication requires all routers within the RIP network or subnetwork to have the same authentication type and key (password) configured.
You can enable RIP authentication exchanges by either of the following methods:
Enabling Authentication with Plain-Text Passwords
To configure authentication that requires a plain-text password to be included in the transmitted packet, enable simple authentication by performing these steps on all RIP devices in the network:
- Navigate to the top of the configuration hierarchy in either the J-Web or CLI configuration editor.
- Perform the configuration tasks described in Table 157.
- If you are finished configuring the router, commit the configuration.
- To check the configuration, see Verifying the RIP Configuration.
Table 157: Configuring Simple RIP Authentication
Task | J-Web Configuration Editor | CLI Configuration Editor |
---|---|---|
Navigate to Rip level in the configuration hierarchy. |
| From the [edit] hierarchy level, enter edit protocols rip |
Set the authentication type to simple. | From the Authentication type list, select simple. | Set the authentication type to simple: set authentication-type simple |
Set the authentication key to a simple-text password. The password can be from 1 through 16 contiguous characters long and can include any ASCII strings. | In the Authentication key box, type a simple-text password, and click OK. | Set the authentication key to a simple-text password: set authentication-key password |
Enabling Authentication with MD5 Authentication
To configure authentication that requires an MD5 password to be included in the transmitted packet, enable MD5 authentication by performing these steps on all RIP devices in the network:
- Navigate to the top of the configuration hierarchy in either the J-Web or CLI configuration editor.
- Perform the configuration tasks described in Table 158.
- If you are finished configuring the router, commit the configuration.
- To check the configuration, see Verifying the RIP Configuration.
Table 158: Configuring MD5 RIP Authentication
Task | J-Web Configuration Editor | CLI Configuration Editor |
---|---|---|
Navigate to Rip level in the configuration hierarchy. |
| From the [edit] hierarchy level, enter edit protocols rip |
Set the authentication type to MD5. | From the Authentication type list, select md5. | Set the authentication type to md5: set authentication-type md5 |
Set the MD5 authentication key (password). The key can be from 1 through 16 contiguous characters long and can include any ASCII strings. | In the Authentication key box, type an MD5 authentication key, and click OK. | Set the MD5 authentication key: set authentication-key password |