3-8
[Sysname-rip] undo host-route
import-route
Syntax
import-route protocol [process-id ] [ cost value | route-policy route-policy-name ]*
undo import-route protocol [ process-id ]
View
RIP view
Parameters
protocol: Source routing protocol from which routes are redistributed by RIP. At present, RIP can
redistribute routes from protocols: direct, ospf, ospf-ase, ospf-nssa and static.
process-id: Process ID of a routing protocol from which routes are redistributed, in the range of 1 to
65535. This argument is valid only for ospf, ospf-ase, and ospf-nssa.
value: Cost for redistributed routes, in the range of 0 16. If no cost is specified when redistributing routes,
the default cost defined by the default cost command will be used.
route-policy-name: Name of a routing policy, a string of 1 to 19 characters.
Description
Use the import-route command to enable RIP to redistribute routes from other protocols.
Use the undo import-route command to disable RIP from redistributing routes from other protocols.
By default, RIP does not redistribute routes from other protocols.
If the value is not specified, routes will be redistributed with the default cost defined by the default cost
command. If the cost of a redistributed route is 16, RIP does not stop advertising the route to other
routers until the Garbage Collection timer expires (the timer length defaults to 120 seconds).
Related commands: default cost.
Examples
# Redistribute static routes with the cost of 4.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] rip
[Sysname-rip] import-route static cost 4
# Set the default cost and redistribute OSPF routes with the default cost.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] rip
[Sysname-rip] default cost 3
[Sysname-rip] import-route ospf