4-20
Configuring the OSPF Cost on an Interface
Follow these steps to configure the OSPF cost on an interface:
To do... Use the command... Remarks
Enter system view
system-view
—
Enter interface view
interface interface-type
interface-number
—
Configure the OSPF cost
on the interface
ospf cost value
Required
By default, a VLAN interface on the
switch, a fixed value of 10 is used.
Configuring OSPF Route Priority
Since multiple dynamic routing protocols may be running on one router, the problem of route sharing
and selection between various routing protocols arises. The system sets a priority for each routing
protocol (which you can change manually), and when more than one route to the same destination is
discovered by different protocols, the system add the route discovered by the protocol with the highest
priority to the routing table.
Follow these steps to configure OSPF route priority:
To do... Use the command... Remarks
Enter system view
system-view
—
Enter OSPF view
ospf [ process-id [ router-id
router-id ] ]
—
Configure OSPF route
priority
preference [ ase ] value
Required
By default, the OSPF route priority is
10 and the priority of OSPF ASE is
150.
Configuring the Maximum Number of OSPF ECMP Routes
Follow these steps to configure the maximum number of OSPF ECMP routes:
To do... Use the command... Remarks
Enter system view
system-view
—
Enter OSPF view
ospf [ process-id [ router-id
router-id ] ]
—
Configure the maximum
number of OSPF ECMP routes
multi-path-number value
Optional
3 by default