1. Trang chủ
  2. » Công Nghệ Thông Tin

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

185 521 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 185
Dung lượng 757,74 KB

Nội dung

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 [...]... 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 . 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‐00 16 iii OSPF 6. 5R1 v01 Vyatta Contents QuickListofCommands........................................................vi ListofExamples. 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. 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

Ngày đăng: 06/07/2015, 07:34

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN