Tải bản đầy đủ (.pdf) (185 trang)

Tài liệu học về Vyatta OSPF 6 5r1 v01

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (757.74 KB, 185 trang )

Vyatta
Suite200
1301ShorewayRoad
Belmont,CA94002
vyatta.com
6504137200
1888VYATTA1(USandCanada)
VYATTA,INC. |  VyattaSystem
OSPF
REFERENCEGUIDE
OSPF
COPYRIGHT
Copyright©2005–2012Vyatta,Inc.Allrightsreserved.
Vyattareservestherighttomakechangestosoftware,hardware,anddocumentationwithoutnotice.Forthemostrecentversionof
documentation,visittheVyattawebsiteatvyatta.com.
PROPRIETARYNOTICES
VyattaisaregisteredtrademarkofVyatta,Inc.
Hyper‐VisaregisteredtrademarkofMicrosoftCorporation.
VMware,VMwareESX,andVMwareserveraretrademarksofVMware,Inc.
XenServer,andXenCenteraretrademarksofCitrixSystems,Inc.
Allothertrademarksarethepropertyoftheirrespectiveowners.
RELEASEDATE:October2012
DOCUMENTREVISION.6.5R1
v01
RELEASEDWITH:6.5R1
PARTNO.A0‐0217‐10‐0016
iii
OSPF 6.5R1v01 Vyatta
Contents
QuickListofCommands........................................................vi
ListofExamples ...............................................................ix


Preface. ...................................................................... x
IntendedAudience ...............................................................................xi
OrganizationofThisGuide .................
.................................... ................. .. .xi
DocumentConventions ..........................................
.................................xii
VyattaPublicati ons...............
............... ................... ..............................xii
Chapter1OSPFConfiguration ................................................... 1
OSPFOverview...................................................................................2
SupportedStandards................
.................................................. ............2
ConfiguringOSPF................................ .....
............................................2
BasicOSPFConfiguration ...
............... ................... ................. ................3
VerifyingtheOSPFConfiguration.......... .....................
................................. 5
R3:showiproute ..............
...........................................................5
R3:ping10.0.20.1.......................................
............... ................... 6
Chapter2Router‐LevelConfiguration............................................. 7
OSPFCommands...... ................... ........................................................8
monitorprotocolospfdisableevent .............
.................................... ...........11
monitorprotocolospf
disableism....................................... .......................12
monitorprotocolospfdisablelsa .................... ............
............... ................13

monitorprotocolospfdisablensm ..............
............... ................... .............14
monitorprotocolospf
disablenssa ................................ .............................15
monitorprotocolospfdisablepacketall ...................... ...........
........................16
monitorprotocolospfdisablepacketdd.....................
................................. ...17
monitorprotocolospfdisablepackethello.........
................................. .............18
monitorprotocolospfdisable
packetls‐ack......................................... .............19
monitorprotocolospfdisablepacketls‐request ....................................
..............20
monitorprotocolospfdisablepacketls‐update ..............................
.....................21
monitorprotocolospfdisablerib .... ................... ..
............... .......................22
monitorprotocolospfenableevent .......
................................ .. ................. ..23
monitorprotocolospfenableism ...........................................
...................24
monitorprotocolospfenablelsa ...........................
................................. ...25
monitorprotocolospfenablensm..........
................................. ...................26

iv
OSPF 6.5R1v01 Vyatta
monitorprotocolospfenablenssa. ..................... ........................................27

monitorprotocolospfenablepacketall.............................
............................28
monitorprotocolospfenablepacketdd .................
................................. .......29
monitorprotocolospfenablepackethello .. ...
..................................................30
monitorprotocolospfenablepacketls‐ack ......................... .. ................
...........31
monitorprotocolospfenablepacketls‐request.............. ................... 
............... ...32
monitorprotocolospfenablepacketls‐update.........................
............... ...........33
monitorprotocolospfenablerib ....................
...........................................34
protocolsospf......
............... ................... .................... ................... 35
protocolsospfaccess‐list<list‐num> .................... ...
.....................................36
protocolsospfauto‐costreference‐bandwidth<bandwidth> .......
................................. 38
protocolsospfdefault‐informationoriginate............
................................. ........40
protocolsospfdefault‐metric<metric> .....
.....................................................42
protocolsospfdistance .................................... .........
............... ...........43
protocolsospflog‐adjacency‐changes ................. ...
............... ................... .....45
protocolsospfmax‐metricrouter‐lsa .....
............... .......................................46

