Wired Intelligent Edge (Campus Switching and Routing)

Filter the networks/prefix information to advertise to the neighbor using route-maps in Aruba OS CX

MVP
MVP
Requirement:

Aruba OS CX switch



Solution:

How to filter the networks/prefix to advertise to the neighbor using route-maps  



Configuration:

My topology:

 

R1(AOS-CX switch)----------------------R2(any other router or switch)  in the same OSPF Area 0

 

R1 has below config for VLAN and OSPF and route maps:

 

interface vlan200 

    ip address 22.22.22.22/24

interface vlan201 

    ip address 20.20.20.20/24

interface vlan202 

    ip address 30.30.30.30/24

interface vlan203 

    ip address 40.40.40.40/24

 

!

 

router ospf 1

    redistribute connected route-map vlan

    area 0.0.0.0

!

 

route-map vlan permit seq 10

     match interface vlan203

route-map vlan permit seq 20

     match interface vlan200

route-map vlan permit seq 30

     match interface vlan202

!

 

R1(config)# show ip ospf neighbors 

OSPF Process ID 1 VRF default

==============================

 

Total Number of Neighbors: 1

 

Neighbor ID      Priority  State             Nbr Address       Interface

-------------------------------------------------------------------------

12.12.12.2       1         FULL/DR           12.12.12.2         1/1/1 

 


 



Verification

 

With neighbor ID which is same, we could validate they are in the same OSPF Area R1 and R2

 

On R2 able to see only the routes which user mapped in the route map:

 

!

 

R2(config)# show ip ospf neighbors 

OSPF Process ID 1 VRF default

==============================

 

Total Number of Neighbors: 1

 

Neighbor ID      Priority  State             Nbr Address       Interface

-------------------------------------------------------------------------

10.10.10.10      1         FULL/BDR          12.12.12.1         1/1/1          

 

!

 

R2(config)# show ip route 

 

Displaying ipv4 routes selected for forwarding

 

'[x/y]' denotes [distance/metric]

 

12.12.12.0/24, vrf default 

       via  1/1/1,  [0/0],  connected

12.12.12.2/32, vrf default 

       via  1/1/1,  [0/0],  local

22.22.22.0/24, vrf default 

       via  12.12.12.1,  [110/25],  ospf

30.30.30.0/24, vrf default 

       via  12.12.12.1,  [110/25],  ospf

40.40.40.0/24, vrf default 

       via  12.12.12.1,  [110/25],  ospf

 

 

So, we can see only routes which are matched in the route map are advertised by the R1 to R2 and with default metric 25.

Version history
Revision #:
1 of 1
Last update:
‎05-04-2020 12:10 AM
Updated by:
 
Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: