9-32
Parameters
protocol
: Redistributes routes from a specified routing protocol, which can be
bgp4+
,
direct
,
isisv6
,
ospf v3
,
ripng
, or
static
.
process-id:
Process ID of the routing protocol, in the range 1 to 65536. It defaults to 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 cost
: Specifies a cost for redistributed routes, ranging from 1 to 16777214. The default is 1.
route-policy
route-policy-name
: Redistributes only the routes that match the specified route policy.
route-policy-name
is a string of 1 to 19 characters.
type
type
: Specifies the type for redistributed routes, 1 or 2. It defaults to 2.
Using the
import-route bgp4+
command redistributes only EBGP routes, while using the
import-route bgp4+ allow-ibgp
command redistributes both EBGP and IBGP routes.
Description
Use the
import-route
command to redistribute routes.
Use the
undo import-route
command to disable routes redistribution.
IPv6 OSPFv3 does not redistribute routes from other protocols by default.
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
Syntax
log-peer-change
undo log-peer-change
View
OSPFv3 view
Default Level
2: System level