RIP can import external routes to enrich routing information.
Before configuring RIP to import external routes, complete the following tasks:
Configuring IP addresses for interfaces to ensure that neighboring nodes are reachable at the network layer
To access a device running a non-RIP protocol, an RIP-capable device needs to import routes of the non-RIP protocol into the RIP network.
All the following commands can set the cost of the imported route. They are listed in descending order of priorities.
Run the apply cost command to set the cost of a route.
Run the import-route (RIP)command to set the cost of the imported route.
Run the default-cost (RIP) command to set the cost of the default route.
system-view
rip [ process-id ]
default-cost cost
If no cost is specified, this command can be used to set the default cost for the external routes imported by RIP from other routing protocols.
import-route bgp [ permit-ibgp ] [ cost { cost | transparent } | route-policy route-policy-name ] * or import-route { { static | direct | unr } | { { rip | ospf | isis } [ process-id ] } } [ cost cost | route-policy route-policy-name ] *
Import of IBGP routes in RIP process can lead to routing loops. Administrator should take care of routing loops before configuring permit-ibgp.