




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
MPLSVPN试验
一、拓朴图
说明:
1、设备接互联地址:如R1与R2间的互联地址为10.1.12.0/24;
LOOKBACK接口地址为:1.1.1.1/32;
2、CORE内运行OSPF(进行号100,area0),激活MPLS;
3、PE上创建VRF(VPNA),PE与CE间通过OSPF互联(进程号:
1);
4、R2与R4两台PE间建立MP-IBGP邻接关系,(BGPAS234)
5、完成PE-CE间的路由重发布;
二、配置信息:
RI:(CE1)
Rl#showrun
!
hostnameRI
!
ipcef
!
interfaceLoopbackO
ipospfnetworkpoint-to-point
!
interfaceFastEthernetO/0
duplexauto
speedauto
mplsip
!
interfaceFastEthernetO/1
noipaddress
shutdown
duplexauto
speedauto
routerospf1
log-adjacency-changes
network1.1.1.10.0.0.0area0
network10.1.12.10.0.0.0area0
!
!
end
RI#
session-192.168.197.12001-20170116.log
R2:(PEI)
R2#
R2#showrun
!
hostnameR2
ipcef
ipvrfvpna
rd1:1
route-targetexport234:2
route-targetimport234:4
I
mplslabelrange200299
mplsIdprouter-idLoopbackO
!
!
interfaceLoopbackO
!
interfaceFastEthernet0/0
ipvrfforwardingvpna
duplexauto
speedauto
!
interfaceFastEthernetO/1
duplexauto
speedauto
mplsip
routerospf1vrfvpna
log-adjacency-changes
redistributebgp234subnets
network10.1.12.20.0.0.0area0
I
routerospf100
log-adjacency-changes
network2.2.2.20.0.0.0area0
network10.1.23.20.0.0.0area0
I
routerbgp234
nobgpdefaultipv4-unicast
bgplog-neighbor-changes
neighbor4.4.4.4remote-as234
neighbor4.4.4.4update-sourceLoopbackO
I
address-familyvpnv4
neighbor4.4.4.4activate
neighbor4.4.4.4send-communityextended
exit-address-family
address-familyipv4vrfvpna
redistributeospf1vrfvpnamatchinternalexternal1
external2
noauto-summary
nosynchronization
exit-address-family
I
!
end
R2#
session-192.168.197.12002-20170116.log
R3:(P)
R3#
R3#showrun
!
hostnameR3
ipcef
mplslabelrange300399
mplsIdprouter-idLoopbackO
!
!
interfaceLoopbackO
!
interfaceFastEthemetO/0
duplexauto
speedauto
mplsip
!
interfaceFastEthemetO/1
duplexauto
speedauto
mplsip
!
routerospf100
log-adjacency-changes
network3.3.3.30.0.0.0area0
network10.1.23.30.0.0.0area0
network10.1.34.30.0.0.0area0
end
R3#
session-192.168.197.12003-20170116.log
R4:(PE2)
R4#
R4#showrun
Buildingconfiguration...
!
hostnameR4
!
ipcef
!
ipvrfvpna
rd1:1
route-targetexport234:4
route-targetimport234:2
mplslabelrange400499
mplsIdprouter-idLoopbackO
!
!
interfaceLoopbackO
!
interfaceFastEthemetO/0
duplexauto
speedauto
mplsip
!
interfaceFastEthemetO/1
ipvrfforwardingvpna
duplexauto
speedauto
!
routerospf1vrfvpna
log-adjacency-changes
redistributebgp234subnets
network10.1.45.40.0.0.0area0
routerospf100
log-adjacency-changes
network4.4.4.40.0.0.0area0
network10.1.34.40.0.0.0area0
I
routerbgp234
nobgpdefaultipv4-unicast
bgplog-neighbor-changes
neighbor2.2.2.2remote-as234
neighbor2.2.2.2update-sourceLoopbackO
!
address-familyvpnv4
neighbor2.2.2.2activate
neighbor2.2.2.2send-communityextended
exit-address-family
I
address-familyipv4vrfvpna
redistributeospf1vrfvpnamatchinternalexternal1
external2
noauto-summary
nosynchronization
exit-address-family
end
session-192.168.197.12004-20170116.log
R5:(CE2)
R5#
R5#showrun
Buildingconfiguration...
!
hostnameR5
!
ipcef
!
interfaceLoopbackO
ipospfnetworkpoint-to-point
!
interfaceFastEthernetO/0
duplexauto
speedauto
interfaceFastEthernetO/1
noipaddress
shutdown
duplexauto
speedauto
I
routerospf1
log-adjacency-changes
network5.5.5.50.0.0.0area0
network10.1.45.50.0.0.0area0
!
end
R5#
session-192.168.197.12005-20170116.log
三、相关检查吩咐:
1、R2#shipospfneighbor//查PE的OSPF邻居
R2#shipospfneighbor〃查PE的OSPF邻居
NeighborIDPriStateDeadTimeAddress
Interface
3.3.3.31FULL/DR00:00:30
10.1.23.3FastEthernetO/1
1.1.1.11FULL/BDR00:00:30
10.1.12.1FastEthernetO/0
2、R2#shmplsIdpneighbor〃查PE上的MPLS邻居信息
R2#shmplsIdpneighbor〃查PE上的MPLS邻居信息
PeerLDPIdent:3.3.3.3:0;LocalLDPIdent2.2.2.2:0
State:Oper;Msgssent/rcvd:11/11;Downstream
Uptime:00:03:23
LDPdiscoverysources:
AddressesboundtopeerLDPIdent:
10.1.23.33.3.3.310.1.34.3
3、R2#shmplsforwarding-table//查PE上的MPLS标签转发表
R2#shmplsforwarding-table〃查PE上的MPLS标签转发表
LocalOutgoingPrefixBytestagOutgoing
NextHop
tagtagorVCorTunnelIdswitchedinterface
203Untagged1.1.1.1/32[V]3138Fa0/0
10.1.12.1
204Aggregate10.1.12.0/24[V]0
R2#
4、R2#shipbgpvpnv4allsummary〃查PE上的VPNV4邻居
信息
R2#shipbgpvpnv4allsummary〃查PE上的VPNV4邻居
信息:
BGProuteridentifier2.2.2.2,localASnumber234
BGPtableversionis9,mainroutingtableversion9
4networkentriesusing548bytesofmemory
4pathentriesusing272bytesofmemory
5/4BGPpath/bestpathattributeentriesusing620bytesof
memory
2BGPextendedcommunityentriesusing80bytesofmemory
0BGProute-mapcacheentriesusing0bytesofmemory
0BGPfilter-listcacheentriesusing0bytesofmemory
BGPusing1520totalbytesofmemory
BGPactivity4/0prefixes,4/0paths,scaninterval15secs
NeighborVASMsgRcvdMsgSentTblVerInQOutQ
Up/DownState/PfxRcd
4.4.4.44234191990
000:12:012
5、R2#shipbgpvpnv4all〃查PE上的VPNV4路由信息,可推
断路由重发布是否正确
R2#shipbgpvpnv4all〃查PE上的VPNV4路由信息,可
推断路由重发布是否正确
Statuscodes:ssuppressed,ddamped,hhistory,*valid,>
best,i-internal,
rRIB-failure,SStale
Origincodes:i-IGP,e-EGP,?-incomplete
NetworkNextHopMetricLocPrf
WeightPath
RouteDistinguisher:1:1(defaultforvrfvpna)
*>ilO.1.45.0/244.4.4.40100
0?
6、R2#shiprovrfvpna〃查看VRF下的路由表信息
R2#shiprovrfvpna//查看VRF下的路由表信息
RoutingTable:vpna
Codes:C-connected,S-static,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPF
interarea
N1-OSPFNSSAexternaltype1,N2-OSPFNSSA
externaltype2
El-OSPFexternaltype1,E2-OSPFexternaltype2
i-IS-IS,su-IS-ISsummary,LI-IS-ISlevel-1,L2-
IS-ISlevel-2
ia-IS-ISinterarea,*-candidatedefault,U-per-user
staticroute
o-ODR,P-periodicdownloadedstaticroute
Gatewayoflastresortisnotset
1.0.0.0/32issubnetted,1subnets
o1.1.1.1[110/2]via10.1.12.1,00:17:52,
FastEthernetO/0
5.0.0.0/24issubnetted,1subnets
B5.5.5.0[200/2]via4.4.4.4,00:17:02
10.0.0.0/24issubnetted,2subnets
C10.1.12.0isdirectlyconnected,FastEthernetO/0
B10.1.45.0[200/0]via4.4.4.4,00:17:02
R2#
7、R2#shipcef〃查看CEF表
R2#shipcef//查看CEF表
PrefixNextHopInterface
O.O.O.O/OdropNullO(default
routehandlerentry)
R2#
8、〃在CE1上带源地址拼CE2
R1#〃在CE1上带源地址拼CE2
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto5.5.5.5,timeoutis2
seconds:
Packetsentwithasourceaddressof1.1.1.1
mu
9、//在CE1上带源地址路由跟踪CE2
RI#〃在CE1上带源地址路由跟踪CE2
Typeescapesequencetoabort.
110.1.12.2128msec188msec196msec
210.1.23.3[MPLS:Labels300/403Exp0]664msec600
msec616msec
310.1.45.4[MPLS:Label403Exp0]372msec408msec
560msec
410.1.45.5624msec764msec576msec
RI#
10、Rl#showipospfneighbor//查看CE1上的OSPF邻居表
Rl#showipospfneighbor//查看CE1上的OSPF邻居表
NeighborIDPriStateDeadTimeAddress
Interface
10.1.12.21FULL/DR00:00:3810.1.12.2
FastEthernet0
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 影视录放设备的G网络应用考核试卷
- 高中生必看!高中三年详细学习规划与建议助你轻松应对
- 沈阳市皇姑区2025年八年级《语文》上学期期末试题与参考答案
- 气象灾害预警信息发布网络补充协议
- 2025年中国编织品制造行业市场前景预测及投资价值评估分析报告
- 老龄医疗护理机构委托管理协议
- 新能源汽车电机控制器研发、生产与销售一体化协议
- 私募证券投资收益分配协议
- 高端装备制造技术入股分红及市场拓展合作协议
- 抖音直播火花主播打赏分成比例调整协议
- 2025年计算机二级MySQL经典试题及答案
- 《研究生就业指导课件(说课)》
- 北京2025年商务部直属事业单位第二批招聘169人笔试历年参考题库附带答案详解
- 2025年武汉铁路局集团招聘(180人)笔试参考题库附带答案详解
- 2025-2030全球及中国免疫磁珠行业市场现状供需分析及市场深度研究发展前景及规划可行性分析研究报告
- 2025统编版(2024)小学道德与法治一年级下册《第13课-快乐儿童节》教学设计
- 2025冶金工业信息标准研究院招聘笔试参考题库附带答案详解
- 三方协议空白合同
- 挡烟垂壁施工合同
- 【MOOC】当代社会中的科学与技术-南京大学 中国大学慕课MOOC答案
- 上海市徐汇区2023-2024学年八年级下学期学习能力诊断英语卷
评论
0/150
提交评论