Redistributing a default route, Configuring tags for redistributed routes – H3C Technologies H3C S5560 Series Switches User Manual

Page 390

Advertising
background image

374

Step Command

Remarks

3.

Configure OSPFv3 to
redistribute routes from other

routing protocols.

import-route protocol [ process-id |
all-processes | allow-ibgp ] [ cost cost |
nssa-only | route-policy

route-policy-name | tag tag | type type ]

*

By default, route redistribution
is disabled.

4.

(Optional.) Configure
OSPFv3 to filter redistributed

routes.

filter-policy { acl6-number | prefix-list

prefix-list-name } export [ protocol
[ process-id ] ]

By default, OSPFv3 accepts
all redistributed routes.
This command filters only
routes redistributed with the

import-route command. If the

import-route command is not

configured, executing this
command does not take

effect.

Redistributing a default route

The import-route command cannot redistribute a default external route. Perform this task to redistribute a
default route.
To redistribute a default route:

Step 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.

Redistribute a default
route.

default-route-advertise [ [ always |
permit-calculate-other ] | cost cost |

route-policy route-policy-name | tag tag |
type type ] *

By default, no default route is
redistributed.

Configuring tags for redistributed routes

Perform this task to configure tags for redistributed routes to identify information about protocols. For

example, when redistributing IPv6 BGP routes, OSPFv3 uses tags to identify AS IDs.
To configure a tag for redistributed routes:

Step 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 tag for
redistributed routes.

default tag tag

By default, the tag of
redistributed routes is 1.

Advertising
This manual is related to the following products: