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 [...]... 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 OSPF 6. 5R1 v01 Vyatta 7 Chapter 2: Router‐Level Configuration This chapter describes commands for router-level OSPF configuration This chapter presents the following topics: • OSPF OSPF Commands 6. 5R1 v01 Vyatta Chapter 2: Router‐Level Configuration OSPF Commands 8 OSPF Commands... routes to OSPF vyatta@ R1# set protocols ospf redistribute connected R1 Commit the configuration vyatta@ R1# commit OSPF 6. 5R1 v01 Vyatta Chapter 1: OSPF Configuration Configuring OSPF 4 Example 1‐1 Basic OSPF configuration 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 ... Excludes OSPF routing update suppression on an interface protocols ospf refresh timers 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 OSPF Sets the parameters for redistribution of BGP routes into OSPF 6. 5R1 v01 Vyatta Chapter 2: Router‐Level Configuration OSPF Commands 9 protocols ospf redistribute connected... 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 OSPF 6. 5R1 v01 Vyatta Chapter 2: Router‐Level Configuration OSPF Commands 11 monitor protocol ospf disable event Disables debug message generation related to OSPF events Syntax monitor protocol ospf disable... 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 { } } } OSPF 6. 5R1 v01 Vyatta Chapter 1: OSPF Configuration Configuring OSPF 5 Example 1‐1 Basic OSPF configuration R3 Set the OSPF router id to that of the loopback address vyatta@ R3# set protocols ospf parameters router‐id ... monitor protocol ospf enable event Enables debug message generation related to OSPF events OSPF 6. 5R1 v01 Vyatta Chapter 2: Router‐Level Configuration OSPF Commands 10 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... 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 OSPF 6. 5R1 v01 Vyatta Chapter 1: OSPF Configuration Configuring OSPF 3 Figure 1‐1 OSPF configuration reference diagram... 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: • • Supported Standards • OSPF OSPF Overview Configuring OSPF 6. 5R1 v01 Vyatta Chapter 1: OSPF Configuration OSPF Overview 2 OSPF Overview Open Shortest Path First (OSPF) is a dynamic routing protocol that uses a link state algorithm (Dijkstra), as opposed to... C>* 10.0.0.3/32 is directly connected, lo OSPF 6. 5R1 v01 Vyatta Chapter 1: OSPF Configuration Configuring OSPF 6 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... generation related to OSPF ISM status timers Optional Diables debug message generation related to OSPF ISM timers 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 OSPF 6. 5R1 v01 Vyatta Chapter 2: Router‐Level Configuration OSPF Commands 13 monitor protocol ospf disable lsa . 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‐00 16 iii OSPF 6. 5R1 v01 Vyatta Contents QuickListofCommands........................................................vi ListofExamples. 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. 64 bytesfrom10.0.20.1:icmp_seq=1ttl =63 time=5.75ms 64 bytesfrom10.0.20.1:icmp_seq=2ttl =63 time=1.74ms 64 bytesfrom10.0.20.1:icmp_seq=3ttl =63 time=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. 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. 5R1 v01 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