Configure RIP Route Generation
Configuration Condition
Before configuring RIP route generation, ensure that:
- Interface IP addresses have been configured so that neighbor nodes are reachable at the network layer.
- RIP is enabled.
Configure RIP to Advertise the Default Route
Through configuration, a device can send the default route on all RIP interfaces to set itself as the default gateway of other neighbor devices.
Table 5-5 Configure RIP to Advertise the Default Route
Step
|
Command
|
Description
|
Enter the global configuration mode.
|
configure terminal
|
-
|
Enter the RIP configuration mode.
|
router rip
|
Mandatory.
By default, the RIP process is disabled.
|
Configure RIP to advertise the default route.
|
default-information originate {only | originate [metric value] }
|
Mandatory.
By default, RIP does not advertise the default route.
|
-
If a default route (0.0.0.0/0) is learnt, the default route (0.0.0.0/0) advertised by the local device is replaced. When a loop exists in a network, network flapping may be caused. In using this command, prevent other devices in the same routing domain from enabling the command at the same time.
Configure RIP to Redistribute Routes
By redistributing routes, you can introduce the routes generated by other protocols to RIP.
Table 5-6 Configuring RIP to Redistribute Routes
Step
|
Command
|
Description
|
Enter the global configuration mode.
|
configure terminal
|
-
|
Enter the RIP configuration mode.
|
router rip
|
Mandatory.
By default, the RIP process is disabled.
|
Configure the default metric for the routes of other protocols introduced to RIP.
|
default-metric metric-value
|
Optional.
By default, the default metric of the introduced routes of other protocols is 1.
|
Configure RIP to redistribute routes.
|
redistribute protocol [ protocol-id ] [ metric metric-value ] [ route-map route-map-name ] [ match route-sub-type ]
|
Mandatory.
By default, route redistribution is not configured.
|
-
If the metric command option is specified during redistribution, the redistributed route adopts the metric.
- In configuring RIP to redistribute routes, the available match options for the applied routing policy include ip address, route type, and tag, and the available set options for the applied routing policy include interface, ip next-hop, route source, and metric.