No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


OSPF Failed to Import Static Routes on the S5700-28C-EI Running V200R005C00SPC500

Publication Date:  2019-04-08 Views:  148 Downloads:  0

Issue Description

Model and version: S5700-28C-EI running V200R005C00SPC500

Problem: The local uplink interface runs OSPF, and the downlink interface is the outbound interface of the static route. After the import policy is configured, the static routes and direct routes fail to be imported into OSPF.

The key configurations are as follows:

acl number 2001

rule 5 permit source

ip ip-prefix static_import index 10 permit 24

ip ip-prefix static_import index 20 permit 24

ospf 1

filter-policy ip-prefix static_import export static

import-route direct cost 20 route-policy 1

import-route static route-policy 2








route-policy 2 permit node 10

if-match acl 2001

ip route-static

ip route-static

ip route-static description

ip route-static description

Handling Process

Check the routing table. It is found that the static routes are not imported into OSPF but the static routes are valid.

Check the configuration. No obvious error is found.

Check the LSDB. It is found that Type 5 LSAs are not generated.

Check the configuration again. It is found that the device is configured to filter imported routes to be advertised, and the routes to be advertised do not include the imported subnet route

Run the ip ip-prefix static_import index 30 permit 25 command to permit the subnet route to be imported. The problem is solved.

Root Cause

The routes imported by OSPF need to be filtered before they are advertised. In ospf 1, only the specified routes can be imported, and the static routes with the prefixes in the static_import list are advertised. The routes specified by the ip route-static command is not among the routes to be advertised. Therefore no LSAs are generated for the routes in the OSPF LSDB.


Add the ip ip-prefix static_import index 30 permit 25 command to permit the subnet route to be imported.


If route import and advertisement are performed in the same OSPF process, the routes that can be imported must be allowed for advertisement.