protocolsospfmpls‐te........... .................................
............................48
protocolsospfneighbor<ipv4> ...... ............
................................. .............50
protocolsospfparameters.
................................. ..................................52
protocolsospfpassive‐interface..............................
............... ................... 55
protocolsospfpassive‐interface‐exclude<ethx>..........
........................................57
protocolsospfredistributebgp ......
............... ................... ................. .......59
protocolsospfredistributeconnected........................... .............
...................61
protocolsospfredistributekernel .................... .......
................................. ..63
protocolsospfredistributerip ...........
................................. .....................65
protocolsospfredistributestatic ...........................................
............... .....67
protocolsospfrefreshtimers<value> ...................... ....
............... ..................69
protocolsospftimersthrottlespf.............
............... ................... ................71
showipospf ................................................................................ 73
showipospfborder‐routers ...............
................................. ...................75
showipospfdatabase................................. ............
...........................76
showipospfinterface ....................

............... ................... ..................78
showipospfneighbor ................... ................... ........
..........................80
showipospfroute ................. .. ..
................................. .....................82
showiprouteospf .... ....................................... 
................................84
showmonitoringprotocolsospf...............
............... ................... ...............85
Chapter3OSPFAreas ......................................................... 86
OSPFAreaCommands............................................................................87
protocolsospfarea<area‐id>...................
.................................... ...........88
protocolsospfarea
<area‐id>area‐typenormal .................................. ................89

v
OSPF 6.5R1v01 Vyatta
protocolsospfarea<area‐id>area‐typenssa .. ................... ................................91
protocolsospfarea<area‐id>area‐typestub ..................................
...................93
protocolsospfarea<area‐id>authentication..........................
...........................95
protocolsospfarea<area‐id>network<ipv4net>............ ....
................................. 97
protocolsospfarea<area‐id>range<ip4net> ..........
..........................................99
protocolsospfarea<area‐id>shortcut<mode>..
................................. ...............101
protocolsospf

area<area‐id>virtual‐link<ipv4>authentication....................................103
protocolsospfarea<area‐id>virtual‐link
<ipv4>dead‐interval<interval>..................... .......105
protocolsospfarea<area‐id>virtual‐link<ipv4>hello‐interval<interval>.......
.....................107
protocolsospfarea<area‐id>virtual‐link<ipv4>retransmit‐interval<interval> ..................
.....10 9
protocolsospfarea<area‐id>virtual‐link<ipv4>transmit‐delay<delay>.............................111
Chapter4OSPFInterfaceCommands ........................................... 113
OSPFInterfaceCommands .......................................................................114
interfaces<interface>ipospf .........................
................................. .......115
interfaces<interface>ipospfauthentication ..... .
.................................... ..........119
interfaces<interface>ipospf
bandwidth<bandwidth> ...........................................124
interfaces<interface>ipospfcost
<cost> ................. ......................................128
interfaces<interface>ipospfdead‐interval<interval>.................. ................... .
......133
interfaces<interface>ipospfhello‐interval<interval>.....................................
.......138
interfaces<interface>ipospfmtu‐ignore ......................................
............... ..143
interfaces<interface>ipospfnetwork<type> ............................ 
.......................148
interfaces<interface>ipospfpriority<priority> .....................
............................153
interfaces<interface>ipospfretransmit‐interval<interval> ... ............
............... .........158

