Default Cost - H3C S5820X Series Command Reference Manual

Layer 3 - ip routing
Hide thumbs Also See for S5820X Series:
Table of Contents

Advertisement

Description
Use the bandwidth-reference command to specify a reference bandwidth value for link cost
calculation.
Use the undo bandwidth-reference command to restore the default value.
The default value is 100 Mbps.
You can configure an OSPFv3 cost for an interface with one of the following two methods:
Configure the cost value in interface view.
Configure a bandwidth reference value, and OSPFv3 computes the cost automatically based on
the bandwidth reference value: Interface OSPFv3 cost = Bandwidth reference value/Interface
bandwidth. If the calculated cost is greater than 65535, the value of 65535 is used.
If no cost value is configured for an interface, OSPFv3 computes the interface cost value
automatically:
Examples
# Specify the reference bandwidth value as 1000 Mbps.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] bandwidth-reference 1000

default cost

Syntax
default cost value
undo default cost
View
OSPFv3 view
Default Level
2: System level
Parameters
value: Specifies a default cost for redistributed routes, in the range of 1 to 16777214.
Description
Use the default cost command to configure a default cost for redistributed routes.
Use the undo default cost command to restore the default.
By default, the default cost is 1.
You need to configure the default cost value for redistributed routes to advertise them throughout the
whole AS.
If multiple OSPFv3 processes are available, use of this command takes effect for the current process
only.
Examples
# Specify the default cost for redistributed routes as 10.
<Sysname> system-view
[Sysname] ospfv3 1
9-3

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5800 series

Table of Contents