Procedure
Step 1 Run the debugging tunnel keepalive command in the user view to enable the keepalive
debugging for the GRE tunnel.
----End
2.7 Configuration Examples
This section provides several configuration examples of GRE.
2.7.1 Example for Configuring Static Routes on the GRE Tunnel
2.7.2 Example for Configuring the Dynamic Routing Protocol on the GRE Tunnel
2.7.3 Example for Configuring the CE to Access a VPN Through a GRE Tunnel of the Public
Network
2.7.4 Example for Configuring the Keepalive Function for GRE
2.7.1 Example for Configuring Static Routes on the GRE Tunnel
Networking Requirements
As shown in Figure 2-5, S9300-A, S9300-B, and S9300-C are on the VPN backbone network.
OSPF runs among the S9300s.
GRE is used between S9300-A and S9300-C to implement the interworking between PC1 and
PC2.
PC1 and PC2 use S9300-A and S9300-C as their default gateways.
Figure 2-5 Networking diagram for configuring static routes
S9300-A S9300-C
PC1
10.1.1.1/24
PC2
10.2.1.1/24
GE1/0/0GE1/0/0
GE2/0/0 GE2/0/0
Tunnel7/0/0
40.1.1.1/24
S9300-B
GE2/0/0
Tunnel7/0/0
40.1.1.2/24
GE1/0/0
S9300
Interface VLANIF interface IP address
S9300-A GigabitEthernet1/0/0 VLANIF 10 20.1.1.1/24
Quidway S9300 Terabit Routing Switch
Configuration Guide - VPN 2 GRE Configuration
Issue 03 (2009-08-20) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
2-15