fir3net
PPS-Firenetbanner-780.5x190-30-03-17

Netscreen - Enabling OSPF

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.

Tags: Netscreen

About the Author

RDonato

R Donato

Rick Donato is the Founder and Chief Editor of Fir3net.com. He currently works as a Principal Network Security Engineer and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001