As shown in the following figure, I want to router A does not learn the route the 192.168.10.21/32 advertised by router B. So I have configured the following filter-policy.
#
ip ip-prefix prefix1 index 10 permit 192.168.10.21 32
#
route-policy test deny node 10
if-match interface Ethernet0/0/0
if-match ip-prefix prefix1
#
ospf 1
filter-policy route-policy test import
#
However, after configured the filter-policy, all the OSPF routes are filtered.
By default, all routes that do not match the route-policy are filtered. Therefore, you should add a new node to the route-policy to permit other OSPF routers.
By default, all routes that do not match the route-policy are filtered. Therefore, you should add a new node to the route-policy to permit other OSPF routers.
Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
Politically sensitive content
Content concerning pornography, gambling, and drug abuse
Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."