interfaces<interface>ipospftransmit‐delay<delay> ....................
............... ..........163
GlossaryofAcronyms......................................................... 168
vi
OSPF 6.5R1v01 Vyatta
QuickListofCommands
Use this list to help you quickly locate commands.
interfaces<interface>ipospfauthentication....................... .................................119
interfaces<interface>ipospfbandwidth<bandwidth> ...................................
............124
interfaces<interface>ipospfcost<cost>.................................
..........................128
interfaces<interface>ipospfdead‐interval<interval> ..................
..............................133
interfaces<interface>ipospfhello‐interval<interval> ..............
................................. .138
interfaces<interface>ipospfmtu‐ignore...........
................................. ...............143
interfaces<interface>
ipospfnetwork<type>.......................................................148
interfaces<interface>ipospfpriority<priority>............... .....................
............... ..153
interfaces<interface>ipospfretransmit‐interval<interval> ..........................
............... ..158
interfaces<interface>ipospftransmit‐delay<delay>....... ....................
............... .......163
interfaces<interface>ipospf........... ..............
................................ .. ..........115
monitorprotocolospfdisableevent ..
............... ...............................................11

monitorprotocolospfdisableism ...................................
...............................12
monitorprotocolospfdisablelsa ..............
................................. ...................13
monitorprotocolospfdisablensm.............. ................... ..........
............... .......14
monitorprotocolospfdisablenssa.......................
............... ................... ........15
monitorprotocolospfdisablepacketall...
............... ................... ................. .......16
monitorprotocolospfdisablepacketdd .....................................
.......................17
monitorprotocolospfdisablepackethello .. ...................
.....................................18
monitorprotocolospfdisablepacketls‐ack .......
................................. ..................19
monitorprotocolospfdisablepacketls‐request. .. .................................... ...
............20
monitorprotocolospfdisablepacketls‐update....................... .........
............... ........21
monitorprotocolospfdisablerib ......................
............... ................... ..........22
monitorprotocolospfenableevent .
............... ................... .............................23
monitorprotocolospfenableism..................... ............
................................. 24
monitorprotocolospfenablelsa .............
................................. .....................25
monitorprotocolospfenablensm .........................................
........................26

monitorprotocolospfenablenssa .....................
............... ................... ..........27
monitorprotocolospfenablepacketall .
............... ................... ..........................28
monitorprotocolospfenablepacketdd....................................
.........................29
monitorprotocolospfenablepackethello....................
.................................... ...30
monitorprotocolospfenablepacketls‐ack....
................................. .....................31

vii
OSPF 6.5R1v01 Vyatta
monitorprotocolospfenablepacketls‐request .... ....................................... ...........32
monitorprotocolospfenablepacketls‐update ............................... ...
.....................33
monitorprotocolospfenablerib................... ......
..........................................34
protocolsospfaccess‐list<list‐num>...
.............................................................36
protocolsospfarea<area‐id>area‐typenormal ................... ............
............... ........89
protocolsospfarea<area‐id>area‐typenssa....................
................................ .. ...91
protocolsospfarea<area‐id>area‐typestub......
...................................................93
protocolsospfarea<area‐id>authentication......... ................... .................
............95
protocolsospfarea<area‐id>network<ipv4net> ................................
.....................97

protocolsospfarea<area‐id>range<ip4net>......................
..................................99
protocolsospfarea<area‐id>shortcut<mode> .........
............................................101
protocolsospfarea<area‐id>virtual
‐link<ipv4>authentication ........................................103
protocolsospfarea<area‐id>virtual‐link<ipv4>
dead‐interval<interval> ................................105
protocolsospfarea<area‐id>virtual‐link<ipv4>hello‐interv al<interval> ......
..........................107
protocolsospfarea<area‐id>virtual‐link<ipv4>retransmit‐interval<interval>.............
..............109
protocolsospfarea<area‐id>virtual‐link<ipv4>transmit‐delay<delay>.......... ................
.......111
protocolsospfarea<area‐id> ......................................
...............................88
protocolsospfauto‐costreference‐bandwidth<bandwidth> ...... .. ....
...............................38
protocolsospfdefault‐informationoriginate .............. .
..........................................40
protocolsospfdefault‐metric<metric> ....
..........................................................42
protocolsospfdistance .... ....................................
...................................43
protocolsospflog‐adjacency‐changes...........
............... ................... ..................45
protocolsospfmax‐metricrouter‐lsa ...........................................
....................46
protocolsospfmpls‐te ..........................
................................. ................48

protocols
ospfneighbor<ipv4>............................................................... .....50
protocolsospfparameters ...........................
................................ .. ...........52
protocolsospfpassive‐interface .
............... ................... ................. ...............55
protocolsospfpassive‐interface‐exclude<ethx> ............... ...............
........................57
protocolsospfredistributebgp......................
................................. .............59
protocolsospfredistributeconnected
................................. .............................61
protocolsospfredistributekernel ........................ ...........
............... ................63
protocolsospfredistributerip...............
............... .......................................65
protocolsospfredistributestatic ................. ...........................
.......................67
protocolsospfrefreshtimers<value>.......................
................................. .......69
protocolsospftimersthrottlespf .....
.............................................................71
protocolsospf .....................................
................................ .. ...........35

viii
OSPF 6.5R1v01 Vyatta
showipospfborder‐routers............... ................... .....................................75
showipospfdatabase ......................
.....................................................76

showipospfinterface............................................
................................78
showipospfneighbor...............
................................ .. ................. ..........80
showipospfroute.......................... ...........
..........................................82
showipospf ......
................................. .............................................73
showiprouteospf...................
............... ................... ..........................84
showmonitoringprotocolsospf ...................... ...............
..............................85
ix
OSPF 6.5R1v01 Vyatta
ListofExamples
Use this list to help you locate examples you’d like to look at or try.
Example2‐1“showipospf”:DisplayingOSPFconfigurationinformation............ ................... ...73
Example2‐2“showipospfborder‐router”:Displaying
OSPFborderrouterinformation.....................75
Example2‐3“showipospfdatabase”:DisplayinggeneralOSPFdatabaseinformation...............
.......77
Example2‐4“showipospfinterface”:DisplayingOSPFconfigurationandstatusinformation................78
Example2‐5“showipospfneighbor”:DisplayingOSPFneighborinformation.......
......................80
Example2‐6“showipospfroute”:DisplayingOSPFrouteinformation...................
................82
Example2‐7“showiprouteospf”:Displayingroutes ...........................
.......................84
x
OSPF 6.5R1v01 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
 IntendedAudience
xi
OSPF 6.5R1v01 Vyatta
IntendedAudience
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
OrganizationofThisGuide
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:OSPFConfiguration Thischapterdescribeshowtoconfigurethe
OpenShortestPathFirstprotocolonthe
VyattaSystem.
1
Chapter 2:Router‐LevelConfiguration Thischapterdescribescommandsfor
router‐levelOSPFconfiguration.
7
Chapter 3:OSPFAreas Thischapterdescribescommandsfor
configuringOSPFareas.
86
Chapter 4:OSPFInterfaceCommands Thischapterdescribescommandsfor
configuringOSPFon
variousinterfaces.
113
GlossaryofAcronyms 168
 DocumentConventions
xii
OSPF 6.5R1v01 Vyatta
DocumentConventions
This guide uses the following advisory paragraphs, as follows.
NOTENotesprovideinformationyoumightneedtoavoidproblemsorconfigurationerrors.
This document uses the following typographic conventions.
VyattaPublications
WARNINGWarningsalertyoutosituationsthatmayposeathreattopersonalsafety.
CAUTIONCautionsalertyoutosituationsthatmightcauseharmtoyoursystemordamageto
equipment,orthatmayaffectservice.
Monospace
Examples, command-line output, and representations of
configuration nodes.

boldMonospace
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).
 VyattaPublications
xiii
OSPF 6.5R1v01 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.5R1v01 Vyatta
Chapter1:OSPFConfiguration

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
Chapter1:OSPFConfiguration OSPFOverview
2
OSPF 6.5R1v01 Vyatta
OSPFOverview
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.
SupportedStandards
The Vyatta implementation of OSPFcomplies with the following standard:
• RFC 2328: OSPF Version 2
ConfiguringOSPF
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.
Chapter1:OSPFConfiguration ConfiguringOSPF
3
OSPF 6.5R1v01 Vyatta
Figure1‐1OSPFconfigurationreferencediagram
BasicOSPFConfiguration
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
Example1‐1BasicOSPFconfiguration
Route
r Step Command(s)
R1 SettheOSPFrouteridto
thatoftheloopback
address.
vyatta@R1#setprotocolsospfparametersrouter‐id
10.0.0.1
R1 Advertisetonetwork
10.0.40.0/24.
vyatta@R1#setprotocolsospfarea0.0.0.0network
10.0.40.0/24
R1 Redistributeconnected
routestoOSPF
vyatta@R1#setprotocolsospfredistributeconnected
R1 Committheconfiguration.
vyatta@R1#commit
Chapter1:OSPFConfiguration ConfiguringOSPF

