The Open Shortest Path First (OSPF) routing protocol is an Interior Gateway rotocol (IGP) intended to operate within a single Autonomous System (AS). A router running OSPF distributes its state information (such as usable interfaces and neighbor reachability) by periodically flooding link-state advertisements (LSAs)
throughout the AS.
Enabling OSPF on a VR
set vrouter trust-vr router-id 10
set vrouter trust-vr protocol ospf
set vrouter trust-vr protocol ospf enable
Creating an OSPF Area
set vrouter trust-vr protocol ospf area 10
Assigning Interfaces to an OSPF Area
set interface ethernet1 protocol ospf area 10
set interface ethernet3 protocol ospf area 0
Configuring an Area Range
set vrouter trust-vr protocol ospf area 10 range 10.1.1.0/24 advertise
set vrouter trust-vr protocol ospf area 10 range 10.1.2.0/24 no-advertise
Enabling OSPF on an Interface
set interface ethernet1 protocol ospf enable
set interface ethernet3 protocol ospf enable
Route Redistibtuion (BGP routes into OSPF)
set vrouter trust-vr protocol ospf redistribute route-map add-bgp protocol bgp
Show Commands
get vrouter trust-vr protocol ospf config
get vrouter trust-vr protocol ospf
get vrouter trust-vr protocol ospf interface
Route Summerisation
enable route summerisaton for external routes and advertise only summary route
set vrouter trust-vr protocol ospf summary-import ip 10.50.1.0/20
enable route summerisation for area 10 and advertise only the summary route
set vrouter trust-vr protocol ospf area 10 range 10.50.1.0/20 advertise
Note : After running any of these commands issue the command `save` to ensure your changes are permanent post reboot.
- How to Configure a BIND Server on Ubuntu - March 15, 2018
- What is a BGP Confederation? - March 6, 2018
- Cisco – What is BGP ORF (Outbound Route Filtering)? - March 5, 2018
Want to become an IT Security expert?
Here is our hand-picked selection of the best courses you can find online:
Internet Security Deep Dive course
Complete Cyber Security Course – Hackers Exposed
CompTIA Security+ (SY0-601) Certification Complete course
and our recommended certification practice exams:
AlphaPrep Practice Tests - Free Trial