H3C S7500 Series Ethernet Switches Operation Manual
Operation Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 4 OSPF Configuration
4-17
Note:
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 OSPF; only the
routes passing the filter can be added to the routing table.
4.6.4 Configuring the Cost for Sending Packets on an OSPF Interface
Follow these steps to configure the cost for sending packets on an OSPF interface:
To do... Use the command... Remarks
Enter system view
system-view
—
Enter interface view
interface interface-type
interface-number
—
Configure the cost
for sending packets
on an OSPF
interface
ospf cost value
Required
By default, OSPF calculates the
cost for sending packets on an
interface according to the current
baud rate on the interface. For a
VLAN interface on the switch,
this value is fixed at 1.
4.6.5 Setting 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
route with the highest priority will take preference over other routes.
Follow these steps to set OSPF route priority:
To do... Use the command... Remarks
Enter system view
system-view
—
Enter OSPF view
ospf [ process-id [ router-id
router-id ] ]
—
Set OSPF route
priority
preference [ ase ] value
Required
By default, the OSPF route
priority is 10 and the priority
of OSPF ASE is 150.