R1:
[r1]interface Tunnel 0/0/0
[r1-Tunnel0/0/0]tunnel-protocol gre
[r1-Tunnel0/0/0]source 200.1.1.2
[r1-Tunnel0/0/0]destination 222.3.3.3
[r1-Tunnel0/0/0]ip address 10.15.15.2 24
[r1]dis interface Tunnel 0/0/0 查看端口是否打开
[r1]rip
[r1-rip-1]version 2
[r1-rip-1]undo summary
[r1-rip-1]net 10.0.0.0
[r1]dis ip rout protocol rip 查看宣告路由是否学习成功
[r1]interface Tunnel 0/0/0
[r1-Tunnel0/0/0]keepalive
[r1-Tunnel0/0/0]gre key 123456 keepalive 加密认证
R4:
[r4]interface Tunnel 0/0/0
[r4-Tunnel0/0/0]tunnel-protocol gre
[r4-Tunnel0/0/0]source 222.3.3.3
[r4-Tunnel0/0/0]destination 200.1.1.2
[r4-Tunnel0/0/0]ip address 10.15.15.3 24
[r4]rip
[r4-rip-1]version 2
[r4-rip-1]undo sum
[r4-rip-1]undo summary
[r4-rip-1]net 10.0.0.0
[r4]interface Tunnel 0/0/0
[r4-Tunnel0/0/0]keepalive
[r4-Tunnel0/0/0]gre key 123456