MPLSvpnWord下载.docx
《MPLSvpnWord下载.docx》由会员分享,可在线阅读,更多相关《MPLSvpnWord下载.docx(12页珍藏版)》请在冰豆网上搜索。
R1(config-if)#mplsip
R2
R2>
R2#conft
R2(config)#noipdomain-lookup
R2(config)#lineconsole0
R2(config-line)#loggs
R2(config-line)#noexec-t
R2(config-line)#exit
R2(config)#interfaces1/0
R2(config-if)#ipadd12.1.1.2255.255.255.0
R2(config-if)#noshutdown
R2(config-if)#interfaces1/1
R2(config-if)#ipadd24.1.1.2255.255.255.0
R2(config-if)#nosh
R2(config-if)#interfacelo0
R2(config-if)#ipadd2.2.2.2255.255.255.0
R2(config-if)#exit
R2(config)#routereigrp90
R2(config-router)#noauto-summary
R2(config-router)#network12.1.1.0
R2(config-router)#network2.2.2.2
R2(config-router)#exit
R2(config)#mplslabelrange200299
R2(config)#mplsldprouter-idloopback0force
R2(config-if)#mplsip
R2(config)#ipvrfR45
R2(config-vrf)#rd400:
500
R2(config-vrf)#route-targetboth4:
5
R2(config-vrf)#exit
R2(config)#interfaces1/1
R2(config-if)#ipvrfforwardingR45
%InterfaceSerial1/1IPaddress24.1.1.2removedduetoenablingVRFR45
R2(config-if)#ipaddress24.1.1.2255.255.255.0
R2(config)#routerospf1vrfR45
R2(config-router)#router-id2.2.2.2
R2(config-router)#network24.1.1.00.0.0.255a1
*Mar103:
15:
55.379:
%OSPF-5-ADJCHG:
Process1,Nbr4.4.4.4onSerial1/1fromLOADINGtoFULL,LoadingDone
R2(config-router)#EXIT
R2(config)#EXIT
R2#showiproutevrfR45
4.0.0.0/32issubnetted,1subnets
O4.4.4.4[110/65]via24.1.1.4,00:
02:
23,Serial1/1
192.168.4.0/32issubnetted,1subnets
O192.168.4.4[110/65]via24.1.1.4,00:
13,Serial1/1
24.0.0.0/24issubnetted,1subnets
C24.1.1.0isdirectlyconnected,Serial1/1
R2(config)#routerbgp100
R2(config-router)#nosynchronization
R2(config-router)#neighbor3.3.3.3remote-as100
R2(config-router)#neighbor3.3.3.3uplo0
R2(config-router)#address-familyvpnv4
R2(config-router-af)#neighbor3.3.3.3activate
R2(config-router-af)#exit
R2(config-router)#address-familyipv4vrfR45
R2(config-router-af)#redistributeospf1matchinternalexternal
R2(config-router)#redistributebgp100subnets
23:
04.255:
%BGP-5-ADJCHANGE:
neighbor3.3.3.3Up
R2(config-router)#
32.435:
neighbor3.3.3.3DownPeerclosedthesession
33.751:
R2(config-router)#doshowiproutevrfR45
35.0.0.0/24issubnetted,1subnets
B35.1.1.0[200/0]via3.3.3.3,00:
04:
13
12:
29,Serial1/1
5.0.0.0/32issubnetted,1subnets
B5.5.5.5[200/65]via3.3.3.3,00:
19,Serial1/1
192.168.5.0/32issubnetted,1subnets
B192.168.5.5[200/65]via3.3.3.3,00:
17
R2(config)#ipvrfR67
R2(config-vrf)#rd600:
700
R2(config-vrf)#route-target6:
7
R2(config)#interfaces1/2
R2(config-if)#ipvrfforwardingR67
R2(config-if)#ipaddress26.1.1.2255.255.255.0
R2(config)#iproutevrfR67192.168.4.0255.255.255.0s1/226.1.1.6
R2(config-router)#address-familyipv4vrfR67
R2(config-router-af)#redistributestatic
R2(config-router-af)#end
R2#showiproutevrfR67
S192.168.4.0/24[1/0]via26.1.1.6,Serial1/2
B192.168.5.0/24[200/0]via3.3.3.3,00:
01:
04
26.0.0.0/24issubnetted,1subnets
C26.1.1.0isdirectlyconnected,Serial1/2
R3
R3>
R3#conft
R3(config)#noipdomain-lookup
R3(config)#lineconsole0
R3(config-line)#loggs
R3(config-line)#noexec-t
R3(config-line)#exit
R3(config)#interfaces1/1
R3(config-if)#ipadd13.1.1.3255.255.255.0
R3(config-if)#noshutdown
R3(config-if)#interfaces1/0
R3(config-if)#ipadd35.1.1.3255.255.255.0
R3(config-if)#interfacelo0
R3(config-if)#ipadd3.3.3.3255.255.255.0
R3(config-if)#exit
R3(config)#routereigrp90
R3(config-router)#network13.1.1.0
R3(config-router)#network3.3.3.3
R3(config-router)#exit
R3(config)#mplslabelrange300399
R3(config)#mplsldprouter-idlo0f
R3(config-if)#mplsip
R3(config-if)#exit
R3(config)#ipvrfR45
R3(config-vrf)#rd400:
R3(config-vrf)#route-targetboth4:
R3(config-vrf)#exit
R3(config)#interfaces1/0
R3(config-if)#ipvrfforwardingR45
%InterfaceSerial1/0IPaddress35.1.1.3removedduetoenablingVRFR45
R3(config-if)#ipaddress35.1.1.3255.255.255.0
R3(config)#routerospf1vrfR45
R3(config-router)#router-id3.3.3.3
R3(config-router)#network35.1.1.00.0.0.255a1
R3(config-router)#
17:
28.059:
Process1,Nbr5.5.5.5onSerial1/0fromLOADINGtoFULL,LoadingDone
R3(config-router)#exit
R3(config)#routerbgp100
R3(config-router)#nosynchronization
R3(config-router)#noauto-summary
R3(config-router)#bgprouter-id3.3.3.3
R3(config-router)#neighbor2.2.2.2remote-as100
03.715:
neighbor2.2.2.2Up
R3(config-router)#neighbor2.2.2.2uplo0
R3(config-router)#address-familyvpnv4
R3(config-router-af)#neighbor2.2.2.2activate
R3(config-router-af)#
30.851:
neighbor2.2.2.2DownAddressfamilyactivated
33.095:
R3(config-router-af)#exit
R3(config-router)#address-familyipv4vrfR45
R3(config-router-af)#redistributeospf1matchinternalexternal
R3(config-router)#redistributebgp100subnets
R3(config)#exit
R3(config)#ipvrfR67
R3(config-vrf)#rd600:
700
R3(config-vrf)#route-target6:
R3(config)#interfaces1/2
R3(config-if)#ipaddress37.1.1.3255.255.255.0
R3(config)#iproutevrfR67192.168.5.0255.255.255.0s1/237.1.1.7
R3#showiproutevrfR67
S192.168.5.0/24[1/0]via37.1.1.7,Serial1/2
R3(config-router)#address-familyipv4vrfR67
R3(config-router-af)#redistributestatic
R3(config-router-af)#end
B192.168.4.0/24[200/0]via2.2.2.2,00:
27
R3(config-if)#ipvrfforwardingR67
R4
R4>
R4#conft
R4(config)#noipdomain-lookup
R4(config)#lineconsole0
R4(config-line)#loggs
R4(config-line)#noexec-t
R4(config-line)#exit
R4(config)#interfaces1/1
R4(config-if)#ipaddress24.1.1.4255.255.255.0
R4(config-if)#noshutdown
R4(config-if)#interfacelo0
R4(config-if)#ipadd4.4.4.4255.255.255.0
R4(config-if)#exit
R4(config-if)#exit
R4(config)#interfacelo1
R4(config-if)#ipaddress192.168.4.4255.255.255.0
R4(config)#routerospf1
R4(config-router)#router-id4.4.4.4
R4(config-router)#network24.1.1.00.0.0.255a1
R4(config-router)#network4.4.4.40.0.0.0a1
R4(config-router)#network192.168.4.00.0.0.255a1
R4(config-router)#end
R4#showiproute
OIA35.1.1.0[110/65]via24.1.1.2,00:
00:
31,Serial1/1
4.0.0.0/24issubnetted,1subnets
C4.4.4.0isdirectlyconnected,Loopback0
OIA5.5.5.5[110/129]via24.1.1.2,00:
C192.168.4.0/24isdirectlyconnected,Loopback1
OIA192.168.5.5[110/129]via24.1.1.2,00:
R4#ping192.168.5.5sourcelo1
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto192.168.5.5,timeoutis2seconds:
Packetsentwithasourceaddressof192.168.4.4
!
Successrateis100percent(5/5),round-tripmin/avg/max=12/44/104ms
R5
R5>
R5#conft
R5(config)#noipdomain-lookup
R5(config)#lineconsole0
R5(config-line)#loggs
R5(config-line)#noexec-t
R5(config-line)#exit
R5(config)#interfaces1/0
R5(config-if)#ipadd35.1.1.5255.255.255.0
R5(config-if)#noshutdown
R5(config-if)#interfacelo0
R5(config-if)#ipadd5.5.5.5255.255.255.0
R5(config-if)#exit
R5(config)#interfacelo1
R5(config-if)#ipaddress192.168.5.5255.255.255.0
R5(config)#routerospf1
R5(config-router)#router-id5.5.5.5
R5(config-router)#network35.1.1.00.0.0.255a1
R5(config-router)#network5.5.5.50.0.0.0a1
R5(config-router)#network192.168.5.00.0.0.255a1
R6
R6>
R6#conft
R6(config)#lineconsole0
R6(config-line)#loggs
R6(config-line)#noexec-t
R6(config-line)#exit
R6(config)#interfaces1/2
R6(confi