2.7.4 Example for Configuring the Keepalive Function for GRE
Networking Requirements
As shown in Figure 2-8, S9300 A and S9300 B are configured with the GRE protocol. The two
ends of the GRE tunnel need be configured with the Keepalive function.
Figure 2-8 Networking diagram of configuring the Keepalive function on two ends of a GRE
tunnel
Internet
GRE tunnel
S9300- A
S9300- B
GE1/0/0
GE1/0/0
Tunnel1/0/0
40.1.1.1/24
Tunnel1/0/0
40.1.1.2/24
S9300 Interface VLANIF Interface IP Address
S9300-A GigabitEthernet1/0/0 VLANIF 10 20.1.1.1/24
Tunnel1/0/0 - 40.1.1.1/24
S9300-B GigabitEthernet1/0/0 VLANIF 20 30.1.1.2/30
Tunnel1/0/0 - 40.1.1.2/24
Configuration Roadmap
To enable the Keepalive function on one end of the GRE tunnel, run the keepalive command in
the tunnel interface view on the end.
TIP
If the Keepalive function is enabled on the source end, the forwarding function is obligatory, and the
Keepalive function is optional for the destination end.
Data Preparation
To complete the configuration, you need the following data:
l Data for configuring the routing protocol for the backbone network
l Source address and destination address of the GRE tunnel
l Interval for sending Keepalive messages
l Parameters of unreachable timer
Procedure
Step 1 Configure S9300-A and S9300-B to implement the interworking between the two devices.
The detailed procedures are not mentioned here.
Step 2 Configure a tunnel on S9300-A and enable the Keepalive function.
2 GRE Configuration
Quidway S9300 Terabit Routing Switch
Configuration Guide - VPN
2-32 Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 03 (2009-08-20)