4
OSPF 6.5R1v01 Vyatta
R1 Displaytheconfiguration.
vyatta@R1#showprotocols
ospf{
area0.0.0.0{
network10.0.40.0/24
}
parameters{
router‐id10.0.0.1
}
redistribute{
connected{
}
}
}
R2 SettheOSPFrouteridto
thatoftheloopback
address.
vyatta@R2#setprotocolsospfparametersrouter‐id
10.0.0.2
R2 Advertisetonetwork
10.0.40.0/24.
vyatta@R2#setprotocolsospfarea0.0.0.0network
10.0.40.0/24
R2 Advertisetonetwork
10.0.50.0/24.
vyatta@R2#setprotocolsospfarea0.0.0.0network
10.0.50.0/24
R2 Redistributeconnected

routestoOSPF
vyatta@R2#setprotocolsospfredistributeconnected
R2 Committheconfiguration.
vyatta@R2#commit
R2 Displaytheconfiguration.
vyatta@R2#showprotocols
ospf{
area0.0.0.0{
network10.0.40.0/24
network10.0.50.0/24
}
parameters{
router‐id10.0.0.2
}
redistribute{
connected{
}
}
}
Example1‐1BasicOSPFconfiguration
Chapter1:OSPFConfiguration ConfiguringOSPF
5
OSPF 6.5R1v01 Vyatta
VerifyingtheOSPFConfiguration
The following operational mode commands can be used to verify the OSPF
configuration.
R3:showiproute
Example 1-2 shows the output of the show ip route command for router R3.
Example1‐2VerifyingOSPFonR3:”showiproute”
vyatta@R3:~$showiproute

Codes:K‐kernelroute,C‐connected,S‐static,R‐RIP,O‐OSPF,
I‐ISIS,B‐BGP,>‐selectedroute,*‐FIBroute
O>*10.0.0.1/32[110/20]via10.0.50.2,eth5,00:04:21
O>*10.0.0.2/32[110/20]via10.0.50.2,eth5,00:03:31
C>*10.0.0.3/32isdirectlyconnected,lo
R3 SettheOSPFrouteridto
thatoftheloopback
address.
vyatta@R3#setprotocolsospfparametersrouter‐id
10.0.0.3
R3 Advertisetonetwork
10.0.50.0/24.
vyatta@R3#setprotocolsospfarea0.0.0.0network
10.0.50.0/24
R3 Redistributeconnected
routestoOSPF
vyatta@R3#setprotocolsospfredistributeconnected
R3 Committheconfiguration.
vyatta@R3#commit
R3 Displaytheconfiguration.
vyatta@R3#showprotocols
ospf{
area0.0.0.0{
network10.0.50.0/24
}
parameters{
router‐id10.0.0.3
}
redistribute{
connected{

}
}
}
Example1‐1BasicOSPFconfiguration
Chapter1:OSPFConfiguration ConfiguringOSPF
6
OSPF 6.5R1v01 Vyatta
O>*10.0.20.0/24[110/20]via10.0.50.2,eth5,03:06:06
O>*10.0.30.0/24[110/20]via10.0.50.2,eth5,03:07:39
O>*10.0.40.0/24[110/20]via10.0.50.2,eth5,03:07:40
O10.0.50.0/24[110/10]isdirectlyconnected,eth5,03:07:45
C>*10.0.50.0/24isdirectlyconnected,eth5
C>*10.0.60.0/24isdirectlyconnected,eth6
C>*127.0.0.0/8isdirectlyconnected,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:ping10.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.
Example1‐3VerifyingOSPFonR3:“ping10.0.20.1”
vyatta@R3:~$ping10.0.20.1
PING10.0.20.1(10.0.20.1)56(84)bytesofdata.
64bytesfrom10.0.20.1:icmp_seq=1ttl=63time=5.75ms
64bytesfrom10.0.20.1:icmp_seq=2ttl=63time=1.74ms
64bytesfrom10.0.20.1:icmp_seq=3ttl=63time=1.40ms

