Switch 7700 Configuration Guide

92 CHAPTER 5: ROUTING PROTOCOL OPERATION
Configure OSPF to Import the Default Route
The import-route command cannot be used to import the default route. Using
the default-route-advertise command, you can import the default route into
the routing table.
Perform the following configuration in OSPF view.
By default, OSPF does not import the default route.
Set OSPF Route Preference
Since it is possible for multiple dynamic routing protocols to run on one router
concurrently, the problem of route sharing and selection between routing
protocols occurs. The system sets a priority for each routing protocol, which is
used in tie-breaking if different protocols discover the same route.
Perform the following configuration in OSPF view.
By default, the OSPF preference is 10, and the imported external routing protocol
is 150.
Configure OSPF Route Filtering
Perform the following configuration in OSPF view.
Tab le 43 Configure OSPF to Import the Default Route
Operation Command
Import the default route to OSPF default-route-advertise [ always ] [ cost value ] [ type
type-value ] [ route-policy route-policy-name ]
Remove the imported default route undo default-route-advertise [ always ] [ cost ] [ type
] [ route-policy ]
Tab le 44 Set OSPF Route Preference
Operation Command
Configure a priority for OSPF
for comparing with the other
routing protocols
preference [ ase ] preference
Restore the default protocol
priority
undo preference [ ase ]
Tab le 45 Enable OSPF to Filter the Imported Routes
Operation Command
Configure OSPF to fileter imported external routes
Disable to filter the imported
global routing information
filter-policy { acl-number | ip-prefix ip-prefix-name |
gateway prefix-list- name } import
Cancel to filter the imported
global routing information
undo filter-policy { acl-number | ip-prefix ip-prefix-name |
gateway prefix- list-name } import
Configure OSPF to filter distributed routes
Enable OSPF to filter the
distributed routes
filter-policy { acl-number | ip-prefix ip-prefix-name } export
[ routing- process ]
Disable OSPF to filter the
distributed routes
undo filter-policy { acl-number | ip-prefix ip-prefix-name }
export [ routing- process ]