Operation Manual – IPv4 Routing
H3C S3610&S5510 Series Ethernet Switches
Chapter 3 OSPF Configuration
3-30
3.6.5 Configuring an OSPF Cost for an Interface
Follow these steps to configure an OSPF cost for an interface:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter interface view
interface
interface-type
interface-number
—
Configure an OSPF cost
for the interface
ospf cost value
Optional
By default, an interface
computes its cost
according to the baud rate.
The cost value defaults to 1
for VLAN interfaces.
Follow these steps to configure a bandwidth reference value:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter OSPF view
ospf
[
process-id
|
router-id
router-id
|
vpn-instance
instance-name
]*
—
Configure a bandwidth
reference value
bandwidth-reference
value
Optional
The value defaults to 100
Mbps.
Note:
If no OSPF cost is configured for an interface, OSPF computes the cost automatically:
Interface OSPF cost= Bandwidth reference value/Interface bandwidth. If the calculated
cost is greater than 65535, the value of 65535 is used.
3.6.6 Configuring the Maximum Number of OSPF Routes
Follow these steps to configure the maximum number of routes:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter OSPF view
ospf
[
process-id
|
router-id
router-id
|
vpn-instance
instance-name
] *
—