Configuring the ospf cost on an interface, Configuring ospf route priority – H3C Technologies H3C S3600 Series Switches User Manual
Page 345
4-18
To do...
Use the command...
Remarks
Configure to filter the
received routes
filter-policy { acl-number | ip-prefix
ip-prefix-name | gateway
ip-prefix-name } import
Required
By default, OSPF does not filter
received routing information.
OSPF is a dynamic routing protocol based on link state, with routing information hidden in LSAs.
Therefore, OSPF cannot filter any advertised or received LSA. In fact, the filter-policy import
command filters the routes calculated by SPF algorithm (namely, routes in the OSPF routing table); only
the routes passing the filter can be added to the routing table.
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.