Advertising a host route – H3C Technologies H3C S10500 Series Switches User Manual

Page 102

Advertising
background image

87

To do…

Use the command…

Remarks

Enter system view

system-view

Enter OSPF view

ospf [ process-id | router-id router-id |
vpn-instance vpn-instance-name ] *

Redistribute a default route

default-route-advertise [ [ [ always |
permit-calculate-other ] | cost cost |
route-policy route-policy-name | type type ] * |

summary cost cost ]

Required
Not redistributed by

default.

NOTE:

The default-route-advertise summary cost command is applicable only to VPN, and the default route is
redistributed in a Type-3 LSA. The PE router advertises the default route to the CE router.

Configure the default parameters for redistributed routes

You can configure default parameters, such as the cost, upper limit, tag and type for redistributed routes.
Tags indicate information related to protocols. For example, when redistributing BGP routes, OSPF uses

tags to identify AS IDs.
Follow these steps to configure the default parameters for redistributed routes:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter OSPF view

ospf [ process-id | router-id router-id |
vpn-instance vpn-instance-name ] *

Configure the default
parameters for redistributed

routes (cost, route number, tag,

and type)

default { cost cost | limit limit | tag tag | type
type } *

Optional
The default cost is 1, the
default maximum number

of routes redistributed per

time is 1000, the default

tag is 1, and default type
of redistributed routes is

Type-2.

Advertising a host route

Follow these steps to advertise a host route:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter OSPF view

ospf [ process-id | router-id
router-id | vpn-instance
vpn-instance-name ] *

Enter area view

area area-id

Advertising