interface GigabitEthernet2/0/0
port hybrid pvid vlan 60
port hybrid untagged vlan 60
#
return
2.7.4 Example for Configuring the Keepalive Function for GRE
Networking Requirements
As shown in Figure 2-9, Switch A and Switch B are configured with the GRE protocol. The
two ends of the GRE tunnel need be configured with the Keepalive function.
Figure 2-9 Networking diagram of configuring the Keepalive function on two ends of a GRE
tunnel
Internet
GRE tunnel
SwitchA
SwitchB
GE1/0/0
GE1/0/0
Tunnel1/0/0
40.1.1.1/24
Tunnel1/0/0
40.1.1.2/24
Device
Interface VLANIF Interface IP Address
Switch A GigabitEthernet1/0/0 VLANIF 10 20.1.1.1/24
Tunnel1/0/0 - 40.1.1.1/24
Switch B GigabitEthernet1/0/0 VLANIF 20 30.1.1.2/24
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
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.
92