R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference
173
Parameters
ipv4-unicast: Specifies an IPv4 unicast topology.
topology-name: Specifies a topology by its name, a case-sensitive character string of 1 to 31 characters.
protocol: Specifies a process by its ID in the range of 1 to 65535. It is available only when the protocol
is IS-IS, OSPF or RIP.
process-id: Process ID, in the range of 1 to 65535. It is available only when the protocol is IS-IS, OSPF
or RIP.
all-processes: Redistributes routes from all the processes of the specified routing protocol. This keyword
takes effect only when the protocol is rip, ospf, or isis.
allow-ibgp: Allows redistribution of IBGP routes. It is available when the protocol is BGP.
cost: Specifies a cost for redistributed routes.
The range of the cost depends on its style:
• For the styles of narrow, narrow-compatible, and compatible, the cost is in the range of 0 to 63.
• For the styles of wide, wide-compatible, the cost is in the range of 0 to 16777215.
cost-type { external | internal }: Specifies the cost type. The internal type indicates internal routes, and
the external type indicates external routes. If external is specified, the cost of a redistributed route to be
advertised is added by 64 to make internal routes take priority over external routes. The type is external
by default. The keywords are available only when the cost type is narrow, narrow-compatible, or
compatible.
level-1: Redistributes routes into the Level-1 routing table.
level-1-2: Redistributes routes into both Level-1 and Level-2 routing tables.
level-2: Redistributes routes into the Level-2 routing table. If no level is specified, the routes are
redistributed into the Level-2 routing table by default.
route-policy route-policy-name: Redistributes only routes matching the specified routing policy. The
routing policy name is a case-sensitive string of 1 to 63 characters.
tag tag: Specifies a tag value for redistributed routes from 1 to 4294967295.
Usage guidelines
IS-IS takes all the redistributed routes as external routes to destinations outside the IS-IS routing domain.
If no topology is specified, the command redistributes routes from the specified routing protocol or IS-IS
process in the base topology.
The import-route bgp command redistributes only EBGP routes. The import-route bgp allow-ibgp
command redistributes both EBGP and IBGP routes, but this might cause routing loops. Use this
command cautiously.
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 15.
<Sysname> system-view
[Sysname] isis 1
[Sysname-isis-1] import-route static cost 15