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
VerificationRack2sw1# 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