Showing posts with label ospf. Show all posts
Showing posts with label ospf. Show all posts

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.



Monday, June 20, 2016

Configure OSPF with Extreme EXOS - Area Zero


Here is the outline for how to get OSPF running on 3 Extreme routers and then connecting them to a Cisco router to simulate an outside connection.

Here is a video if you want to watch:  https://www.youtube.com/watch?v=YZkAzKoZlz4
Things to keep in mind
  • Your Router that will be connecting your the WAN/Internet needs to have "OSPF export"  to route the other interfaces in your ospf domain.  I am doing this with a static route in "Extreme 1"
    • If you have interfaces on a local router you will advertise them by exporting them as "direct" routes.
  • All routers need to be in the same area.  Area 0.0.0.0 is the default.
  • Every router needs to have a different RouterID.
  • Vlan 999 is my link out to the WAN.


Extreme 1 Config:

create vlan "VLAN_0900"
configure vlan VLAN_0900 tag 900
create vlan "VLAN_0902"
configure vlan VLAN_0902 tag 902
create vlan "VLAN_0999"

configure vlan VLAN_0999 tag 999
configure vlan VLAN_0900 add ports 46 tagged
configure vlan VLAN_0902 add ports 45 tagged
configure vlan VLAN_0999 add ports 48 tagged
configure vlan VLAN_0902 ipaddress 10.255.251.1 255.255.255.252
enable ipforwarding vlan VLAN_0900
configure vlan VLAN_0902 ipaddress 10.255.251.10 255.255.255.252
enable ipforwarding vlan VLAN_0902
configure vlan VLAN_0999 ipaddress 10.255.251.253 255.255.255.252

enable ipforwarding vlan VLAN_0999
configure iproute add default 10.255.251.254

configure ospf routerid 1.1.1.1
enable ospf
enable ospf export static cost 5 type ase-type-1
configure ospf add vlan VLAN_0900 area 0.0.0.0 link-type point-to-point
configure ospf add vlan VLAN_0902 area 0.0.0.0 link-type point-to-point




Extreme 2 Config:

create vlan "VLAN_0900"
configure vlan VLAN_0900 tag 900
create vlan "VLAN_0901"
configure vlan VLAN_0901 tag 901
configure vlan VLAN_0900 add ports 45 tagged
configure vlan VLAN_0901 add ports 46 tagged
configure vlan VLAN_0900 ipaddress 10.255.251.2 255.255.255.252
enable ipforwarding vlan VLAN_0900
configure vlan VLAN_0901 ipaddress 10.255.251.5 255.255.255.252
enable ipforwarding vlan VLAN_0901

configure ospf routerid 2.2.2.2
enable ospf
configure ospf add vlan VLAN_0900 area 0.0.0.0 link-type point-to-point
configure ospf add vlan VLAN_0901 area 0.0.0.0 link-type point-to-point



Extreme 3 Config:


create vlan "VLAN_0901"
configure vlan VLAN_0901 tag 901
create vlan "VLAN_0902"
configure vlan VLAN_0902 tag 902
configure vlan VLAN_0901 add ports 45 tagged
configure vlan VLAN_0902 add ports 46 tagged
configure vlan VLAN_0901 ipaddress 10.255.251.6 255.255.255.252
enable ipforwarding vlan VLAN_0901
configure vlan VLAN_0902 ipaddress 10.255.251.9 255.255.255.252
enable ipforwarding vlan VLAN_0902

configure ospf routerid 3.3.3.3
enable ospf
configure ospf add vlan VLAN_0901 area 0.0.0.0 link-type point-to-point
configure ospf add vlan VLAN_0902 area 0.0.0.0 link-type point-to-point