Procedure
Step 1
Configure Switch A and Switch B to implement the interworking between the two devices.
The detailed procedures are not mentioned here.
Step 2
Configure a tunnel on Switch A and enable the Keepalive function.
<SwitchA>
system-view
[SwitchA]
interface tunnel 1/0/0
[SwitchA-Tunnel1/0/0]
ip address 40.1.1.1 255.255.255.0
[SwitchA-Tunnel1/0/0]
tunnel-protocol gre
[SwitchA-Tunnel1/0/0]
source 20.1.1.1
[SwitchA-Tunnel1/0/0]
destination 30.1.1.2
[SwitchA-Tunnel1/0/0]
keepalive period 20 retry-times 3
[SwitchA-Tunnel1/0/0]
quit
Step 3
Configure a tunnel on Switch B and enable the Keepalive function.
<SwitchB>
system-view
[SwitchB]
interface tunnel 1/0/0
[SwitchB-Tunnel1/0/0]
ip address 40.1.1.2 255.255.255.0
[SwitchB-Tunnel1/0/0]
tunnel-protocol gre
[SwitchB-Tunnel1/0/0]
source 30.1.1.2
[SwitchB-Tunnel1/0/0]
destination 20.1.1.1
[SwitchB-Tunnel1/0/0]
keepalive period 20 retry-times 3
[SwitchB-Tunnel1/0/0]
quit
Step 4
Verify the configuration.
# The tunnel interface on Switch A can successfully ping the tunnel interface on Switch B.
<SwitchA>
ping -a 40.1.1.1 40.1.1.2
PING 40.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 40.1.1.2: bytes=56 Sequence=1 ttl=255 time=9 ms
Reply from 40.1.1.2: bytes=56 Sequence=2 ttl=255 time=7 ms
Reply from 40.1.1.2: bytes=56 Sequence=3 ttl=255 time=7 ms
Reply from 40.1.1.2: bytes=56 Sequence=4 ttl=255 time=7 ms
Reply from 40.1.1.2: bytes=56 Sequence=5 ttl=255 time=7 ms
--- 40.1.1.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 7/7/9 ms
# Enable the debugging of the Keepalive messages on Switch A and view information about the
Keepalive messages.
<SwitchA>
terminal monitor
<SwitchA>
terminal debugging
<SwitchA>
debugging tunnel keepalive
Oct 26 2008 20:18:54.860.1 SwitchA TUNNEL/7/debug:GRE_KEEP:Judge keepalive fin
ished. Received keepalive response packet from peer router.
Oct 26 2008 20:18:54.860.2 SwitchA TUNNEL/7/debug:GRE_FWD: Receive the respons
e keepalive packet on mainboard successfully, keepalive finished.
Oct 26 2008 20:19:15.340.1 SwitchA TUNNEL/7/debug:GRE_KEEP:Judge keepalive fin
ished. Received keepalive response packet from peer router.
Oct 26 2008 20:19:15.340.2 SwitchA TUNNEL/7/debug:GRE_FWD: Receive the respons
e keepalive packet on mainboard successfully, keepalive finished.
----End
Configuration Files
l
Configuration file of Switch A
#
sysname SwitchA
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN
2 GRE Configuration
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
93