欢迎来到天天文库
浏览记录
ID:34238871
大小:63.99 KB
页数:5页
时间:2019-03-04
《51cto下载-h3cgrevpn的配置步骤》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、H3CGREVPN案例二、案例耍求:R1是safexjt公司的边缘路由器,R2是该公司的异地分公司,为了方便两个工作场所资源共享,公司决定让网络管理员架设VPN,网管小郭决定使用GREVPNo在此详细说明一下,R1和R2都是H3C的路由设备,我们用lookback口模拟内网接口,ISP路由器上只有直连的两条路由,没有其他路由,我们用它模拟公网路由器三、列表说明接口地址路边表R1S0/2/0200.1.1.1/30Tunne10.1.1.1/30LoO192.168.1.1/32Direct192.16&1.0/2
2、4Direct10.1.1.0/30Direct200.1.1.0/30Static192.168.2.0/24tunnelOStatic0.0.0.00.0.0.0200.1.1.2R2S0/2/0200.1.1.2/30SO/2/2200.1.2.1/30Direct200.1.1.0/30Direct200.1.2.0/30R3S0/2/0200.1.2.2/30Tunnel10.1.1.2/30LoO192.168.1.1/32Direct192.16&2.0/24Direct10.1.1.0/30Dir
3、ect200.1.2.0/30Static192.168.1.0/24tunnelO0.0.0.00.0.0.0200.1.2.1实验步骤:1、R1的配置[H3C]sysnameR1[Rl]intsO/2/O[Rl-Serial0/2/0]ipadd200.1.1.1255.255.255.252[Rl-Serial0/2/0]undoshut[Rl-Serial0/2/0]intloO[Rl-LoopBackO]ipadd192.168.1.1255.255.255.255[Rl-LoopBackO]inttu
4、nnel0;进入tunnel(隧道口)[Rl-TunnelO]ipadd10.1.1.1255.255.255.252[Rl-TunnclO]tunnel-protocolgre;隧道封装协议为GRE[Rl-TunnelO]source200.1.1.1;封装后的包源地址为200.1.1.1[Rl-TunnelO]destination200.1.2.2;封装后的目的地址为200.1.2.2(R2的外网地址)[Rljiproute-static0.0.0.00.0.0.0200.1.1.2;设置静态默认路由,指向
5、ISP[Rl]iproute-static192.168.2.0255.255.255.0Tunnel0;所有到192.168.2.0的包从tunnel走小结:R1的配置到此完成,R2上没有192.16&1.0和192.16&2.0的路由,所有192.16&1.0和192.16&2.0的通讯不能直接通过路由。于是我们使用公网IP对这个私网的包进行封装。iproute-static192.168.2.0255.255.255.0Tunnel0这条路由的作用就是对到192.168.2.0的包进行封装,封装后的源地址为
6、200.1.1.1,目标地址为200.1.2.2,可以在公网上发送。2、ISP的配置[H3C]sysnameISP[ISP-Serial0/2/0]ipadd200.1.1.2255.255.255.252[ISP-Serial0/2/0]]undoshut[ISP-Serial0/2/0]intsO/2/1[TSP-SerialO/2/l]ipadd200.1.2.1255.255.255.252[ISP-Serial0/2/1]undoshut3.R2的配置systcm[R3]sysnameR2;重
7、命路由器为R2[R2]intsO/2/O[R2-Serial0/2/0]ipadd200.1.2.2255.255.255.252[R2~Serial0/2/0]undoshut[R2-Scrial0/2/0]intloO[R2-LoopBackO]ipadd192.168.2.1255.255.255.255[R2~LoopBackO]inttunnel0[R2-Tunnel0]ipadd10.1.1.2255.255.255.252[R2-Tunnel0]tunnel-protocolgre;从此口出去的包进
8、行GRE封装[R2-Tunnel0]source200.1.2.2[R2-Tunnel0]destination200.1.1.1[R2~TunnelO]quit[R2]iproute-static0.0.0.00.0.0.0200.1.2.1;添加一个默认路由,指向ISP[R2]iproute192.168.1.0255.255.255.0tunnel0;所有目标地址为
此文档下载收益归作者所有