10MPLS配置命令Word格式.docx
《10MPLS配置命令Word格式.docx》由会员分享,可在线阅读,更多相关《10MPLS配置命令Word格式.docx(64页珍藏版)》请在冰点文库上搜索。
1.2.2mplsldpadvertisement1-20
1.2.3mplsldpdu-readvertiselabel1-21
1.2.4mplsldpenable1-21
1.2.5mplsldphello1-22
1.2.6mplsldpholdtime1-23
1.2.7mplsldphops-count1-24
1.2.8mplsldploop-detect1-24
1.2.9mplsldppath-vectors1-25
1.2.10mplsldpremote-peer1-26
1.2.11mplsldprequest-retry1-27
1.2.12mplsldptransport-address1-27
1.2.13remote-ip1-28
1.2.14showmplsldp1-29
1.2.15showmplsldpinterface1-29
1.2.16showmplsldplsp1-30
1.2.17showmplsldpremote1-30
1.2.18showmplsldppeer1-31
1.2.19showmplsldpsession1-31
1.2.20debugldp1-32
第2章BGP/MPLSVPN配置命令2-1
2.1BGP/MPLSVPN配置命令2-1
2.1.1address-familyipv42-1
2.1.2address-familyvpnv42-2
2.1.3aggregate-address2-3
2.1.4auto-summary2-4
2.1.5bgpdampening2-5
2.1.6default-informationoriginate2-6
2.1.7default-metric2-6
2.1.8distribute-listin2-7
2.1.9distribute-listout2-8
2.1.10exit-address-family2-9
2.1.11importmap2-9
2.1.12iproutevrf2-10
2.1.13ipvrf2-11
2.1.14ipvrfforwarding2-12
2.1.15maximumroutes2-12
2.1.16neighboradvertisement-interval2-13
2.1.17neighbordefault-originate2-14
2.1.18neighbordescription2-15
2.1.19neighbordistribute-list2-15
2.1.20neighborebgp-multihop2-16
2.1.21neighborfilter-list2-17
2.1.22neighbornext-hop-self2-18
2.1.23neighborpeer-group2-18
2.1.24neighborprefix-list2-19
2.1.25neighborremote-as2-20
2.1.26neighborremove-private-as2-21
2.1.27neighborroute-map2-21
2.1.28neighborroute-reflector-client2-22
2.1.29neighborsend-community2-23
2.1.30neighbortimers2-24
2.1.31network2-24
2.1.32rd2-25
2.1.33redistribute2-26
2.1.34route-map2-27
2.1.35route-target2-27
2.1.36synchronization2-28
2.1.37table-map2-29
2.1.38showipbgpvpnv42-29
2.1.39showiproutevrf2-30
2.1.40debugipbgp2-31
第3章MPLSL2VPN配置命令3-1
3.1MPLSL2VPN配置命令3-1
3.1.1cccencapsulation3-1
3.1.2cccout-interface3-1
3.1.3ccctransmit-lspreceive-lsp3-2
3.1.4l2vpn-lspegress3-3
3.1.5l2vpn-lspingress3-4
3.1.6l2vpn-lsptransit3-5
3.1.7mplsl2transport3-6
3.1.8mplsl2vpn3-7
3.1.9showccc3-7
3.1.10showmplsl2transportvc3-8
3.1.11debugmplsl2vpn3-8
第1章MPLS基本配置
1.1MPLS基本配置能力
1.1.1advertise-labels
该命令用来配置拓扑驱动建立LSP的建立策略,该命令的no形式用来取消参数所指定的过滤条件,任何路由都不允许触发建立LSP。
advertise-labels{bgp|igp}[foraccess-list-number]
noadvertise-labels{bgp|igp}[foraccess-list-number]
【参数说明】
bgp:
BGP协议。
Igp:
IGP协议。
access-list-number:
访问控制列表号。
取值范围100~199。
【缺省情况】
过滤掉所有的路由协议类型
【命令模式】
MPLS配置模式
【使用指南】
使用这个命令可以配置拓扑驱动建立LSP的建立策略,指定过滤策略为BGP、IGP和ACL策略。
【举例】
!
下面这条命令使所有BGP建立的路由驱动建立LSP。
Quidway(config-mpls)#advertise-labelsbgpfor103
【相关命令】
access-list,
1.1.2clearmplsstatisticsdata
该命令用来清除MPLS统计数据。
clearmplsstatistics{{interface{all|{interface-name|interface-typeinterface-num}}}|{lsplsp-name}}
interface-name:
网络接口名称。
interface-type:
网络接口类型。
Interface-num:
网络接口编号。
lsp-name:
标签转发路径名称。
clearmplsstatisticslsp表示清除所有的LSP下的统计信息。
使用这个命令可以清除全部或单个接口上的统计信息,或者清除全部或单个LSP下的统计信息。
清除名为beijing-shanghai的LSP下的所有统计信息。
Quidway(config-mpls)#clearmplsstatisticslspbeijing-shanghai
showmplsstatistics
1.1.3bgp-preference
该命令用来配置BGP-MPLS协议的优先级,该命令的no形式用来恢复缺省值。
bgp-preferencepreference
nobgp-preference
preference:
BGP-MPLS协议优先级,取值范围为1~255。
取值越小优先级越高。
preference缺省为140。
配置BGP-MPLS协议优先级,no命令用于恢复缺省值。
在一个LSR的MPLS配置模式下配置BGP-MPLS协议优先级。
Quidway(config-mpls)#bgp-preference100
mpls,ldp-preference,rsvp-te-preference
1.1.4ldp-preference
该命令用来配置LDP协议的优先级。
该命令的no形式恢复LDP协议的优先级的缺省值。
ldp-preferencepreference
noldp-preference
优先级,取值范围为1~255。
缺省情况优先级为60。
全局配置模式
使用这个命令可以设置由LDP建立的LSP的优先级。
设置LDP的优先级为10。
Quidway(config)#ldp-preference10
mpls,bgp-preference,rsvp-te-preference
1.1.5mpls
该命令用来进入MPLS配置模式。
mpls
缺省为不进入该模式。
全局配置模式、路由协议配置模式、接口配置模式、虚拟接口配置模式
执行该命令之后,用户会进入MPLS配置模式。
只有在进入MPLS模式以后才可以配置MPLS的其它命令,如mplsrouterid、mplsip、static-lsp等。
进入MPLS配置模式。
Quidway(config)#mpls
Quidway(config-mpls)#
mplsip
1.1.6mplsingress
该命令用来配置拓扑驱动建立LSP的建立策略,该命令的no形式用来取消参数所指定的过滤条件。
mplsingress{bgp|igp}[access-groupaccess-list-number]
nomplsingress{bgp|igp}[access-groupaccess-list-number]
BGP协议
igp:
IGP协议类型。
访问控制列表号,范围100~199。
缺省为过滤掉所有的路由协议类型
使用这个命令可以配置拓扑驱动建立LSP的建立策略,指定过滤策略为BGP或IGP协议,ACL策略。
使所有BGP建立的路由驱动建立LSP。
Quidway(config)#mplsingressbgp
access-list
1.1.7mplsip
该命令用来在接口使能MPLS能力,该命令的no形式在接口上取消MPLS能力。
nomplsip
缺省为关闭MPLS能力。
接口配置模式
在接口配置模式下使用该命令,可以在接口下使能MPLS能力。
配置时首先需要全局使能MPLS能力。
no命令用于接口上的MPLS能力。
在一个LSR的两个接口上使能MPLS能力。
Quidway(config-if-Serial8/0/0)#mplsip
Quidway(config-if-Serial3/0/0)#mplsip
mpls,mplsrouterid
1.1.8mplsrouterid
该命令用来配置LSR的RouterID号,该命令的no形式用来删除LSR的RouterID号。
mplsrouteridA.B.C.D
nomplsrouterid
A.B.C.D:
LSR的RouterID,形如IP地址,用来标识一个LSR。
缺省情况下LSR没有ID号。
使用这个命令配置LSR的ID号,是配置其它MPLS命令的前提。
LSR的RouterID形如IP地址,推荐使用LSR的一个loopback地址。
配置该LSR的RouterID为202.17.41.246。
Quidway(config-mpls)#mplsrouterid202.17.41.246
mplsip,showmplsinterface
1.1.9remote-peer
该命令用来配置LDP协议的remote-peer。
remote-ipip-address
ip-address:
IPV4地址。
remote-peer配置模式
用户可以指定remote-peer的任何一个使能了LDP的接口地址或发布了路由LSR的loopback地址作为remote-peer的地址。
1.1.10retry-policy
该命令用来配置建立LSP的重试次数以及重试的时间间隔,该命令的no形式用来恢复缺省值。
retry-policy[retry-limitretry-times][retry-intervalinterval-time]
nomplsretry-policy
retry-times:
重试次数。
interval-time:
重试的时间间隔。
缺省情况下总是重试(retry-times为无穷大),重试间隔为三秒(interval-time=3000)。
使用这个命令可以配置建立LSP的重试次数和重试的时间间隔。
建立LSP的重试次数为10次和重试的时间间隔为5秒。
Quidway(config-mpls)#retry-limit10retry-interval5000
1.1.11rsvp-te-preference
该命令用来配置RSVP-TE协议优先级,该命令的no形式用来恢复缺省值。
rsvp-te-preferencepreference
norsvp-te-preference
RSVP-TE协议优先级,取值范围为1~255。
preference缺省为100。
配置RSVP-TE协议优先级,no命令用于恢复缺省值。
在一个LSR的MPLS模式下配置RSVP-TE协议优先级:
Quidway(config-mpls)#rsvp-te-preference100
mpls,ldp-preference,bgp-preference
1.1.12snmp-serverenabletrapsmpls
该命令用来使能MPLS的LSP建立过程的Trap功能。
snmp-serverenabletrapsmpls
nosnmp-serverenabletrapsmpls
mpls:
MPLS的LSPM模块。
缺省情况下不使能MPLS的LSP建立过程的Trap功能。
使用这个命令可以使能MPLS的LSP建立过程的Trap功能。
该命令的no形式取消MPLS的LSP建立过程的Trap功能。
使能MPLS的LSP建立过程的TRAP功能。
Quidway(config)#snmp-serverenabletrapsmpls
1.1.13static-lspegress
该命令用来为出口LSR配置静态LSP,该命令的no形式用来为出口LSR删除一条LSP。
static-lspegresslsp-namein-interface{interface-name|{interface-typeinterface-num}}in-labelin-label-value
nostatic-lspegresslsp-name
interface-name:
in-label-value:
入标签值,取值范围16~1024。
使用这个命令可以为出口LSR配置静态LSP。
在出口LSR上配置一条名为bj-sh的静态LSP:
Quidway(config-mpls)#static-lspegressbj-shin-interfaceserial8/0/0in-label233
static-lspingressout-labelpreferencemetric,static-lsptransitin-interfacein-labelout-label,debugmpls
1.1.14static-lspingress
该命令用来为入口LSR配置静态LSP,该命令的no形式用来为入口LSR删除一条LSP。
static-lspingresslsp-namedestination-addressdest-addraddr-mask{{nexthopnext-hop-addr}|{out-interface{interface-name|{interface-typeinterface-num}}}}out-labelout-label-value[preferencepreference-value][metricmetric-value]
nostatic-lspingresslsp-name
dest-addr:
目的IP地址。
addr-mask:
目的IP地址掩码。
next-hop-addr:
下一跳地址。
out-label-value:
出标签值,取值范围16~1024。
Preference-value:
优先级,取值范围1~255。
metric-value:
度量值,取值范围1~255。
使用这个命令可以为入口LSR配置静态LSP,同时可以为这条LSP设定优先级及度量值。
为入口LSR配置一条到目的地址202.25.38.1的静态LSP。
Quidway(config-mpls)#static-lspingressbj-shdestination-address202.25.38.124nexthop202.55.25.33out-label237
static-lspegressin-interfacein-labelout-interface,static-lsptransitin-interfacein-labelout-label,debugmpls
1.1.15static-lsptransit
该命令用来为中间传送LSR配置静态LSP,该命令的no形式用来为中间传送LSR删除一条LSP。
static-lsptransitlsp-namein-interface{interface-name|{interface-typeinterface-num}}in-labelin-label-value{{nexthopnext-hop-addr}|{out-interface{interface-name|{interface-typeinterface-num}}}}out-labelout-label-value
nostatic-lsptransitlsp-name
入或出接口的接口名称。
入或出接口的接口类型。
入或出接口接口编号。
使用这个命令可以为中间传送LSR配置静态LSP。
为中间传送LSR的串口Serial3/0/0配置了一条静态LSP,其中入标签为123,出标签为253。
Quidway(config-mpls)#static-lsptransitbj-shin-interfaces