R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference
368
Syntax
import-route protocol [ process-id | allow-ibgp ] [ cost value | route-policy route-policy-name | type
type ] *
undo import-route protocol [ process-id ]
Default
OSPFv3 does not redistribute routes from other protocols.
Views
OSPFv3 view
Default command level
2: System level
Parameters
protocol: Redistributes routes from a specified routing protocol, which can be bgp4+, direct, isisv6, ospf
v3, ripng, or static.
process-id: Specifies the process ID of a routing protocol, in the range of 1 to 65536. The default is 1. This
argument takes effect only when the protocol is isisv6, ospfv3, or ripng.
allow-ibgp: Allows redistributing IBGP routes. This keyword takes effect only the protocol is bgp4+.
cost value: Specifies a cost for redistributed routes, in the range of 1 to 16777214. The default is 1.
route-policy route-policy-name: Redistributes only the routes that match the specified routing policy.
route-policy-name is a case-sensitive string of 1 to 63 characters.
type type: Specifies the type for redistributed routes, 1 or 2. It defaults to 2.
Usage guidelines
The import-route bgp4+ command redistributes only EBGP routes. The import-route bgp4+ allow-ibgp
command redistributes both EBGP and IBGP routes.
Examples
# Configure to redistribute routes from RIPng and specify the type as type 2 and cost as 50.
<Sysname> system-view
[Sysname] ospfv3
[Sysname-ospfv3-1] import-route ripng 10 type 2 cost 50
# Configure OSPFv3 process 100 to redistribute the routes found by OSPFv3 process 160.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] import-route ospfv3 160
log-peer-change
Use log-peer-change to enable the logging on neighbor state changes.
Use undo log-peer-change to disable the logging.
Syntax
log-peer-change
undo log-peer-change