Vyatta
Suite200
1301ShorewayRoad
Belmont,CA94002
vyatta.com
6504137200
1888VYATTA1(USandCanada)
VYATTA,INC. | VyattaSystem
OSPF
REFERENCEGUIDE
OSPF
COPYRIGHT
Copyright©2005–2012Vyatta,Inc.Allrightsreserved.
Vyattareservestherighttomakechangestosoftware,hardware,anddocumentationwithoutnotice.Forthemostrecentversionof
documentation,visittheVyattawebsiteatvyatta.com.
PROPRIETARYNOTICES
VyattaisaregisteredtrademarkofVyatta,Inc.
Hyper‐VisaregisteredtrademarkofMicrosoftCorporation.
VMware,VMwareESX,andVMwareserveraretrademarksofVMware,Inc.
XenServer,andXenCenteraretrademarksofCitrixSystems,Inc.
Allothertrademarksarethepropertyoftheirrespectiveowners.
RELEASEDATE:October2012
DOCUMENTREVISION.6.5R1
v01
RELEASEDWITH:6.5R1
PARTNO.A0‐0217‐10‐0016
iii
OSPF 6.5R1v01 Vyatta
Contents
QuickListofCommands........................................................vi
ListofExamples ...............................................................ix
Preface. ...................................................................... x
IntendedAudience ...............................................................................xi
OrganizationofThisGuide .................
.................................... ................. .. .xi
DocumentConventions ..........................................
.................................xii
VyattaPublicati ons...............
............... ................... ..............................xii
Chapter1OSPFConfiguration ................................................... 1
OSPFOverview...................................................................................2
SupportedStandards................
.................................................. ............2
ConfiguringOSPF................................ .....
............................................2
BasicOSPFConfiguration ...
............... ................... ................. ................3
VerifyingtheOSPFConfiguration.......... .....................
................................. 5
R3:showiproute ..............
...........................................................5
R3:ping10.0.20.1.......................................
............... ................... 6
Chapter2Router‐LevelConfiguration............................................. 7
OSPFCommands...... ................... ........................................................8
monitorprotocolospfdisableevent .............
.................................... ...........11
monitorprotocolospf
disableism....................................... .......................12
monitorprotocolospfdisablelsa .................... ............
............... ................13
monitorprotocolospfdisablensm ..............
............... ................... .............14
monitorprotocolospf
disablenssa ................................ .............................15
monitorprotocolospfdisablepacketall ...................... ...........
........................16
monitorprotocolospfdisablepacketdd.....................
................................. ...17
monitorprotocolospfdisablepackethello.........
................................. .............18
monitorprotocolospfdisable
packetls‐ack......................................... .............19
monitorprotocolospfdisablepacketls‐request ....................................
..............20
monitorprotocolospfdisablepacketls‐update ..............................
.....................21
monitorprotocolospfdisablerib .... ................... ..
............... .......................22
monitorprotocolospfenableevent .......
................................ .. ................. ..23
monitorprotocolospfenableism ...........................................
...................24
monitorprotocolospfenablelsa ...........................
................................. ...25
monitorprotocolospfenablensm..........
................................. ...................26
iv
OSPF 6.5R1v01 Vyatta
monitorprotocolospfenablenssa. ..................... ........................................27
monitorprotocolospfenablepacketall.............................
............................28
monitorprotocolospfenablepacketdd .................
................................. .......29
monitorprotocolospfenablepackethello .. ...
..................................................30
monitorprotocolospfenablepacketls‐ack ......................... .. ................
...........31
monitorprotocolospfenablepacketls‐request.............. ...................
............... ...32
monitorprotocolospfenablepacketls‐update.........................
............... ...........33
monitorprotocolospfenablerib ....................
...........................................34
protocolsospf......
............... ................... .................... ................... 35
protocolsospfaccess‐list<list‐num> .................... ...
.....................................36
protocolsospfauto‐costreference‐bandwidth<bandwidth> .......
................................. 38
protocolsospfdefault‐informationoriginate............
................................. ........40
protocolsospfdefault‐metric<metric> .....
.....................................................42
protocolsospfdistance .................................... .........
............... ...........43
protocolsospflog‐adjacency‐changes ................. ...
............... ................... .....45
protocolsospfmax‐metricrouter‐lsa .....
............... .......................................46
protocolsospfmpls‐te........... .................................
............................48
protocolsospfneighbor<ipv4> ...... ............
................................. .............50
protocolsospfparameters.
................................. ..................................52
protocolsospfpassive‐interface..............................
............... ................... 55
protocolsospfpassive‐interface‐exclude<ethx>..........
........................................57
protocolsospfredistributebgp ......
............... ................... ................. .......59
protocolsospfredistributeconnected........................... .............
...................61
protocolsospfredistributekernel .................... .......
................................. ..63
protocolsospfredistributerip ...........
................................. .....................65
protocolsospfredistributestatic ...........................................
............... .....67
protocolsospfrefreshtimers<value> ...................... ....
............... ..................69
protocolsospftimersthrottlespf.............
............... ................... ................71
showipospf ................................................................................ 73
showipospfborder‐routers ...............
................................. ...................75
showipospfdatabase................................. ............
...........................76
showipospfinterface ....................
............... ................... ..................78
showipospfneighbor ................... ................... ........
..........................80
showipospfroute ................. .. ..
................................. .....................82
showiprouteospf .... .......................................
................................84
showmonitoringprotocolsospf...............
............... ................... ...............85
Chapter3OSPFAreas ......................................................... 86
OSPFAreaCommands............................................................................87
protocolsospfarea<area‐id>...................
.................................... ...........88
protocolsospfarea
<area‐id>area‐typenormal .................................. ................89
v
OSPF 6.5R1v01 Vyatta
protocolsospfarea<area‐id>area‐typenssa .. ................... ................................91
protocolsospfarea<area‐id>area‐typestub ..................................
...................93
protocolsospfarea<area‐id>authentication..........................
...........................95
protocolsospfarea<area‐id>network<ipv4net>............ ....
................................. 97
protocolsospfarea<area‐id>range<ip4net> ..........
..........................................99
protocolsospfarea<area‐id>shortcut<mode>..
................................. ...............101
protocolsospf
area<area‐id>virtual‐link<ipv4>authentication....................................103
protocolsospfarea<area‐id>virtual‐link
<ipv4>dead‐interval<interval>..................... .......105
protocolsospfarea<area‐id>virtual‐link<ipv4>hello‐interval<interval>.......
.....................107
protocolsospfarea<area‐id>virtual‐link<ipv4>retransmit‐interval<interval> ..................
.....10 9
protocolsospfarea<area‐id>virtual‐link<ipv4>transmit‐delay<delay>.............................111
Chapter4OSPFInterfaceCommands ........................................... 113
OSPFInterfaceCommands .......................................................................114
interfaces<interface>ipospf .........................
................................. .......115
interfaces<interface>ipospfauthentication ..... .
.................................... ..........119
interfaces<interface>ipospf
bandwidth<bandwidth> ...........................................124
interfaces<interface>ipospfcost
<cost> ................. ......................................128
interfaces<interface>ipospfdead‐interval<interval>.................. ................... .
......133
interfaces<interface>ipospfhello‐interval<interval>.....................................
.......138
interfaces<interface>ipospfmtu‐ignore ......................................
............... ..143
interfaces<interface>ipospfnetwork<type> ............................
.......................148
interfaces<interface>ipospfpriority<priority> .....................
............................153
interfaces<interface>ipospfretransmit‐interval<interval> ... ............
............... .........158
interfaces<interface>ipospftransmit‐delay<delay> ....................
............... ..........163
GlossaryofAcronyms......................................................... 168
vi
OSPF 6.5R1v01 Vyatta
QuickListofCommands
Use this list to help you quickly locate commands.
interfaces<interface>ipospfauthentication....................... .................................119
interfaces<interface>ipospfbandwidth<bandwidth> ...................................
............124
interfaces<interface>ipospfcost<cost>.................................
..........................128
interfaces<interface>ipospfdead‐interval<interval> ..................
..............................133
interfaces<interface>ipospfhello‐interval<interval> ..............
................................. .138
interfaces<interface>ipospfmtu‐ignore...........
................................. ...............143
interfaces<interface>
ipospfnetwork<type>.......................................................148
interfaces<interface>ipospfpriority<priority>............... .....................
............... ..153
interfaces<interface>ipospfretransmit‐interval<interval> ..........................
............... ..158
interfaces<interface>ipospftransmit‐delay<delay>....... ....................
............... .......163
interfaces<interface>ipospf........... ..............
................................ .. ..........115
monitorprotocolospfdisableevent ..
............... ...............................................11
monitorprotocolospfdisableism ...................................
...............................12
monitorprotocolospfdisablelsa ..............
................................. ...................13
monitorprotocolospfdisablensm.............. ................... ..........
............... .......14
monitorprotocolospfdisablenssa.......................
............... ................... ........15
monitorprotocolospfdisablepacketall...
............... ................... ................. .......16
monitorprotocolospfdisablepacketdd .....................................
.......................17
monitorprotocolospfdisablepackethello .. ...................
.....................................18
monitorprotocolospfdisablepacketls‐ack .......
................................. ..................19
monitorprotocolospfdisablepacketls‐request. .. .................................... ...
............20
monitorprotocolospfdisablepacketls‐update....................... .........
............... ........21
monitorprotocolospfdisablerib ......................
............... ................... ..........22
monitorprotocolospfenableevent .
............... ................... .............................23
monitorprotocolospfenableism..................... ............
................................. 24
monitorprotocolospfenablelsa .............
................................. .....................25
monitorprotocolospfenablensm .........................................
........................26
monitorprotocolospfenablenssa .....................
............... ................... ..........27
monitorprotocolospfenablepacketall .
............... ................... ..........................28
monitorprotocolospfenablepacketdd....................................
.........................29
monitorprotocolospfenablepackethello....................
.................................... ...30
monitorprotocolospfenablepacketls‐ack....
................................. .....................31
vii
OSPF 6.5R1v01 Vyatta
monitorprotocolospfenablepacketls‐request .... ....................................... ...........32
monitorprotocolospfenablepacketls‐update ............................... ...
.....................33
monitorprotocolospfenablerib................... ......
..........................................34
protocolsospfaccess‐list<list‐num>...
.............................................................36
protocolsospfarea<area‐id>area‐typenormal ................... ............
............... ........89
protocolsospfarea<area‐id>area‐typenssa....................
................................ .. ...91
protocolsospfarea<area‐id>area‐typestub......
...................................................93
protocolsospfarea<area‐id>authentication......... ................... .................
............95
protocolsospfarea<area‐id>network<ipv4net> ................................
.....................97
protocolsospfarea<area‐id>range<ip4net>......................
..................................99
protocolsospfarea<area‐id>shortcut<mode> .........
............................................101
protocolsospfarea<area‐id>virtual
‐link<ipv4>authentication ........................................103
protocolsospfarea<area‐id>virtual‐link<ipv4>
dead‐interval<interval> ................................105
protocolsospfarea<area‐id>virtual‐link<ipv4>hello‐interv al<interval> ......
..........................107
protocolsospfarea<area‐id>virtual‐link<ipv4>retransmit‐interval<interval>.............
..............109
protocolsospfarea<area‐id>virtual‐link<ipv4>transmit‐delay<delay>.......... ................
.......111
protocolsospfarea<area‐id> ......................................
...............................88
protocolsospfauto‐costreference‐bandwidth<bandwidth> ...... .. ....
...............................38
protocolsospfdefault‐informationoriginate .............. .
..........................................40
protocolsospfdefault‐metric<metric> ....
..........................................................42
protocolsospfdistance .... ....................................
...................................43
protocolsospflog‐adjacency‐changes...........
............... ................... ..................45
protocolsospfmax‐metricrouter‐lsa ...........................................
....................46
protocolsospfmpls‐te ..........................
................................. ................48
protocols
ospfneighbor<ipv4>............................................................... .....50
protocolsospfparameters ...........................
................................ .. ...........52
protocolsospfpassive‐interface .
............... ................... ................. ...............55
protocolsospfpassive‐interface‐exclude<ethx> ............... ...............
........................57
protocolsospfredistributebgp......................
................................. .............59
protocolsospfredistributeconnected
................................. .............................61
protocolsospfredistributekernel ........................ ...........
............... ................63
protocolsospfredistributerip...............
............... .......................................65
protocolsospfredistributestatic ................. ...........................
.......................67
protocolsospfrefreshtimers<value>.......................
................................. .......69
protocolsospftimersthrottlespf .....
.............................................................71
protocolsospf .....................................
................................ .. ...........35
viii
OSPF 6.5R1v01 Vyatta
showipospfborder‐routers............... ................... .....................................75
showipospfdatabase ......................
.....................................................76
showipospfinterface............................................
................................78
showipospfneighbor...............
................................ .. ................. ..........80
showipospfroute.......................... ...........
..........................................82
showipospf ......
................................. .............................................73
showiprouteospf...................
............... ................... ..........................84
showmonitoringprotocolsospf ...................... ...............
..............................85
ix
OSPF 6.5R1v01 Vyatta
ListofExamples
Use this list to help you locate examples you’d like to look at or try.
Example2‐1“showipospf”:DisplayingOSPFconfigurationinformation............ ................... ...73
Example2‐2“showipospfborder‐router”:Displaying
OSPFborderrouterinformation.....................75
Example2‐3“showipospfdatabase”:DisplayinggeneralOSPFdatabaseinformation...............
.......77
Example2‐4“showipospfinterface”:DisplayingOSPFconfigurationandstatusinformation................78
Example2‐5“showipospfneighbor”:DisplayingOSPFneighborinformation.......
......................80
Example2‐6“showipospfroute”:DisplayingOSPFrouteinformation...................
................82
Example2‐7“showiprouteospf”:Displayingroutes ...........................
.......................84
x
OSPF 6.5R1v01 Vyatta
Preface
This document describes the various deployment, installation, and upgrade options
for Vyatta software.
This preface provides information about using this guide. The following topics are
presented:
• Intended Audience
• Organization of This Guide
• Document Conventions
• Vyatta Publications
IntendedAudience
xi
OSPF 6.5R1v01 Vyatta
IntendedAudience
This guide is intended for experienced system and network administrators.
Depending on the functionality to be used, readers should have specific knowledge
in the following areas:
• Networking and data communications
• TCP/IP protocols
• General router configuration
• Routing protocols
• Network administration
• Network security
• IP services
OrganizationofThisGuide
This guide has the following aid to help you find the information you are looking for:
• Quick List of Commands
Use this list to help you quickly locate commands.
• List of Examples
Use this list to help you locate examples you’d like to try or look at.
This guide has the following chapters:
Chapter Description Page
Chapter 1:OSPFConfiguration Thischapterdescribeshowtoconfigurethe
OpenShortestPathFirstprotocolonthe
VyattaSystem.
1
Chapter 2:Router‐LevelConfiguration Thischapterdescribescommandsfor
router‐levelOSPFconfiguration.
7
Chapter 3:OSPFAreas Thischapterdescribescommandsfor
configuringOSPFareas.
86
Chapter 4:OSPFInterfaceCommands Thischapterdescribescommandsfor
configuringOSPFon
variousinterfaces.
113
GlossaryofAcronyms 168
DocumentConventions
xii
OSPF 6.5R1v01 Vyatta
DocumentConventions
This guide uses the following advisory paragraphs, as follows.
NOTENotesprovideinformationyoumightneedtoavoidproblemsorconfigurationerrors.
This document uses the following typographic conventions.
VyattaPublications
WARNINGWarningsalertyoutosituationsthatmayposeathreattopersonalsafety.
CAUTIONCautionsalertyoutosituationsthatmightcauseharmtoyoursystemordamageto
equipment,orthatmayaffectservice.
Monospace
Examples, command-line output, and representations of
configuration nodes.
boldMonospace
Your input: something you type at a command line.
bold Commands, keywords, and file names, when mentioned
inline.
Objects in the user interface, such as tabs, buttons, screens,
and panes.
italics An argument or variable where you supply a value.
<key> A key on your keyboard, such as <Enter>. Combinations of
keys are joined by plus signs (“+”), as in <Ctrl>+c.
[ key1 | key2] Enumerated options for completing a syntax. An example is
[enable | disable].
num1–numN A inclusive range of numbers. An example is 1–65535, which
means 1 through 65535, inclusive.
arg1 argN A range of enumerated values. An example is eth0 eth3,
which means eth0, eth1, eth2, or eth3.
arg[ arg ]
arg[,arg ]
A value that can optionally represent a list of elements (a
space-separated list and a comma-separated list, respectively).
VyattaPublications
xiii
OSPF 6.5R1v01 Vyatta
Full product documentation is provided in the Vyatta technical library. To see what
documentation is available for your release, see the Guide to Vyatta Documentation.
This guide is posted with every release of Vyatta software and provides a great
starting point for finding the information you need.
Additional information is available on www.vyatta.com and www.vyatta.org.
1
OSPF 6.5R1v01 Vyatta
Chapter1:OSPFConfiguration
This chapter describes how to configure the Open Shortest Path First protocol on the
Vyatta System.
The following topics are covered:
• OSPF Overview
• Supported Standards
• Configuring OSPF
Chapter1:OSPFConfiguration OSPFOverview
2
OSPF 6.5R1v01 Vyatta
OSPFOverview
Open Shortest Path First (OSPF) is a dynamic routing protocol that uses a link state
algorithm (Dijkstra), as opposed to protocols (such as RIP) that use a distance vector
algorithm. It is an interior gateway protocol (IGP) and operates in a single
autonomous system (AS). In OSPF, each router advertises the state of its own links,
or connections, in a link state advertisement (LSA), which it then multicasts to other
routers on the network. In addition, each router uses the LSAs it receives from other
routers to construct a graph that represents the network topology. To build its
routing table, the router applies Dijkstra’s Shortest Path First algorithm to find the
best path through the graph to each network in the topology. This “shortest path
tree” becomes the basis of the routing table. OSPF is hierarchical. In OSPF, the
network is broken up into “areas.” Within each area, routers possess only local
routing information. Routing information about other areas is calculated using
summarized routes exchanged between areas. This reduces the amount of network
topology information routers have to generate and maintain, making OSPF a good
choice for larger networks.
SupportedStandards
The Vyatta implementation of OSPFcomplies with the following standard:
• RFC 2328: OSPF Version 2
ConfiguringOSPF
This section presents the following topics:
• Basic OSPF Configuration
• Verifying the OSPF Configuration
This section presents a sample configuration for OSPF. The configuration example is
based on the reference diagram in Figure 1-1.
Chapter1:OSPFConfiguration ConfiguringOSPF
3
OSPF 6.5R1v01 Vyatta
Figure1‐1OSPFconfigurationreferencediagram
BasicOSPFConfiguration
In this section, you configure OSPF on the routers labeled R1, R2, and R3 in the
reference network diagram. The routers are advertising their routes on networks
10.0.40.0/24 and 10.0.50.0/24.
This example assumes that you have already configured the router interfaces
(including the loopback interfaces - lo); only the steps required to implement OSPF
are shown.
To create a basic OSPF configuration, perform the following steps in configuration
mode:.
R1
eth2
.1
10.0.20 .0/24
R2
R3
10.0.30 .0/24 10.0.40.0/24 10.0.50.0/24 10.0.60.0/24
eth3
.1
eth4
.1
eth4
.2
eth5
.2
eth5
.3
eth6
.3
lo
10.0.0.1/32
lo
10.0.0.2/32
lo
10.0.0.3/32
Example1‐1BasicOSPFconfiguration
Route
r Step Command(s)
R1 SettheOSPFrouteridto
thatoftheloopback
address.
vyatta@R1#setprotocolsospfparametersrouter‐id
10.0.0.1
R1 Advertisetonetwork
10.0.40.0/24.
vyatta@R1#setprotocolsospfarea0.0.0.0network
10.0.40.0/24
R1 Redistributeconnected
routestoOSPF
vyatta@R1#setprotocolsospfredistributeconnected
R1 Committheconfiguration.
vyatta@R1#commit
Chapter1:OSPFConfiguration ConfiguringOSPF
4
OSPF 6.5R1v01 Vyatta
R1 Displaytheconfiguration.
vyatta@R1#showprotocols
ospf{
area0.0.0.0{
network10.0.40.0/24
}
parameters{
router‐id10.0.0.1
}
redistribute{
connected{
}
}
}
R2 SettheOSPFrouteridto
thatoftheloopback
address.
vyatta@R2#setprotocolsospfparametersrouter‐id
10.0.0.2
R2 Advertisetonetwork
10.0.40.0/24.
vyatta@R2#setprotocolsospfarea0.0.0.0network
10.0.40.0/24
R2 Advertisetonetwork
10.0.50.0/24.
vyatta@R2#setprotocolsospfarea0.0.0.0network
10.0.50.0/24
R2 Redistributeconnected
routestoOSPF
vyatta@R2#setprotocolsospfredistributeconnected
R2 Committheconfiguration.
vyatta@R2#commit
R2 Displaytheconfiguration.
vyatta@R2#showprotocols
ospf{
area0.0.0.0{
network10.0.40.0/24
network10.0.50.0/24
}
parameters{
router‐id10.0.0.2
}
redistribute{
connected{
}
}
}
Example1‐1BasicOSPFconfiguration
Chapter1:OSPFConfiguration ConfiguringOSPF
5
OSPF 6.5R1v01 Vyatta
VerifyingtheOSPFConfiguration
The following operational mode commands can be used to verify the OSPF
configuration.
R3:showiproute
Example 1-2 shows the output of the show ip route command for router R3.
Example1‐2VerifyingOSPFonR3:”showiproute”
vyatta@R3:~$showiproute
Codes:K‐kernelroute,C‐connected,S‐static,R‐RIP,O‐OSPF,
I‐ISIS,B‐BGP,>‐selectedroute,*‐FIBroute
O>*10.0.0.1/32[110/20]via10.0.50.2,eth5,00:04:21
O>*10.0.0.2/32[110/20]via10.0.50.2,eth5,00:03:31
C>*10.0.0.3/32isdirectlyconnected,lo
R3 SettheOSPFrouteridto
thatoftheloopback
address.
vyatta@R3#setprotocolsospfparametersrouter‐id
10.0.0.3
R3 Advertisetonetwork
10.0.50.0/24.
vyatta@R3#setprotocolsospfarea0.0.0.0network
10.0.50.0/24
R3 Redistributeconnected
routestoOSPF
vyatta@R3#setprotocolsospfredistributeconnected
R3 Committheconfiguration.
vyatta@R3#commit
R3 Displaytheconfiguration.
vyatta@R3#showprotocols
ospf{
area0.0.0.0{
network10.0.50.0/24
}
parameters{
router‐id10.0.0.3
}
redistribute{
connected{
}
}
}
Example1‐1BasicOSPFconfiguration
Chapter1:OSPFConfiguration ConfiguringOSPF
6
OSPF 6.5R1v01 Vyatta
O>*10.0.20.0/24[110/20]via10.0.50.2,eth5,03:06:06
O>*10.0.30.0/24[110/20]via10.0.50.2,eth5,03:07:39
O>*10.0.40.0/24[110/20]via10.0.50.2,eth5,03:07:40
O10.0.50.0/24[110/10]isdirectlyconnected,eth5,03:07:45
C>*10.0.50.0/24isdirectlyconnected,eth5
C>*10.0.60.0/24isdirectlyconnected,eth6
C>*127.0.0.0/8isdirectlyconnected,lo
vyatta@R3:~$
The output shows that routes to 10.0.0.1/32, 10.0.0.2/32, 10.0.20.0/24,
10.0.30.0/24, and 10.0.40.0/24 have been learned via OSPF (and are the selected
routes). Also, packets to those networks will be forwarded out eth5 to 10.0.50.2.
10.0.0.3/32, 10.0.50.0/24 and 10.0.60.0/24 are directly connected to R3. Directly
connected routes are selected over any that are discovered by OSPF (i.e.
10.0.50.0/24).
R3:ping10.0.20.1
Using the ping command from R3 we can confirm that we can reach hosts on remote
networks. In this case we ping an IP address on R1. This is shown in Example 1-3.
Example1‐3VerifyingOSPFonR3:“ping10.0.20.1”
vyatta@R3:~$ping10.0.20.1
PING10.0.20.1(10.0.20.1)56(84)bytesofdata.
64bytesfrom10.0.20.1:icmp_seq=1ttl=63time=5.75ms
64bytesfrom10.0.20.1:icmp_seq=2ttl=63time=1.74ms
64bytesfrom10.0.20.1:icmp_seq=3ttl=63time=1.40ms
^C
‐‐‐10.0.20.1pingstatistics‐‐‐
3packetstransmitted,3received,0%packetloss,time2002ms
rttmin/avg/max/mdev=1.405/2.966/5.751/1.974ms
vyatta@R3:~$
This confirms that the OSPF configuration is working and that we are able to reach
a remote network.
7
OSPF 6.5R1v01 Vyatta
Chapter2:Router‐LevelConfiguration
This chapter describes commands for router-level OSPF configuration.
This chapter presents the following topics:
• OSPF Commands
Chapter2:Router‐LevelConfiguration OSPFCommands
8
OSPF 6.5R1v01 Vyatta
OSPFCommands
This chapter contains the following commands.
ConfigurationCommands
protocolsospf EnablestheOpenShortestPathFirst(OSPF)routing
protocolontherouter.
protocolsospfaccess‐list<list‐num> Specifiesaccesslisttofilternetworksinrouting
updates.
protocolsospfauto‐costreference‐bandwidth
<bandwidth>
Directsthesystemtousethereferencebandwidth
methodforcalculatingadministrativecost.
protocolsospfdefault‐informationoriginate Setsthe
characteristicsofanexternaldefaultroute
originatedintoanOSPFroutingdomain.
protocolsospfdefault‐metric<metric> Setsdefaultmetrictobeappliedtoroutesbeing
redistributedintoOSPF.
protocolsospfdistance SetstheOSPFadministrativedistancebyroutetype.
protocolsospflog‐adjacency‐changes Enablesordisablesloggingofchangesinadjacency
stateof
neighbors.
protocolsospfmax‐metricrouter‐lsa EnablesordisablesanOSPFstubroutertoadvertisea
maximummetricvaluewhentherouterisstartedup
orreloaded.
protocolsospfmpls‐te SetsMulti‐ProtocolLabelSwitching(MPLS)Tra ffic
Engineering(MPLS‐TE)parameters.
protocolsospfneighbor<ipv4> DefinesanOSPFneighbor.
protocolsospfparameters Setsglobal
OSPFparameters,suchasrouterID.
protocolsospfpassive‐interface Suppressesroutingupdatesonaninterface.
protocolsospfpassive‐interface‐exclude<ethx> ExcludesOSPFroutingupdatesuppressiononan
interface.
protocolsospfrefreshtimers<value> SetsvaluesforOSPFrefreshtimers.
protocolsospftimersthrottlespf EnablesordisablesOSPFSPFthrottling.
OSPFRouteRedistributionCommands
protocolsospfredistributebgp SetstheparametersforredistributionofBGProutes
intoOSPF.
Chapter2:Router‐LevelConfiguration OSPFCommands
9
OSPF 6.5R1v01 Vyatta
protocolsospfredistributeconnected Setstheparametersforredistributionofconnected
routesintoOSPF.
protocolsospfredistributekernel Setstheparametersforredistributionofkernelroutes
intoOSPF.
protocolsospfredistributerip SetstheparametersforredistributionofRIProutes
intoOSPF.
protocolsospfredistributestatic Setstheparametersforredistributionofstaticroutes
intoOSPF.
OperationalCommands
monitorprotocolospfdisableevent DisablesdebugmessagegenerationrelatedtoOSPF
events.
monitorprotocolospfdisableism Disablesdebugmessagegenerationrelatedtothe
OSPFISM.
monitorprotocolospfdisablelsa DiablesdebugmessagegenerationrelatedtoOSPF
link‐stateadvertisements(LSAs).
monitorprotocolospfdisablensm Disablesdebugmessagegenerationrelatedtothe
OSPF
NSM.
monitorprotocolospfdisablenssa DisablesdebugmessagegenerationrelatedtoOSPF
not‐so‐stubbyareas(NSSAs).
monitorprotocolospfdisablepack etall DisablesdebugmessagegenerationrelatedtoallOSPF
packets.
monitorprotocolospfdisablepack etdd DisablesdebugmessagegenerationrelatedtoOSPF
DatabaseDescription(DD)packets.
monitorprotocolospfdisablepack ethello Disables
debugmessagegenerationrelatedtoOSPF
hellopackets.
monitorprotocolospfdisablepack etls‐ack DisablesdebugmessagegenerationrelatedtoOSPF
link‐stateacknowledgement(LSAck)packets.
monitorprotocolospfdisablepack etls‐request DisablesdebugmessagegenerationrelatedtoOSPF
link‐staterequest(LSR)packets.
monitorprotocolospfdisablepack etls‐update Disables
debugmessagegenerationrelatedtoOSPF
link‐stateupdate(LSU)packets.
monitorprotocolospfdisablerib DisablesdebugmessagegenerationfortheOSPF
RoutingInformationBase(RIB).
monitorprotocolospfenableevent EnablesdebugmessagegenerationrelatedtoOSPF
events.
Chapter2:Router‐LevelConfiguration OSPFCommands
10
OSPF 6.5R1v01 Vyatta
monitorprotocolospfenableism EnablesdebugmessagegenerationrelatedtotheOSPF
ISM.
monitorprotocolospfenablelsa EnablesdebugmessagegenerationrelatedtoOSPF
link‐stateadvertisements(LSAs).
monitorprotocolospfenablensm EnablesdebugmessagegenerationrelatedtotheOSPF
NSM.
monitorprotocolospfenablenssa EnablesdebugmessagegenerationrelatedtoOSPF
not‐so‐stubbyareas(NSSAs).
monitorprotocolospfenablepacketall EnablesdebugmessagegenerationrelatedtoallOSPF
packets.
monitorprotocolospfenablepacketdd EnablesdebugmessagegenerationrelatedtoOSPF
DatabaseDescription(DD)packets.
monitorprotocolospfenablepackethello EnablesdebugmessagegenerationrelatedtoOSPF
hellopackets.
monitorprotocolospfenable
packetls‐ack EnablesdebugmessagegenerationrelatedtoOSPF
link‐stateacknowledgement(LSAck)packets.
monitorprotocolospfenablepacketls‐request EnablesdebugmessagegenerationrelatedtoOSPF
link‐staterequest(LSR)packets.
monitorprotocolospfenablepacketls‐update EnablesdebugmessagegenerationrelatedtoOSPF
link‐stateupdate(LSU)packets.
monitor
protocolospfenablerib EnablesdebugmessagegenerationfortheOSPF
RoutingInformationBase(RIB).
showipospf Displayshigh‐levelOSPFconfigurationinformation.
showipospfborder‐routers DisplaysOSPFborderrouterinformation.
showipospfdatabase DisplaysOSPFdatabaseinformation.
showipospfinterface DisplaysOSPFconfigurationandstatusinformationfor
aspecifiedinterface.
showip
ospfneighbor DisplaysOSPFneighborinformationforaspecified
addressorinterface.
showipospfroute DisplaysOSPFrouteinformation.
showmonitoringprotocolsospf DisplaysOSPFprotocoldebuggingflags.
Chapter2:Router‐LevelConfiguration OSPFCommands
11
OSPF 6.5R1v01 Vyatta
monitorprotocolospfdisableevent
Disables debug message generation related to OSPF events.
Syntax
monitor protocol ospf disable event
CommandMode
Operational mode.
Parameters
None.
Default
None.
UsageGuidelines
Use this command to disable generation of trace-level messages related to OSPF
events.
Chapter2:Router‐LevelConfiguration OSPFCommands
12
OSPF 6.5R1v01 Vyatta
monitorprotocolospfdisableism
Disables debug message generation related to the OSPF ISM.
Syntax
monitor protocol ospf disable ism [events | status | timers]
CommandMode
Operational mode.
Parameters
Default
When used with no option, this command disables all OSPF ISM messages.
UsageGuidelines
Use this command to disable generation of trace-level messages related to OSPF
OSPF ISM.
events Optional. Disables debug message generation related to OSPF ISM
events.
status Optional. Disables debug message generation related to OSPF ISM
status.
timers Optional. Diables debug message generation related to OSPF ISM
timers.