1170
C
77: RIP C
HAPTER
Examples
import-route (RIP view)
Syntax
View
Parameters
Description
Related commands:
Examples
C
ONFIGURATION
OMMANDS
# Disable RIP from receiving host routes.
<Sysname> system-view
[Sysname] rip 1
[Sysname-rip-1] undo host-route
import-route protocol [ process-id ] [ allow-jbgp ] [ cost cost | route-policy
route-policy-name | tag tag ]*
undo import-route protocol [ process-id ]
RIP view
protocol: Specify a routing protocol from which to redistribute routes, currently
including bgp, direct, isis, ospf, rip, rip and static.
process-id: Process number of the routing protocol, in the range of 1 to 65535,
used for isis, rip, and ospf.
cost: Cost for redistributed routes, in the range of 0 to 16. If cost is not specified,
the default cost specified by the default cost command applies.
tag: Tag marking redistributed routes, in the range of 0 to 65,535. The default is 0.
route-policy route-policy-name: Specifies a routing policy with 1 to 19
characters.
allow-ibgp: When the protocol argument is set to bgp, allow-ibgp is an
optional keyword. The import-route bgp command only redistributes EBGP
routes, while the import-route bgp allow-ibgp command additionally
redistributes IBGP routes, which may cause routing loops. Be cautious when using
it.
Use the
import-route
protocols.
Use the
undo import-route
By default, RIP does not redistribute routes from other routing protocols.
You can specify a routing policy using keyword route-policy to redistribute
■
only the specified routes.
You can configure a cost for redistributed routes using keyword cost.
■
You can configure a tag value for redistributed routes using keyword tag.
■
default cost (RIP view).
# Redistribute static routes, and set the cost to 4.
command to redistribute routes from other routing
command to cancel route redistribution.