GRE配置

GRE配置   

    先将R1,R2,R3互相ping通。

  GRE配置如下:

  R1:

  R1(config)#interface tunnel 0

  R1(config-if)#tunnel mode gre ip

  R1(config-if)#ip address 172.16.0.1 255.255.255.0

  R1(config-if)#tunnel source 192.168.1.1

  R1(config-if)#tunnel destination 192.168.2.2

  R1(config-if)#exit

  R1(config)#ip route 0.0.0.0 0.0.0.0 172.16.0.2

  R3:

  R3(config)#interface tunnel 0

  R3(config-if)#tunnel mode gre ip

  R3(config-if)#ip address 172.16.0.2 255.255.255.0

  R3(config-if)#tunnel source 192.168.2.2

  R3(config-if)#tunnel destination 192.168.1.1

  R3(config-if)#exit

  R3(config)#ip route 0.0.0.0 0.0.0.0 172.16.0.1

  GRE检验

  1、ping通GRE隧道对端

  GRE配置

  2、端口信息

 GRE配置

     文章来源:http://ljclee.blog.51cto.com/9538192/1607141

上一篇:安卓防火墙 PS DroidWall

下一篇:上海交大打造安全可靠的校园IDC网络