H3C S7500 Series Ethernet Switches Operation Manual

Operation Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 4 OSPF Configuration
4-18
4.6.6 Configuring OSPF to Redistribute Routes
Follow these steps to configure OSPF to redistribute routes:
To do... Use the command... Remarks
Enter system view
System-view
Enter OSPF view
ospf [ process-id
[ router-id router-id ] ]
Enable OSPF to
redistribute routes from
another protocol
(excluding the default
route)
import-route protocol
[ process-id | allow-ibgp ]
[ cost value | type value |
tag value | route-policy
route-policy-name ]*
Required
By default, OSPF does
not import the routing
information of other
protocols.
Enable OSPF to filter
advertised routes
filter-policy { acl-number
| ip-prefix
ip-prefix-name } export
[ protocol ]
Optional
By default, OSPF does
not filter advertised
routes.
Enable OSPF to import
the default route
default-route-advertise
[ always | cost value |
type type-value |
route-policy
route-policy-name ]*
Required
By default, OSPF does
not import the default
route.
Configure the default cost
for OSPF to import
external routes
default cost value
Optional
By default, the cost for
OSPF to import external
routes is 1.
Configure the default
maximum number of
external routes that can
be imported by OSPF per
unit time.
default limit routes
Optional
By default, a maximum of
1000 routes can be
imported.
Configure the default tag
for OSPF to import
external routes
default tag tag
Optional
The default tag is 1.
Configure the default type
of external routes that
OSPF will import
default type { 1 | 2 }
Optional
By default, the type of
imported external routes
is Type-2.