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

Reminder

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

upgrade

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 10.244.9.0 0.0.0.127

ip ip-prefix static_import index 10 permit 10.240.106.0 24

ip ip-prefix static_import index 20 permit 10.240.107.0 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

area 0.0.0.0

network 10.144.254.0 0.0.0.255

network 10.244.4.8 0.0.0.7

network 10.244.4.16 0.0.0.7

network 10.244.4.24 0.0.0.7

network 10.244.4.32 0.0.0.7

#

route-policy 2 permit node 10

if-match acl 2001

ip route-static 0.0.0.0 0.0.0.0 10.244.4.9

ip route-static 10.244.9.0 255.255.255.128 10.244.4.9

ip route-static 62.253.214.129 255.255.255.255 10.244.4.9 description arc.abfoods.com

ip route-static 62.253.214.191 255.255.255.255 10.244.4.9 description rmscluster.abfoods.com

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 10.224.9.0/25.

Run the ip ip-prefix static_import index 30 permit 10.244.9.0 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 10.244.9.0 255.255.255.128 10.244.4.9 command is not among the routes to be advertised. Therefore no LSAs are generated for the routes in the OSPF LSDB.

Solution

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

Suggestions

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


END