资源描述:
《L2TPV3实现端口到端口的二层VPN.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、L2TPV3实现端口到端口的二层VPN1.实验描述有两个客户,一个VPNA,一个VPNB,通过运营网络建立端口到端口的二层VPN。VPNA的CE之间跑OSPF,VPNB的CE之间跑RIPV2。使得两个客户能够学到对方的loopback地址。注意,每个客户之间连接的地址是端口到端口的,犹如两台路由器直接用线缆连接,它们连接的IP是同一个网段的。运营商网络用台路由器,一台P,两台PE,每PE连接VPNA和VPNB的各一个CE。两台PE通过L2TPV3为客户VPNA和VPNB实现端口到端口的二层VPN。R1为P,R2和R3为PE;R7,R8为客户VPNA的CE;R9,R10为客
2、户VPNB的CE;运营商内部IGP为OSPF1;VPNA的IGP为OSPF64;VPNB的IGP为RIPV2。实验完成后R7,R8能学到对方的loopback地址,以7.7.7.7为源ping通8.8.8.8;R9,R10能学到对方的loopback地址,以9.9.9.9为源ping通10.10.10.10。具体实验的拓扑如下:2.实验步骤2.1配置运营商IGP,配置完后每台运营商路由器都能学到其他两台的loopback地址。R1interfaceLoopback0ipaddress1.1.1.1255.255.255.255!interfaceSerial1/0ipad
3、dress1.1.12.1255.255.255.0!interfaceSerial1/1ipaddress1.1.13.1255.255.255.0!routerospf1router-id1.1.1.1network1.1.1.10.0.0.0area0network1.1.12.00.0.0.255area0network1.1.13.00.0.0.255area0!R2interfaceLoopback0ipaddress2.2.2.2255.255.255.255!routerospf1router-id2.2.2.2log-adjacency-changesn
4、etwork1.1.12.00.0.0.255area0network2.2.2.20.0.0.0area0!interfaceSerial1/0ipaddress1.1.12.2255.255.255.0!R3interfaceLoopback0ipaddress3.3.3.3255.255.255.255!interfaceSerial1/0ipaddress1.1.13.3255.255.255.0!routerospf1router-id3.3.3.3network1.1.13.00.0.0.255area0network3.3.3.30.0.0.0area0!以
5、下内容需要回复才能看到验证每台运营商路由器都能学到其他路由器的loopback地址。r1#shiprouteCodes:C-connected,S-static,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISle
6、vel-2ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticrouteo-ODR,P-periodicdownloadedstaticrouteGatewayoflastresortisnotset1.0.0.0/8isvariablysubnetted,3subnets,2masksC1.1.1.1/32isdirectlyconnected,Loopback0C1.1.12.0/24isdirectlyconnected,Serial1/0C1.1.13.0/24isdirectlyconnected,Seria
7、l1/12.0.0.0/32issubnetted,1subnetsO2.2.2.2[110/65]via1.1.12.2,01:20:13,Serial1/03.0.0.0/32issubnetted,1subnetsO3.3.3.3[110/65]via1.1.13.3,01:20:13,Serial1/1r1#r2#shiprouteCodes:C-connected,S-static,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea