华三v7版本GRE_VPN实验总结 下载本文

配置GRE VPN(V7版本)

一、实验目的

1.掌握GRE VPN的基本原理; 2.掌握GRE VPN的配置方法; 二、设备需求

(1) 2台H3C MSR30-40路由器, (2) 1台H3C S3610三层交换机; (3) 2台PC机; 三、实验环境

图1-1 GRE VPN实验环境图

四、实验任务

在路由器RTA和RTB之间的公网设备SWA(三层交换机)上没有私网路由,要求建立RTA与RTB之间的GRE VPN隧道,使PCA和PCB所在两个分离的私网网段互通。

分别用静态路由来完成任务。 五、 实验步骤

(1) 搭建实验环境 IP地址规划

(2)配置脚本 RTA主要配置: dis cu #

version 7.1.075, Alpha 7571 #

sysnameRTA #

interface GigabitEthernet0/0 port link-mode route combo enable copper

ip address 192.168.1.1 255.255.255.0 #

interface GigabitEthernet0/1 port link-mode route combo enable copper

ip address 1.1.1.1 255.255.255.0 #

interface Tunnel0 mode gre

ip address 192.168.3.1 255.255.255.252 source 1.1.1.1 destination 2.2.2.2 keepalive 10 3 #

ip route-static 2.2.2.0 24 1.1.1.2 ip route-static 192.168.2.0 24 Tunnel0 RTB主要配置 dis cu #

version 7.1.075, Alpha 7571 #

sysnameRTB # vlan 1 #

interface GigabitEthernet0/0 port link-mode route combo enable copper

ip address 192.168.2.1 255.255.255.0 #

interface GigabitEthernet0/1 port link-mode route combo enable copper

ip address 2.2.2.2 255.255.255.0 #

interface Tunnel0 mode gre

ip address 192.168.3.2 255.255.255.252 source 2.2.2.2 destination 1.1.1.1 keepalive 10 3 #

ip route-static 1.1.1.0 24 2.2.2.1 ip route-static 192.168.1.0 24 Tunnel0