




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
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. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 稻谷種植與休閑農業發展考核試卷
- 纜繩行業發展趨勢與前景分析考核試卷
- 珠海三中高一下學期期中考試文科地理試題
- 內蒙古通遼市達標名校2024-2025學年初三3月診斷考試生物試題含解析
- 山西省臨汾市侯馬市2025年初三教學調研測試數學試題試卷含解析
- 天水師范學院《大學職業發展與就業指導3》2023-2024學年第二學期期末試卷
- 天津市十二區縣重點學校2025屆高三3月月考數學試題文試題含解析
- 遼寧省葫蘆島市八中2025屆高三適應性練習物理試題含解析
- 西安體育學院《中外文學史》2023-2024學年第二學期期末試卷
- 仙桃職業學院《信息與導向設計》2023-2024學年第二學期期末試卷
- 起重吊裝作業安全管理培訓
- 北京市西城區2025年中考一模物理試題(含答案)
- 2025年小學勞動技能大賽實施方案-‘勞’以展風采‘動’手創未來
- 6.5 國家司法機關 課件-2024-2025學年統編版道德與法治八年級下冊
- 2025-2030中國外資銀行行業市場深度調研及競爭格局與發展策略研究報告
- 2025北京豐臺高三一?;瘜W試題及答案
- 語文-華大新高考聯盟2025屆高三3月教學質量測評試題+答案
- 石油天然氣(海洋石油)工程AI智能應用行業深度調研及發展戰略咨詢報告
- 2024年7月國家開放大學專本科《法律文書》期末紙質考試試題及答案
- 2025年湖北行測試題及答案
- 閩教版四年級英語下冊全冊單元知識點
評論
0/150
提交評論