Wired Intelligent Edge (Campus Switching and Routing)

 View Only
last person joined: one year ago 

Bring performance and reliability to your network with the HPE Aruba Networking Core, Aggregation, and Access layer switches. Discuss the latest features and functionality of HPE Aruba Networking switching devices, and find ways to improve security across your network.

Aruba Switch OS - How to Configure OSPF Routing 

Oct 08, 2018 01:41 PM

Requirement:

How is basic OSPF routing configured on an Aruba OS switch?



Solution:

In the following example, OSPF routing is configured on switches Rack2sw1 and Rack2sw2.

  • IP addresses are configured on the VLAN 1 and Loopback 0 interfaces.
  • OSPF routing is enable for the backbone area.
  • Connected interfaces are redistributed into OSPF.



Configuration:

********** Configure Interfaces **********


Rack2sw1(config)# interface loopback 0 ip address 1.1.1.1
Rack2sw2(config)# interface loopback 0 ip address 2.2.2.2

Rack2sw1(config)# interface vlan 1 ip address 192.168.1.1/24
Rack2sw2(config)# interface vlan 1 ip address 192.168.1.2/24


********** Enable OSPF routing ***********


Rack2sw1(config)# ip routing
Rack2sw1(config)# router ospf enable
Rack2sw1(config)# router ospf area backbone
Rack2sw1(config)# vlan 1 ip ospf area 0
Rack2sw1(config)# router ospf redistribute connected

Rack2sw2(config)# ip routing
Rack2sw2(config)# router ospf enable
Rack2sw2(config)# router ospf area backbone
Rack2sw2(config)# vlan 1 ip ospf area 0
Rack2sw2(config)# router ospf redistribute connected



Verification

Rack2sw1# show ip ospf interface

 OSPF Interface Status

  IP Address      Status   Area ID         State    Auth-type Cost  Pri Passive
  --------------- -------- --------------- -------- --------- ----- --- -------
  192.168.1.1     enabled  backbone        BDR      none      1     1   no

 

Rack2sw1# show ip ospf neighbor

 OSPF Neighbor Information

  Router ID       Pri IP Address      NbIfState State    QLen  Events Status
  --------------- --- --------------- --------- -------- ----- ------ ------
  2.2.2.2         1   192.168.1.2     DR        FULL     0     7      None


Rack2sw1# show ip route ospf

                                IP Route Entries

  Destination        Gateway         VLAN Type      Sub-Type   Metric     Dist.
  ------------------ --------------- ---- --------- ---------- ---------- -----
  2.2.2.2/32         192.168.1.2     1    ospf      External2  10         110
 

Rack2sw2# show ip ospf interface

 OSPF Interface Status

  IP Address      Status   Area ID         State    Auth-type Cost  Pri Passive
  --------------- -------- --------------- -------- --------- ----- --- -------
  192.168.1.2     enabled  backbone        DR       none      1     1   no


Rack2sw2# show ip ospf neighbor

 OSPF Neighbor Information

  Router ID       Pri IP Address      NbIfState State    QLen  Events Status
  --------------- --- --------------- --------- -------- ----- ------ ------
  1.1.1.1         1   192.168.1.1     BDR       FULL     0     6      None


Rack2sw2# show ip route ospf

                                IP Route Entries

  Destination        Gateway         VLAN Type      Sub-Type   Metric     Dist.
  ------------------ --------------- ---- --------- ---------- ---------- -----
  1.1.1.1/32         192.168.1.1     1    ospf      External2  10         110

Statistics
0 Favorited
24 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.