R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference

45
Default
RIP does not redistribute routes from other routing protocols.
Views
RIP view
Default command level
2: System level
Parameters
protocol: Specifies a routing protocol from which to redistribute routes. It can be bgp, direct, isis, ospf,
rip, or static.
process-id: Specifies a process by its ID in the range of 1 to 65535. The default is 1. This argument is
available only when the protocol is isis, rip, or ospf.
all-processes: Enables route redistribution from all the processes of a protocol. This keyword takes effect
only when the protocol is rip, ospf, or isis.
allow-ibgp: When the protocol argument is set to bgp, allow-ibgp is an optional keyword.
cost: Specifies a 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: Specifies a tag for marking redistributed routes, in the range of 0 to 65535. The default is 0.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63
characters.
Usage guidelines
The import-route bgp command only redistributes EBGP routes. The import-route bgp allow-ibgp
command additionally redistributes IBGP routes, which might cause routing loops.
Only active routes can be redistributed. Use the display ip routing-table protocol command to display
route state information.
Examples
# Redistribute static routes, and set the cost to 4.
<Sysname> system-view
[Sysname] rip 1
[Sysname-rip-1] import-route static cost 4
# Configure the default cost for redistributed routes as 3.
[Sysname-rip-1] default cost 3
# Redistribute OSPF routes with the cost being the default cost.
[Sysname-rip-1] import-route ospf
Related commands
default cost
maximum load-balancing (RIP view)
Use maximum load-balancing to specify the maximum number of equal-cost multi-path (ECMP) routes for
load balancing.
Use undo maximum load-balancing to restore the default.