杭州腾科思科CCNP MPLS 标签交换技术.docx
- 文档编号:28026133
- 上传时间:2023-07-07
- 格式:DOCX
- 页数:16
- 大小:81.13KB
杭州腾科思科CCNP MPLS 标签交换技术.docx
《杭州腾科思科CCNP MPLS 标签交换技术.docx》由会员分享,可在线阅读,更多相关《杭州腾科思科CCNP MPLS 标签交换技术.docx(16页珍藏版)》请在冰豆网上搜索。
杭州腾科思科CCNPMPLS标签交换技术
思科CCNP-MPLS标签交换技术
------------------------------------------------------------------------
1.基本配置
------------------------------------------------------------------------
R1(config)#interfacefastEthernet0/0
R1(config-if)#ipaddress12.1.1.1255.255.255.0
R1(config-if)#noshut
R1(config-if)#exit
R1(config)#interfaceloopback0
R1(config-if)#ipaddress1.1.1.1255.255.255.255
R1(config-if)#exit
R2(config)#interfacefastEthernet0/0
R2(config-if)#ipaddress12.1.1.2255.255.255.0
R2(config-if)#noshut
R2(config-if)#interfacefastEthernet0/1
R2(config-if)#ipaddress23.1.1.2255.255.255.0
R2(config-if)#noshut
R2(config-if)#interfaceloopback0
R2(config-if)#ipaddress2.2.2.2255.255.255.0
R2(config-if)#noshut
R3(config)#interfacefastEthernet0/0
R3(config-if)#ipaddress23.1.1.3255.255.255.0
R3(config-if)#noshut
R3(config-if)#interfacefastEthernet0/1
R3(config-if)#ipaddress34.1.1.3255.255.255.0
R3(config-if)#noshut
R3(config-if)#interfaceloopback0
R3(config-if)#ipaddress3.3.3.3255.255.255.255
R3(config-if)#noshut
R4(config)#interfacefastEthernet0/0
R4(config-if)#ipaddress34.1.1.4255.255.255.0
R4(config-if)#noshut
R4(config-if)#interfaceloopback0
R4(config-if)#ipaddress4.4.4.4255.255.255.255
R4(config-if)#noshut
------------------------------------------------------------------------
2.配置OSPF路由协议
------------------------------------------------------------------------
R1(config)#routerospf110
R1(config-router)#router-id1.1.1.1
R1(config-router)#network12.1.1.00.0.0.255area0
R1(config-router)#network1.1.1.10.0.0.0area0
R2(config)#routerospf110
R2(config-router)#router-id2.2.2.2
R2(config-router)#network12.1.1.00.0.0.255area0
R2(config-router)#network23.1.1.00.0.0.255area0
R2(config-router)#network2.2.2.20.0.0.0area0
R3(config)#routerospf110
R3(config-router)#router-id3.3.3.3
R3(config-router)#network23.1.1.00.0.0.255area0
R3(config-router)#network34.1.1.00.0.0.255area0
R3(config-router)#network3.3.3.30.0.0.0area0
R4(config)#routerospf110
R4(config-router)#router-id4.4.4.4
R4(config-router)#network34.1.1.00.0.0.255area0
R4(config-router)#network4.4.4.40.0.0.0area0
------------------------------------------------------------------------
3.配置MPLS
------------------------------------------------------------------------
查看MPLS标签数量
R1#showmplslabelrange
DownstreamGenericlabelregion:
Min/Maxlabel:
16/100000
//最小16,最大100000
修改标签的范围
R1(config)#mplslabelrange100200
R2(config)#mplslabelrange201300
R3(config)#mplslabelrange301400
R4(config)#mplslabelrange401500
------------------------------------------------------------------------
查看接口MTU
------------------------------------------------------------------------
R1#showmplsinterfacesfastEthernet0/0detail
InterfaceFastEthernet0/0:
IPlabelingenabled(ldp):
Interfaceconfig
LSPTunnellabelingnotenabled
BGPtaggingnotenabled
Taggingoperational
FastSwitchingVectors:
IPtoMPLSFastSwitchingVector
MPLSTurboVector
MTU=1500
------------------------------------------------------------------------
修改接口MTU
------------------------------------------------------------------------
R1(config)#intf0/0
R1(config-if)#mplsmtu1508
R1#showmplsinterfacesfastEthernet0/0detail
InterfaceFastEthernet0/0:
IPlabelingenabled(ldp):
Interfaceconfig
LSPTunnellabelingnotenabled
BGPtaggingnotenabled
Taggingoperational
FastSwitchingVectors:
IPtoMPLSFastSwitchingVector
MPLSTurboVector
MTU=1508
------------------------------------------------------------------------
3.配置LDP
------------------------------------------------------------------------
全局开启CEF
------------------------------------------------------------------------
R1(config)#ipcef
R2(config)#ipcef
R3(config)#ipcef
R4(config)#ipcef
R1(config)#mplslabelprotocolldp//标签分发协议LDP
R1(config)#mplsldprouter-idloopback0force//LDP协议ID使用loopback0地址
R1(config)#interfacefastEthernet0/0
R1(config-if)#mplsip//在接口下运行mpls
R2(config)#mplslabelprotocolldp
R2(config)#mplsldprouter-idloopback0force
R2(config)#interfacefastethernet0/0
R2(config-if)#mplsip
R2(config)#interfaceFastEthernet0/1
R2(config-if)#mplsip
R3(config)#mplslabelprotocolldp
R3(config)#mplsldprouter-idloopback0force
R3(config)#interfaceFastEthernet0/0
R3(config-if)#mplsip
R3(config)#interfaceFastEthernet0/1
R3(config-if)#mplsip
R4(config)#mplslabelprotocolldp
R4(config)#mplsldprouter-idloopback0force
R4(config)#interfaceFastEthernet0/0
R4(config-if)#mplsip
检查mpls接口运行状态
R1#showmplsinterfaces
InterfaceIPTunnelOperational
FastEthernet0/0Yes(ldp)NoYes
R2#showmplsinterfaces
InterfaceIPTunnelOperational
FastEthernet0/0Yes(ldp)NoYes
FastEthernet0/1Yes(ldp)NoYes
R3#showmplsinterfaces
InterfaceIPTunnelOperational
FastEthernet0/0Yes(ldp)NoYes
FastEthernet0/1Yes(ldp)NoYes
R4#showmplsinterfaces
InterfaceIPTunnelOperational
FastEthernet0/0Yes(ldp)NoYes
------------------------------------------------------------------------
查看mpls参数
------------------------------------------------------------------------
R1#showmplsldpparameters
Protocolversion:
1
Downstreamlabelgenericregion:
minlabel:
16;maxlabel:
100000
[Configured:
minlabel:
100;maxlabel:
200]
Sessionholdtime:
180sec;keepaliveinterval:
60sec
Discoveryhello:
holdtime:
15sec;interval:
5sec
Discoverytargetedhello:
holdtime:
90sec;interval:
10sec
DownstreamonDemandmaxhopcount:
255
DownstreamonDemandPathVectorLimit:
255
LDPfortargetedsessions
LDPinitial/maximumbackoff:
15/120sec
LDPloopdetection:
off
------------------------------------------------------------------------
查看ldp邻居信息
------------------------------------------------------------------------
R1#showmplsldpdiscoverydetail
LocalLDPIdentifier:
1.1.1.1:
0
DiscoverySources:
Interfaces:
FastEthernet0/0(ldp):
xmit/recv
Enabled:
Interfaceconfig
Hellointerval:
5000ms;TransportIPaddr:
1.1.1.1
LDPId:
2.2.2.2:
0
SrcIPaddr:
12.1.1.2;TransportIPaddr:
2.2.2.2
Holdtime:
15sec;Proposedlocal/peer:
15/15sec
Reachablevia2.2.2.2/32
R1#
R2#showmplsldpdiscoverydetail
LocalLDPIdentifier:
2.2.2.2:
0
DiscoverySources:
Interfaces:
FastEthernet0/0(ldp):
xmit/recv
Enabled:
Interfaceconfig
Hellointerval:
5000ms;TransportIPaddr:
2.2.2.2
LDPId:
1.1.1.1:
0
SrcIPaddr:
12.1.1.1;TransportIPaddr:
1.1.1.1
Holdtime:
15sec;Proposedlocal/peer:
15/15sec
Reachablevia1.1.1.1/32
FastEthernet0/1(ldp):
xmit/recv
Enabled:
Interfaceconfig
Hellointerval:
5000ms;TransportIPaddr:
2.2.2.2
LDPId:
3.3.3.3:
0
SrcIPaddr:
23.1.1.3;TransportIPaddr:
3.3.3.3
Holdtime:
15sec;Proposedlocal/peer:
15/15sec
Reachablevia3.3.3.3/32
R3#showmplsldpdiscoverydetail
LocalLDPIdentifier:
3.3.3.3:
0
DiscoverySources:
Interfaces:
FastEthernet0/0(ldp):
xmit/recv
Enabled:
Interfaceconfig
Hellointerval:
5000ms;TransportIPaddr:
3.3.3.3
LDPId:
2.2.2.2:
0
SrcIPaddr:
23.1.1.2;TransportIPaddr:
2.2.2.2
Holdtime:
15sec;Proposedlocal/peer:
15/15sec
Reachablevia2.2.2.2/32
FastEthernet0/1(ldp):
xmit/recv
Enabled:
Interfaceconfig
Hellointerval:
5000ms;TransportIPaddr:
3.3.3.3
LDPId:
4.4.4.4:
0
SrcIPaddr:
34.1.1.4;TransportIPaddr:
4.4.4.4
Holdtime:
15sec;Proposedlocal/peer:
15/15sec
Reachablevia4.4.4.4/32
R4#showmplsldpdiscoverydetail
LocalLDPIdentifier:
4.4.4.4:
0
DiscoverySources:
Interfaces:
FastEthernet0/0(ldp):
xmit/recv
Enabled:
Interfaceconfig
Hellointerval:
5000ms;TransportIPaddr:
4.4.4.4
LDPId:
3.3.3.3:
0
SrcIPaddr:
34.1.1.3;TransportIPaddr:
3.3.3.3
Holdtime:
15sec;Proposedlocal/peer:
15/15sec
Reachablevia3.3.3.3/32
------------------------------------------------------------------------
检查ldp邻居
------------------------------------------------------------------------
R1#showmplsldpneighbor
PeerLDPIdent:
2.2.2.2:
0;LocalLDPIdent1.1.1.1:
0
TCPconnection:
2.2.2.2.56172-1.1.1.1.646
State:
Oper;Msgssent/rcvd:
17/17;Downstream
Uptime:
00:
06:
35
LDPdiscoverysources:
FastEthernet0/0,SrcIPaddr:
12.1.1.2
AddressesboundtopeerLDPIdent:
12.1.1.223.1.1.22.2.2.2
R2#showmplsldpneighbor
PeerLDPIdent:
1.1.1.1:
0;LocalLDPIdent2.2.2.2:
0
TCPconnection:
1.1.1.1.646-2.2.2.2.56172
State:
Oper;Msgssent/rcvd:
17/17;Downstream
Uptime:
00:
06:
42
LDPdiscoverysources:
FastEthernet0/0,SrcIPaddr:
12.1.1.1
AddressesboundtopeerLDPIdent:
12.1.1.11.1.1.1
PeerLDPIdent:
3.3.3.3:
0;LocalLDPIdent2.2.2.2:
0
TCPconnection:
3.3.3.3.60929-2.2.2.2.646
State:
Oper;Msgssent/rcvd:
15/14;Downstream
Uptime:
00:
04:
23
LDPdiscoverysources:
FastEthernet0/1,SrcIPaddr:
23.1.1.3
AddressesboundtopeerLDPIdent:
23.1.1.334.1.1.33.3.3.3
R3#showmplsldpneighbor
PeerLDPIdent:
2.2.2.2:
0;LocalLDPIdent3.3.3.3:
0
TCPconnection:
2.2.2.2.646-3.3.3.3.60929
State:
Oper;Msgssent/rcvd:
15/15;Downstream
Uptime:
00:
04:
31
LDPdiscoverysources:
FastEthernet0/0,SrcIPaddr:
23.1.1.2
AddressesboundtopeerLDPIdent:
12.1.1.223.1.1.22.2.2.2
PeerLDPIdent:
4.4.4.4:
0;LocalLDPIdent3.3.3.3:
0
TCPconnection:
4.4.4.4.50756-3.3.3.3.646
State:
Oper;Msgssent/rcvd:
14/14;Downstream
Uptime:
00:
04:
10
LDPdiscoverysources:
FastEthernet0/1,SrcIPaddr:
34.1.1.4
AddressesboundtopeerLDPIdent:
34.1.1.44.4.4.4
R4#showmplsldpneighbor
PeerLDPIdent:
3.3.3.3:
0;LocalLDPIdent4.4.4.4:
0
TCPconnection:
3.3.3.3.646-4.4.4.4.50756
St
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 杭州腾科思科CCNP MPLS 标签交换技术 杭州 思科 CCNP 标签 交换 技术