08_路由协议命令 word_第1页
08_路由协议命令 word_第2页
08_路由协议命令 word_第3页
08_路由协议命令 word_第4页
08_路由协议命令 word_第5页
已阅读5页,还剩171页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

路由协议命令 目录目 录第1章IP路由策略命令1-11.1ip prefix-list description1-11.2ip prefix-list seq1-11.3ip prefix-list sequence-number1-21.4match as-path1-21.5match community1-21.6match interface1-31.7match ip1-31.8match ipv6 address1-31.9match ipv6 next-hop1-41.10match metric1-41.11match origin1-41.12match route-type1-51.13match tag1-51.14route-map1-51.15set aggregator1-61.16set as-path1-61.17set atomic-aggregate1-71.18set comm-list1-71.19set community1-71.20set extcommunity1-81.21set ip next-hop1-81.22set local-preference1-81.23set metric1-91.24set metric-type1-91.25set origin1-91.26set originator-id1-101.27set tag1-101.28set vpnv4 next-hop1-101.29set weight1-111.30show ip prefix-list 1-111.31show ip prefix-list 1-121.32show route-map1-121.33show router-id1-13第2章静态路由命令2-12.1ip route2-12.2ip route vrf2-12.3show ip route2-22.4show ip route vrf2-32.5show ip route fib2-3第3章RIP命令3-13.1accept-lifetime3-13.2address-family ipv43-13.3clear ip rip route3-23.4debug rip3-23.5debug rip redistribute message send3-33.6debug rip redistribute route receive3-33.7default-information originate3-33.8default-metric3-43.9distance3-43.10distribute-list3-43.11exit-address-family3-53.12ip rip aggregate-address3-53.13ip rip authentication key-chain3-53.14ip rip authentication mode3-63.15ip rip authentication string3-63.16ip rip authentication cisco-compatible3-73.17ip rip receive-packet3-73.18ip rip receive version3-73.19ip rip send-packet3-83.20ip rip send version3-83.21ip rip split-horizon3-83.22key3-93.23key chain3-93.24key-string3-93.25maximum-prefix3-103.26neighbor3-103.27network3-103.28offset-list3-113.29passive-interface3-113.30recv-buffer-size3-113.31redistribute3-123.32redistribute ospf (vrf命令)3-123.33route3-123.34router rip3-133.35send-lifetime3-133.36show debugging rip3-143.37show ip protocols rip3-143.38show ip rip3-153.39show ip rip database3-153.40show ip rip database vrf3-163.41show ip rip interface3-163.42show ip rip interface vrf3-163.43show ip rip aggregate3-163.44show ip rip redistribute3-173.45show ip vrf3-173.46timers basic3-173.47version3-18第4章RIPng命令4-14.1clear ipv6 route4-14.2default-information originate4-14.3default-metric4-14.4distance4-24.5distribute-list4-24.6debug ipv6 rip4-34.7debug ipv6 rip redistribute message send4-34.8debug ipv6 rip redistribute route receive4-34.9ipv6 rip aggregate-address4-44.10ipv6 rip split-horizon4-44.11ipv6 router rip4-44.12neighbor4-54.13offset-list4-54.14passive-interface4-54.15redistribute4-64.16redistribute ospf4-64.17route4-74.18router ipv6 rip4-74.19show debugging ipv6 rip4-74.20show ipv6 rip interface4-84.21show ipv6 rip redistribute4-84.22show ipv6 protocols rip4-84.23show ipv6 rip4-94.24show ipv6 rip database4-104.25show ipv6 rip aggregate4-104.26show ipv6 rip redistribute4-114.27timers basic4-11第5章OSPF命令5-15.1area authentication5-15.2area default-cost5-15.3area filter-list5-15.4area nssa5-25.5area range5-25.6area stub5-35.7area virtual-link5-35.8auto-cost reference-bandwidth5-45.9compatible rfc15835-55.10clear ip ospf process5-55.11debug ospf events5-55.12debug ospf ifsm5-55.13debug ospf lsa5-65.14debug ospf nfsm5-65.15debug ospf nsm5-65.16debug ospf packet5-65.17debug ospf route5-75.18debug ospf redistribute message send5-75.19debug ospf redistribute route receive5-75.20default-information originate5-75.21default-metric5-85.22distance5-85.23distribute-list5-95.24filter-policy5-95.25host area5-105.26ip ospf authentication5-105.27ip ospf authentication-key5-115.28ip ospf cost5-115.29ip ospf database-filter5-115.30ip ospf dead-interval5-125.31ip ospf disable all5-125.32ip ospf hello-interval5-125.33ip ospf message-digest-key5-135.34ip ospf mtu5-135.35ip ospf mtu-ignore5-145.36ip ospf network5-145.37ip ospf priority5-145.38ip ospf retransmit-interval5-155.39ip ospf transmit-delay5-155.40key5-165.41key chain5-165.42log-adjacency-changes detail5-165.43max-concurrent-dd5-175.44neighbor5-175.45network area5-175.46ospf abr-type5-185.47ospf router-id5-185.48overflow database5-195.49overflow database external5-195.50passive-interface5-195.51redistribute5-205.52redistribute ospf5-205.53router ospf5-215.54show ip ospf5-215.55show ip ospf border-routers5-225.56show ip ospf database5-235.57show ip ospf interface5-245.58show ip ospf neighbor5-245.59show ip ospf redistribute5-255.60show ip ospf route5-265.61show ip ospf virtual-links5-265.62show ip route process-detail5-275.63show ip route vrf process-detail5-275.64show ip protocols5-275.65summary-address5-285.66timers spf5-28第6章OSPFv3命令6-16.1area default cost6-16.2area range6-16.3area stub6-16.4area virtual-link6-26.5abr-type6-26.6default-metric6-36.7debug ipv6 ospf events6-36.8debug ipv6 ospf ifsm6-36.9debug ipv6 ospf lsa6-46.10debug ipv6 ospf nfsm6-46.11debug ipv6 ospf nsm6-46.12debug ipv6 ospf packet6-46.13debug ipv6 ospf redistribute message send6-56.14debug ipv6 ospf redistribute route receive6-56.15debug ipv6 ospf route6-56.16ipv6 ospf cost6-56.17ipv6 ospf dead-interval6-66.18ipv6 ospf display route single-line6-66.19ipv6 ospf hello-interval6-66.20ipv6 ospf priority6-76.21ipv6 ospf retransmit-interval6-76.22ipv6 ospf transmit-delay6-86.23ipv6 router ospf6-86.24max-concurrent-dd6-96.25passive-interface6-96.26redistribute6-96.27redistribute ospf6-106.28router-id6-106.29router ipv6 ospf6-116.30show ipv6 ospf6-116.31show ipv6 ospf database6-116.32show ipv6 ospf interface6-136.33show ipv6 ospf neighbor6-146.34show ipv6 ospf route6-156.35show ipv6 ospf redistribute6-156.36show ipv6 ospf topology6-166.37show ipv6 ospf virtual-links6-166.38show ipv6 route process-detail6-176.39timers spf6-17第7章BGP和MBGP4+命令7-17.1address-family7-17.2aggregate-address7-17.3bgp aggregate-nexthop-check7-27.4bgp always-compare-med7-27.5bgp asnotation asdot7-37.6bgp bestpath as-path ignore7-37.7bgp bestpath compare-confed-aspath7-37.8bgp bestpath compare-routerid7-47.9bgp bestpath med7-47.10bgp client-to-client reflection7-57.11bgp cluster-id7-57.12bgp confederation identifier7-57.13bgp confederation peers7-67.14bgp dampening7-67.15bgp default7-67.16bgp deterministic-med7-77.17bgp enforce-first-as7-77.18bgp fast-external-failover7-77.19bgp inbound-route-filter7-87.20bgp inbound-max-route-num7-87.21bgp log-neighbor-changes7-87.22bgp network import-check7-97.23bgp rfc1771-path-select7-97.24bgp rfc1771-strict7-97.25bgp router-id7-107.26bgp scan-time7-107.27clear ip bgp7-107.28clear ip bgp dampening7-117.29clear ip bgp flap-statistics7-117.30debug bgp7-117.31debug bgp redistribute message send7-127.32debug bgp redistribute route receive7-127.33debug ipv6 bgp redistribute message send7-127.34debug ipv6 bgp redistribute route receive7-137.35distance7-137.36distance bgp7-137.37exit-address-family7-147.38import map7-147.39ip as-path access-list7-157.40ip community-list7-157.41ip extcommunity-list7-157.42neighbor activate7-167.43neighbor advertisement-interval7-167.44neighbor allowas-in7-177.45neighbor as-override7-177.46neighbor attribute-unchanged7-187.47neighbor capability7-187.48neighbor capability orf prefix-list7-187.49neighbor collide-established7-197.50neighbor default-originate7-197.51neighbor description7-207.52neighbor distribute-list7-207.53neighbor dont-capability-negotiate7-217.54neighbor ebgp-multihop7-217.55neighbor enforce-multihop7-227.56neighbor filter-list7-227.57neighbor interface7-237.58neighbor maximum-prefix7-237.59neighbor next-hop-self7-237.60neighbor override-capability7-247.61neighbor passive7-247.62neighbor peer-group (创建)7-257.63neighbor peer-group (配置组成员)7-257.64neighbor port7-257.65neighbor prefix-list7-267.66neighbor remote-as7-267.67neighbor remove-private-AS7-277.68neighbor route-map7-277.69neighbor route-reflector-client7-277.70neighbor route-server-client7-287.71neighbor send-community7-287.72neighbor shutdown7-297.73neighbor soft-reconfiguration inbound7-297.74neighbor soo7-307.75neighbor strict-capability-match7-307.76neighbor timers7-307.77neighbor timers connect7-317.78neighbor unsuppress-map7-317.79neighbor update-source7-327.80neighbor version 47-327.81neighbor weight7-327.82network (BGP)7-337.83redistribute (BGP)7-337.84redistribute ospf7-347.85redistribute ospf (vrf)7-347.86redistribute ospf (MBGP4+)7-347.87router bgp7-347.88set vpnv4 next-hop7-357.89show ip bgp7-367.90show ip bgp attribute-info7-367.91show ip bgp community7-377.92show ip bgp community-info7-377.93show ip bgp community-list7-387.94show ip bgp dampening7-387.95show ip bgp filter-list7-397.96show ip bgp inconsistent-as7-407.97show ip bgp neighbors7-407.98show ip bgp paths7-417.99show ip bgp prefix-list7-417.100show ip bgp quote-regexp7-427.101show ip bgp redistribute7-437.102show ip bgp neighbors7-437.103show ip bgp regexp7-437.104show ip bgp route-map7-437.105show ip bgp scan7-447.106show ip bgp summary7-447.107show ip bgp view7-457.108show ip bgp view neighbors7-467.109show ip bgp vrf7-467.110show ip bgp vpnv47-487.111show ipv6 bgp redistribute7-487.112timers bgp7-48第8章黑洞路由命令8-18.1ip route null08-18.2ipv6 route null08-1第9章GRE隧道配置命令9-19.1debug gre9-19.2ip address9-19.3ip route9-19.4ipv6 address9-29.5ipv6 route9-29.6loopback-group(全局)9-29.7loopback-group (端口)9-39.8loopback-group (隧道接口)9-39.9show gre tunnel9-39.10show interface tunnel9-49.11tunnel destination9-49.12tunnel mode gre ip9-49.13tunnel mode gre ipv69-59.14tunnel source9-5第10章ECMP配置命令10-110.1load-balance10-110.2maximum-paths10-1第11章BFD命令11-111.1bfd authentication key11-111.2bfd authentication key md511-111.3bfd authentication key text11-111.4bfd echo11-211.5bfd echo-source-ip11-211.6bfd echo-source-ipv611-211.7bfd enable11-311.8bfd interval11-311.9bfd min-echo-recv-interval11-411.10bfd mode11-411.11debug bfd11-411.12ip ospf bfd enable11-511.13ip route bfd11-511.14ipv6 ospf bfd enable11-511.15ipv6 ospf bfd enable instance-id11-611.16ipv6 rip bfd enable11-611.17ipv6 route bfd11-611.18neighbor11-711.19rip bfd enable11-711.20show bfd neighbor11-8第12章BGP GR配置12-112.1bgp graceful-restart12-112.2bgp graceful-restart restart-time12-112.3bgp graceful-restart stale-path-time12-112.4bgp selection-deferral-time12-212.5neighbor capability graceful-restart12-212.6neighbor restart-time12-2第13章OSPF GR配置命令13-113.1capability restart graceful13-113.2debug ospf events gr13-113.3ospf graceful-restart grace-period13-113.4ospf graceful-restart helper max-grace-period13-213.5ospf graceful-restart helper never13-213.6show ip ospf13-213.7show ip ospf graceful-restart13-313-4路由协议命令 第1章 IP路由策略命令第1章 IP路由策略命令1.1 ip prefix-list description命令:ip prefix-list description no ip prefix-list description功能:配置前缀列表的描述文字,本命令的no操作为删除描述文字。参数:为前缀列表名称,为描述文字。缺省情况:无。命令模式:全局配置模式。使用指南:可以使用本命令为一个prefix-list进行说明、描述,例如prefix-list的用途、注意事项等。举例:Switch#config terminalSwitch(config)#ip prefix-list 3 description This list is used by BGP1.2 ip prefix-list seq命令:ip prefix-list seq any | ip_addr/mask_length ge le no ip prefix-list seq any | ip_addr/mask_length ge le 功能:配置前缀列表,本命令的no操作为删除前缀列表。参数:为前缀列表名称,seq表示后面所接的参数为序列号,为序列号,deny表示拒绝该路由,permit表示接受该路由,any表示适用于所有前缀及掩码长度的报文,ip_addr/mask_length表示前缀地址(点分十进制)及掩码长度,ge表示大于、等于,为要匹配的最小前缀长度(范围为032),le表示小于、等于,为要匹配的最大前缀长度(范围为032)。缺省情况:无。命令模式:全局配置模式。使用指南:一个prefix-list由前缀列表名标识,每个前缀列表可以包含多个表项,每个表项可以独立指定一个网络前缀形式的匹配范围,并用一个sequence-number来标识,sequence-number指明了在prefix-list中进行匹配检查的顺序。在匹配的过程中,交换机按升序依次检查由sequence -number标识的各个表项,只要有某一表项满足条件就意味着通过该prefix-list的过滤(不会进入下一个表项的测试)。需要注意的是,如果定义了一个以上的前缀列表表项,那么至少应该有一个表项的匹配模式是permit模式。deny模式的表项可以先被定义,以快速的过滤掉不符合条件的路由信息。但如果所有表项都是deny模式,则任何路由都不会通过该地址前缀列表的过滤。可以在定义了多条deny模式的表项后定义一条permit 0.0.0.0/0 ge 0 le 32的表项,以允许其它所有路由信息通过。举例:Switch#config terminalSwitch(config)#ip prefix-list mylist seq 12345 deny 10.0.0.0/8 le 22 ge 141.3 ip prefix-list sequence-number命令:ip prefix-list sequence-number no ip prefix-list sequence-number 功能:启动序号自动生成功能,本命令的no操作为关闭前缀列表条目序号。 参数:无。 缺省情况:启动序号自动生成功能。 命令模式:全局配置模式。 使用指南:可以使用本命令的no操作来关闭前缀列表条目序号。 举例: switch(config)#no ip prefix-list sequence-number1.4 match as-path命令:match as-path no match as-path 功能:配置匹配BGP路由信息的AS路径域,本命令的no操作为删除配置。参数:为access-list名称。命令模式:route-map配置模式。使用指南:本命令按as-path list中指定的规则对BGP路由信息的AS路径域进行匹配,如果匹配成功,则执行route-map中的permit或deny操作。举例:Switch#config terminalSwitch(config)#route-map r1 permit 5Switch(config-route-map)#match as-path 601.5 match community命令:match community exact-matchno match community exact-match功能:配置匹配BGP路由信息的团体属性,本命令的no操作为删除配置。参数:为community-list名称,为community-list序号,取值范围为199(标准ACL)或100199(扩展ACL),exact-match表示精确匹配。命令模式:route-map配置模式。使用指南:本命令按community list中指定的规则对BGP路由信息的团体属性进行匹配,如果匹配成功,则执行route-map中的permit或deny操作。团体属性通过match和set可以提供对大量路由应用策略的能力。举例:Switch#config terminalSwitch(config)#route-map r1 permit 5Switch(config-route-map)#match community 100 exact-match1.6 match interface命令:match interface no match interface 功能:配置对接口匹配,本命令的no操作为删除配置。参数:为接口名称。命令模式:route-map配置模式。使用指南:本命令按路由中的下一跳接口信息进行匹配,如果匹配成功,则执行route-map中的permit或deny操作。本命令仅用于RIP和OSPF协议。举例:Switch#config terminalSwitch(config)#route-map r1 permit 5Switch(config-route-map)#match interface vlan11.7 match ip命令:match ip no match ip 功能:配置匹配路由前缀或下一跳,本命令的no操作为删除配置。参数:表示匹配的是路由前缀,表示匹配的是路由下一跳,为ip access-list名称,为ip access-list序号,取值范围为1199或13002699(扩展范围),prefix-list表示要按前缀列表规则进行匹配,list-name为前缀列表名称。命令模式:route-map配置模式。使用指南:本命令按路由中的路由前缀或下一跳信息进行匹配,如果匹配成功,则执行route-map中的permit或deny操作。举例:Switch#config terminalSwitch(config)#route-map r1 permit 5Switch(config-route-map)#match ip address prefix-list mylist1.8 match ipv6 address命令:match ipv6 address no match ipv6 address 功能:配置匹配ipv6路由前缀,本命令的no操作为删除配置。 参数:address 表示匹配的是路由前缀,为ipv6 access-list名称,prefix-list 表示要按前缀列表规则进行匹配,list-name 为前缀列表名称。 命令模式:route-map 配置模式。使用指南:本命令按路由中的路由前缀进行匹配,如果匹配成功,则执行route-map 中permit deny操作。 举例: Switch#config terminal Switch(config)#route-map r1 permit 5 Switch(config-route-map)#match ipv6 address prefix-list mylist 1.9 match ipv6 next-hop命令:match ipv6 next-hop no match ipv6 next-hop 功能:配置匹配ipv6路由下一跳,本命令的no操作为删除配置。 参数:next-hop表示匹配的是路由下一跳,ipv6-address表示下一跳的接口ipv6地址。 命令模式:route-map 配置模式。 使用指南:本命令按路由中的下一跳信息进行匹配,如果匹配成功,则执行route-map 中的permit 或deny 操作。 举例: Switch#config terminal Switch(config)#route-map r1 permit 5 Switch(config-route-map)# match ipv6 next-hop 2000:1 1.10 match metric命令:match metric no match metric 功能:配置匹配路由信息的度量值,本命令的no操作为删除配置。参数:为度量值,范围为04294967295。命令模式:route-map配置模式。使用指南:本命令按路由中的度量值进行匹配,如果匹配成功,则执行route-map中的permit或deny操作。举例:Switch#config terminalSwitch(config)#route-map r1 permit 5Switch(config-route-map)#match metric 601.11 match origin命令:match origin no match origin 功能:配置匹配BGP路由信息的源,本命令的no操作为删除配置。参数:egp表示路由学习自外部网关协议,igp表示路由学习自内部网关协议,incomplete表示路由源不能确定。命令模式:route-map配置模式。使用指南:本命令按BGP路由中的源信息进行匹配,如果匹配成功,则执行route-map中的permit或deny操作。举例:Switch#config terminalSwitch(config)#route-map r1 permit 5Switch(config-route-map)#match origin egp1.12 match route-type命令:match route-type external no match route-type external 功能:配置匹配OSPF路由信息的路由类型,本命令的no操作为删除配置。参数:type-1表示匹配OSPF类型1外部路由,type-2表示匹配OSPF类型2外部路由。命令模式:route-map配置模式。使用指南:本命令按OSPF路由的类型进行匹配(OSPF AS-external LSA类型为type 1或type 2),如果匹配成功,则执行route-map中的permit或deny操作。举例:Switch#config terminalSwitch(config)#route-map r1 permit 5Switch(config-route-map)#match route-type external type-11.13 match tag命令:match tag no match tag 功能:配置匹配OSPF路由信息的tag域,本命令的no操作为删除配置。参数:为tag值,范围

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论