资源描述:
《实验四十三、VPNGRE的配置》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、实验四十三、VPN(GRE)的配置一、实验目的1.掌握GRE(通用路由封装)的配置2.隧道接口的作用二、应用环境GRE主要用与在Internet网络上以IP封装IP或IPX报文三、实验设备1.DCR-1751两台2.PC机两台四、实验拓扑五、实验要求配置表Router-ARouter-BF0/0192.168.0.1/24F0/0192.168.2.1/24S1/1(DCE)192.168.1.1/24S1/0192.168.1.2/24PCSERVERIP192.168.0.10/24192.168.2.2/24网关192.168.0.1192.16
2、8.2.1结果:在路由器A与B之间建立VPN,保护从PC到SERVER的数据六、实验步骤第一步:参照实验三和上表配置接口地址并测试连通性第二步:路由器A的配置Router-A#confRouter-A_config#iproute192.168.2.0255.255.255.0192.168.1.2!配置静态路由Router-A_config#interfaceTunnel0!配置TUNNEL接口Router-A_config#ipaddress172.16.1.1255.255.255.0!配置IP地址Router-A_config#tunnelso
3、urceSerial1/1!设定物理源接口Router-A_config#tunneldestination192.168.1.2!设定目的地址Router-A_config#tunnelkey4!设定密钥第三步:查看配置Router-A#shinttunnel0!查看TUNNEL接口Tunnel0isup,lineprotocolisupHardwareisTunnelInterfaceaddressis172.16.1.1/24MTU1472bytes,BW9kbit,DLY50000usecEncapsulationTUNNEL,loopback
4、notsetKeepalive(period:0/5s,retry:0/5)TUNNELsource192.168.1.1(Serial1/1),destination192.168.1.2TUNNELprotocol/transportGRE/IP,keyenabled,sequencingdisabledChecksummingofpacketsdisabled,fasttunnelingenabled60secondinputrate0bits/sec,0packets/sec!60secondoutputrate0bits/sec,0packe
5、ts/sec!60packetsinput,2760bytesinput,0error,0discard60packetsoutput,3960bytesoutput,68discard第四步:路由器B的配置Router-B#confRouter-B_config#iproute192.168.0.0255.255.255.0192.168.1.1Router-B_config#interfaceTunnel0Router-B_config#ipaddress172.16.1.2255.255.255.0Router-B_config#tunnelso
6、urceSerial1/0Router-B_config#tunneldestination192.168.1.1Router-B_config#tunnelkey4Router-B_config_s1/0#^Z第五步:查看配置Router-B#shinttunnel0Tunnel0isup,lineprotocolisupHardwareisTunnelInterfaceaddressis172.16.1.2/24MTU1472bytes,BW9kbit,DLY50000usecEncapsulationTUNNEL,loopbacknotsetKe
7、epalive(period:0/5s,retry:0/5)TUNNELsource192.168.1.2(Serial1/0),destination192.168.1.1TUNNELprotocol/transportGRE/IP,keyenabled,sequencingdisabledChecksummingofpacketsdisabled,fasttunnelingenabled60secondinputrate0bits/sec,0packets/sec!60secondoutputrate0bits/sec,0packets/sec!6
8、0packetsinput,2760bytesinput,0error,0discard60p