10MPLS配置命令.docx

上传人:b****4 文档编号:6849380 上传时间:2023-05-10 格式:DOCX 页数:64 大小:42.83KB
下载 相关 举报
10MPLS配置命令.docx_第1页
第1页 / 共64页
10MPLS配置命令.docx_第2页
第2页 / 共64页
10MPLS配置命令.docx_第3页
第3页 / 共64页
10MPLS配置命令.docx_第4页
第4页 / 共64页
10MPLS配置命令.docx_第5页
第5页 / 共64页
10MPLS配置命令.docx_第6页
第6页 / 共64页
10MPLS配置命令.docx_第7页
第7页 / 共64页
10MPLS配置命令.docx_第8页
第8页 / 共64页
10MPLS配置命令.docx_第9页
第9页 / 共64页
10MPLS配置命令.docx_第10页
第10页 / 共64页
10MPLS配置命令.docx_第11页
第11页 / 共64页
10MPLS配置命令.docx_第12页
第12页 / 共64页
10MPLS配置命令.docx_第13页
第13页 / 共64页
10MPLS配置命令.docx_第14页
第14页 / 共64页
10MPLS配置命令.docx_第15页
第15页 / 共64页
10MPLS配置命令.docx_第16页
第16页 / 共64页
10MPLS配置命令.docx_第17页
第17页 / 共64页
10MPLS配置命令.docx_第18页
第18页 / 共64页
10MPLS配置命令.docx_第19页
第19页 / 共64页
10MPLS配置命令.docx_第20页
第20页 / 共64页
亲,该文档总共64页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

10MPLS配置命令.docx

《10MPLS配置命令.docx》由会员分享,可在线阅读,更多相关《10MPLS配置命令.docx(64页珍藏版)》请在冰点文库上搜索。

10MPLS配置命令.docx

10MPLS配置命令

目录

第1章MPLS基本配置1-1

1.1MPLS基本配置能力1-1

1.1.1advertise-labels1-1

1.1.2clearmplsstatisticsdata1-2

1.1.3bgp-preference1-2

1.1.4ldp-preference1-3

1.1.5mpls1-4

1.1.6mplsingress1-5

1.1.7mplsip1-5

1.1.8mplsrouterid1-6

1.1.9remote-peer1-7

1.1.10retry-policy1-7

1.1.11rsvp-te-preference1-8

1.1.12snmp-serverenabletrapsmpls1-9

1.1.13static-lspegress1-9

1.1.14static-lspingress1-10

1.1.15static-lsptransit1-11

1.1.16statisticinterval1-12

1.1.17vc-range1-13

1.1.18showmplsforwarding-table1-14

1.1.19showmplsinterfaces1-15

1.1.20showmplslsp1-16

1.1.21showmplsstatic-lsp1-16

1.1.22showmplsstatistics1-17

1.1.23debugmpls1-18

1.2LDP配置命令1-19

1.2.1mplsldp1-19

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下的统计信息。

【命令模式】

MPLS配置模式

【使用指南】

使用这个命令可以清除全部或单个接口上的统计信息,或者清除全部或单个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。

【命令模式】

MPLS配置模式

【使用指南】

配置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

【参数说明】

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:

BGP协议

igp:

IGP协议类型。

access-list-number:

访问控制列表号,范围100~199。

【缺省情况】

缺省为过滤掉所有的路由协议类型

【命令模式】

全局配置模式

【使用指南】

使用这个命令可以配置拓扑驱动建立LSP的建立策略,指定过滤策略为BGP或IGP协议,ACL策略。

【举例】

使所有BGP建立的路由驱动建立LSP。

Quidway(config)#mplsingressbgp

【相关命令】

access-list

1.1.7mplsip

该命令用来在接口使能MPLS能力,该命令的no形式在接口上取消MPLS能力。

mplsip

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号。

【命令模式】

MPLS配置模式

【使用指南】

使用这个命令配置LSR的ID号,是配置其它MPLS命令的前提。

LSR的RouterID形如IP地址,推荐使用LSR的一个loopback地址。

【举例】

配置该LSR的RouterID为202.17.41.246。

Quidway(config)#mpls

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)。

【命令模式】

MPLS配置模式

【使用指南】

使用这个命令可以配置建立LSP的重试次数和重试的时间间隔。

【举例】

建立LSP的重试次数为10次和重试的时间间隔为5秒。

Quidway(config-mpls)#retry-limit10retry-interval5000

1.1.11rsvp-te-preference

该命令用来配置RSVP-TE协议优先级,该命令的no形式用来恢复缺省值。

rsvp-te-preferencepreference

norsvp-te-preference

【参数说明】

preference:

RSVP-TE协议优先级,取值范围为1~255。

取值越小优先级越高。

【缺省情况】

preference缺省为100。

【命令模式】

MPLS配置模式

【使用指南】

配置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

【参数说明】

lsp-name:

标签转发路径名称。

interface-name:

网络接口名称。

interface-type:

网络接口类型。

Interface-num:

网络接口编号。

in-label-value:

入标签值,取值范围16~1024。

【命令模式】

MPLS配置模式

【使用指南】

使用这个命令可以为出口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

【参数说明】

lsp-name:

标签转发路径名称。

dest-addr:

目的IP地址。

addr-mask:

目的IP地址掩码。

next-hop-addr:

下一跳地址。

interface-name:

网络接口名称。

interface-type:

网络接口类型。

Interface-num:

网络接口编号。

out-label-value:

出标签值,取值范围16~1024。

Preference-value:

优先级,取值范围1~255。

metric-value:

度量值,取值范围1~255。

【命令模式】

MPLS配置模式

【使用指南】

使用这个命令可以为入口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

【参数说明】

lsp-name:

标签转发路径名称。

interface-name:

入或出接口的接口名称。

interface-type:

入或出接口的接口类型。

Interface-num:

入或出接口接口编号。

next-hop-addr:

下一跳地址。

in-label-value:

入标签值,取值范围16~1024。

out-label-value:

出标签值,取值范围16~1024。

【命令模式】

MPLS配置模式

【使用指南】

使用这个命令可以为中间传送LSR配置静态LSP。

【举例】

为中间传送LSR的串口Serial3/0/0配置了一条静态LSP,其中入标签为123,出标签为253。

Quidway(config-mpls)#static-lsptransitbj-shin-interfaces

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 解决方案 > 学习计划

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2