^C
‐‐‐10.0.20.1pingstatistics‐‐‐
3packetstransmitted,3received,0%packetloss,time2002ms
rttmin/avg/max/mdev=1.405/2.966/5.751/1.974ms
vyatta@R3:~$
This confirms that the OSPF configuration is working and that we are able to reach
a remote network.
7
OSPF 6.5R1v01 Vyatta
Chapter2:Router‐LevelConfiguration
This chapter describes commands for router-level OSPF configuration.
This chapter presents the following topics:
• OSPF Commands
Chapter2:Router‐LevelConfiguration OSPFCommands
8
OSPF 6.5R1v01 Vyatta
OSPFCommands
This chapter contains the following commands.
ConfigurationCommands
protocolsospf EnablestheOpenShortestPathFirst(OSPF)routing
protocolontherouter.
protocolsospfaccess‐list<list‐num> Specifiesaccesslisttofilternetworksinrouting
updates.
protocolsospfauto‐costreference‐bandwidth
<bandwidth>
Directsthesystemtousethereferencebandwidth
methodforcalculatingadministrativecost.
protocolsospfdefault‐informationoriginate Setsthe
characteristicsofanexternaldefaultroute
originatedintoanOSPFroutingdomain.

protocolsospfdefault‐metric<metric> Setsdefaultmetrictobeappliedtoroutesbeing
redistributedintoOSPF.
protocolsospfdistance SetstheOSPFadministrativedistancebyroutetype.
protocolsospflog‐adjacency‐changes Enablesordisablesloggingofchangesinadjacency
stateof
neighbors.
protocolsospfmax‐metricrouter‐lsa EnablesordisablesanOSPFstubroutertoadvertisea
maximummetricvaluewhentherouterisstartedup
orreloaded.
protocolsospfmpls‐te SetsMulti‐ProtocolLabelSwitching(MPLS)Tra ffic
Engineering(MPLS‐TE)parameters.
protocolsospfneighbor<ipv4> DefinesanOSPFneighbor.
protocolsospfparameters Setsglobal
OSPFparameters,suchasrouterID.
protocolsospfpassive‐interface Suppressesroutingupdatesonaninterface.
protocolsospfpassive‐interface‐exclude<ethx> ExcludesOSPFroutingupdatesuppressiononan
interface.
protocolsospfrefreshtimers<value> SetsvaluesforOSPFrefreshtimers.
protocolsospftimersthrottlespf EnablesordisablesOSPFSPFthrottling.
OSPFRouteRedistributionCommands
protocolsospfredistributebgp SetstheparametersforredistributionofBGProutes
intoOSPF.
Chapter2:Router‐LevelConfiguration OSPFCommands
9
OSPF 6.5R1v01 Vyatta
protocolsospfredistributeconnected Setstheparametersforredistributionofconnected
routesintoOSPF.
protocolsospfredistributekernel Setstheparametersforredistributionofkernelroutes
intoOSPF.
protocolsospfredistributerip SetstheparametersforredistributionofRIProutes

