359
Configuring a preference for OSPFv3
A router can run multiple routing protocols. The system assigns a priority for each protocol. When these
routing protocols find the same route, the route found by the protocol with the highest priority is selected.
To configure a preference for OSPFv3:
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter OSPFv3 view.
ospfv3 [ process-id |
vpn-instance
vpn-instance-name ] *
N/A
3. Configure a preference
for OSPFv3.
preference [ ase ] [ route-policy
route-policy-name ] preference
By default, the preference of OSPFv3
internal routes is 10, and the priority of
OSPFv3 external routes is 150.
Configuring OSPFv3 route redistribution
Because OSPFv3 is a link state routing protocol, it cannot directly filter LSAs to be advertised. OSPFv3
filters only redistributed routes. Only routes that are not filtered out can be advertised in LSAs.
Executing the import-route or default-route-advertise command on a router makes it become an ASBR.
To configure OSPFv3 route redistribution:
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter OSPFv3 view.
ospfv3 [ process-id | vpn-instance
vpn-instance-name ] *
N/A
3. Configure OSPFv3 to
redistribute routes from other
routing protocols.
import-route protocol [ process-id |
all-processes | allow-ibgp ] [ cost cost |
route-policy route-policy-name | tag tag
| type type ] *
By default, route redistribution
is disabled.
The tag tag option is
available in Release
2406P03 and later versions.
4. (Optional.) Set a tag for
redistributed routes.
default tag tag
By default, the tag of
redistributed routes is 1.
This command is available in
Release 2406P03 and later
versions.
5. (Optional.) Configure
OSPFv3 to redistribute a
default route.
default-route-advertise [ [ always |
permit-calculate-other ] | cost cost |
route-policy route-policy-name | type
type ] *
By default, no default route is
redistributed.
This command can only inject
and advertise a default route.