Friday, May 14, 2021

Aruba CX OSPF Config Example

 Building OSPF in Aruba CX switches. 

VIDEO LINK---> https://youtu.be/N9dIGVzdjIU

Version 10.05.0020

DistMain-Switch

vlan 1
vlan 2
vlan 6

vlan 830
    name OSPF-Dist-HS
vlan 831
    name OSPF-Dist-MS

//  vlan 1,2,6 are the local vlans
interface vlan 1
    ip address 10.129.31.254/22
interface vlan 2
    ip address 10.129.47.254/22
interface vlan 6
    ip address 10.129.3.254/22

//  vlan 830,831 are the OSPF networks that will distribute the routes.
interface vlan 830
    description OSPF-Dist-HS
    ip address 10.130.253.1/27
    ip ospf 1 area 0.0.0.0
interface vlan 831
    description OSPF-Dist-MS
    ip address 10.131.253.1/27
    ip ospf 1 area 0.0.0.0

// ospf config..... we are redistributing ALL connected routes on this switch.... If you want to only redistribute certain routes you would need to do a route-map.. see bottom of page for that example.
route ospf 1
    rotuer-id 1.1.1.1
    redistribute connected
    area 0.0.0.0

interface 1/1/2
    no shutdown
    no routing
    vlan trunk native 1
    vlan trunk allowed 830

interface 1/1/3
    no shutdown
    no routing
    vlan trunk native 1
    vlan trunk allowed 831


HS-Main-Switch

vlan 2
vlan 830

interface vlan 2
    ip address 10.130.47.254/22
interface vlan 830
    ip address 10.130.253.2/27
    ip ospf 1 area 0.0.0.0

router ospf 1
    router-id 1.1.1.2
    redistribute connected
    area 0.0.0.0

interface 1/1/2
    no shutdown
    no routing
    vlan trunk native 1
    vlan trunk allowed 830


MS-Main-Switch

vlan 6
vlan 831
interface vlan 6
    ip address 10.131.3.254/22
interface vlan 831
    ip address 10.131.253.2/27
    ip ospf 1 area 0.0.0.0

router ospf 1
    router-id 1.1.1.3
    redistribute connected
    area 0.0.0.0

At this point you should be able to see your ospf peers come up.

"show ip ospf neighbors"



"show ip route ospf"



Route-Map

//  If you would like to only advertise certain routes through OSPF then route-map will be the command to use. 

route-map Allow-Vlan permit seq 10
match interface vlan1
exit
route-map Allow-Vlan permit seq 20
match interface vlan2
exit


Router ospf 1
router ospf redistribute route-map Allow-Vlan


//  This will only allow vlan 1 and 2 to be advertised into OSPF for redistribution.... if you add more vlan's and want to advertise them you will need to add them to the route-map.



No comments:

Post a Comment