Route filtering in OSPFv3

Latest reply: Nov 15, 2019 01:29:17 180 1 4 2

 Commonly we can filter the routes in the OSPF using route-policy. Actually, there is a more convenient way to do that job.

topo

 

As shown in this topology, suppose we want to block the network 2004::/64 being spread into the OSPFv3 when importing ISIS routes into OSPFv3, we can use the route-policy .

R5:
#
acl ipv6 number 2001 
 rule 5 deny source 2004::/64
 rule 10 permit
#
route-policy BLOCK_ROUTES deny node 10
 if-match ipv6 address prefix-list v6
#
route-policy BLOCK_ROUTES permit node 15
#
ospfv3 1
 router-id 5.5.5.5
 import-route isis 1 route-policy BLOCK_ROUTES
#

 

After configuring these configuration, network 2004::/64 will be blocked when imported into the OSPFv3.

The configuration seems too complicated, actucally, there is a convenient way to do this.

R5:
#
acl ipv6 number 2001 
 rule 5 deny source 2004::/64
 rule 10 permit
#
ospfv3 1
 router-id 5.5.5.5
 filter-policy 2001 export
#

 

Less code with same effect.

 

 

What if we want to block the connection between 2001::2/64 and 2006::2/64, the filter-policy export wouldn't be valid. In this situation, filter-policy import is introduced.

R3:
#
acl ipv6 number 2001
 rule 5 deny source 2006::/64
 rule 10 permit
#
ospfv3 1
 router-id 3.3.3.3
 filter-policy 2001 import
#

 

Only the parameter export needs to be modified to import.

 

OK, let's have a look at filter-policy export and filter-policy import.

Filter-policy export filters the imported routes, while the filter-policy import filters routes received by OSPF. In other words, filter-policy export is used to filter routes generated from other routing protocol or another OSPFv3 process, filter-policy import filters the routes generated in the same OSPFv3 process.

 

Actually, there is another filtering method, which is filter import/export.

Unlike the fitler-policy import/export, filter import/export doesn't filter the routes but the type 3 LSA. On one level, filtering could filter the routes more completely than the filter-policy does.

 


  • x
  • convention:

chenhui
Admin Created Nov 15, 2019 01:29:17 Helpful(0) Helpful(0)

interesting.
  • x
  • convention:

Comment

Reply
You need to log in to reply to the post Login | Register

Notice 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 " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Login and enjoy all the member benefits

Login and enjoy all the member benefits

Login