intoOSPF.
protocolsospfredistributestatic Setstheparametersforredistributionofstaticroutes
intoOSPF.
OperationalCommands
monitorprotocolospfdisableevent DisablesdebugmessagegenerationrelatedtoOSPF
events.
monitorprotocolospfdisableism Disablesdebugmessagegenerationrelatedtothe
OSPFISM.
monitorprotocolospfdisablelsa DiablesdebugmessagegenerationrelatedtoOSPF
link‐stateadvertisements(LSAs).
monitorprotocolospfdisablensm Disablesdebugmessagegenerationrelatedtothe
OSPF
NSM.
monitorprotocolospfdisablenssa DisablesdebugmessagegenerationrelatedtoOSPF
not‐so‐stubbyareas(NSSAs).
monitorprotocolospfdisablepack etall DisablesdebugmessagegenerationrelatedtoallOSPF
packets.
monitorprotocolospfdisablepack etdd DisablesdebugmessagegenerationrelatedtoOSPF
DatabaseDescription(DD)packets.
monitorprotocolospfdisablepack ethello Disables
debugmessagegenerationrelatedtoOSPF
hellopackets.
monitorprotocolospfdisablepack etls‐ack DisablesdebugmessagegenerationrelatedtoOSPF
link‐stateacknowledgement(LSAck)packets.
monitorprotocolospfdisablepack etls‐request DisablesdebugmessagegenerationrelatedtoOSPF
link‐staterequest(LSR)packets.
monitorprotocolospfdisablepack etls‐update Disables
debugmessagegenerationrelatedtoOSPF
link‐stateupdate(LSU)packets.
monitorprotocolospfdisablerib DisablesdebugmessagegenerationfortheOSPF

RoutingInformationBase(RIB).
monitorprotocolospfenableevent EnablesdebugmessagegenerationrelatedtoOSPF
events.
Chapter2:Router‐LevelConfiguration OSPFCommands
10
OSPF 6.5R1v01 Vyatta
monitorprotocolospfenableism EnablesdebugmessagegenerationrelatedtotheOSPF
ISM.
monitorprotocolospfenablelsa EnablesdebugmessagegenerationrelatedtoOSPF
link‐stateadvertisements(LSAs).
monitorprotocolospfenablensm EnablesdebugmessagegenerationrelatedtotheOSPF
NSM.
monitorprotocolospfenablenssa EnablesdebugmessagegenerationrelatedtoOSPF
not‐so‐stubbyareas(NSSAs).
monitorprotocolospfenablepacketall EnablesdebugmessagegenerationrelatedtoallOSPF
packets.
monitorprotocolospfenablepacketdd EnablesdebugmessagegenerationrelatedtoOSPF
DatabaseDescription(DD)packets.
monitorprotocolospfenablepackethello EnablesdebugmessagegenerationrelatedtoOSPF
hellopackets.
monitorprotocolospfenable
packetls‐ack EnablesdebugmessagegenerationrelatedtoOSPF
link‐stateacknowledgement(LSAck)packets.
monitorprotocolospfenablepacketls‐request EnablesdebugmessagegenerationrelatedtoOSPF
link‐staterequest(LSR)packets.
monitorprotocolospfenablepacketls‐update EnablesdebugmessagegenerationrelatedtoOSPF
link‐stateupdate(LSU)packets.
monitor
protocolospfenablerib EnablesdebugmessagegenerationfortheOSPF
RoutingInformationBase(RIB).

showipospf Displayshigh‐levelOSPFconfigurationinformation.
showipospfborder‐routers DisplaysOSPFborderrouterinformation.
showipospfdatabase DisplaysOSPFdatabaseinformation.
showipospfinterface DisplaysOSPFconfigurationandstatusinformationfor
aspecifiedinterface.
showip
ospfneighbor DisplaysOSPFneighborinformationforaspecified
addressorinterface.
showipospfroute DisplaysOSPFrouteinformation.
showmonitoringprotocolsospf DisplaysOSPFprotocoldebuggingflags.
Chapter2:Router‐LevelConfiguration OSPFCommands
11
OSPF 6.5R1v01 Vyatta
monitorprotocolospfdisableevent
Disables debug message generation related to OSPF events.
Syntax
monitor protocol ospf disable event
CommandMode
Operational mode.
Parameters
None.
Default
None.
UsageGuidelines
Use this command to disable generation of trace-level messages related to OSPF
events.
Chapter2:Router‐LevelConfiguration OSPFCommands
12
OSPF 6.5R1v01 Vyatta
monitorprotocolospfdisableism

Disables debug message generation related to the OSPF ISM.
Syntax
monitor protocol ospf disable ism [events | status | timers]
CommandMode
Operational mode.
Parameters
Default
When used with no option, this command disables all OSPF ISM messages.
UsageGuidelines
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.

×