298 CHAPTER 28: OSPF CONFIGURATION
Configuring OSPF
Inbound Route Filtering
Follow these steps to configure inbound route filtering:
n
Since OSPF is a link state-based interior gateway protocol, routing information is
contained in LSAs. However, OSPF cannot filter LSAs. Using the filter-policy
import command is to filter routes computed by OSPF, and only routes not
filtered out are installed into the routing table.
Configuring ABR Type-3
LSA Filtering
Follow these steps to configure Type-3 LSA filtering on an ABR:
Configuring an OSPF
Cost for an Interface
Follow these steps to configure an OSPF cost for an interface:
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 ] *
-
Configure ASBR route
summarization
asbr-summary ip-address
{ mask | mask-length } [ tag tag |
not-advertise | cost cost ] *
Required
Available on an ASBR only
Not configured by default
To do… Use the command… Remarks
Enter system view system-view -
Enter OSPF view ospf [ process-id | router-id router-id ] * Required
Configure inbound
route filtering
filter-policy { acl-number | ip-prefix
ip-prefix-name | gateway ip-prefix-name }
import
Required
Not configured by default
To do… Use the command… Remarks
Enter system view System-view -
Enter OSPF view ospf [ process-id | router-id
router-id ] *
-
Enter area view area area-id -
Configure ABR Type-3 LSA
filtering
filter { acl-number | ip-prefix
ip-prefix-name } { import |
export }
Required
Not configured by default
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 bandwidth.
The cost value defaults to 1 for
VLAN interfaces.