Context
Do as follows on switchs on the two ends of a tunnel:
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
interface tunnel interface-number
A tunnel interface is created and the tunnel interface view is displayed.
Step 3 Run:
tunnel-protocol gre
The tunnel is encapsulated with GRE.
Step 4 Run:
source { source-ip-address | interface-type interface-number }
The source address or source interface of the tunnel is configured.
NOTE
The source interface of a GRE tunnel cannot be configured as the management network port, and the source
address of the tunnel cannot be configured as the IP address of the management network port.
Step 5 Run:
destination [ vpn-instance vpn-instance-name ] ip-address
The destination address of the tunnel is configured.
After a tunnel interface is created, you need to specify the source address or source interface and
destination address of the tunnel. The source address is the IP address of the loopback interface
that sends GRE packets, whereas the destination address is the IP address of the loopback
interface that receives the GRE packets.
Step 6 (Optional) Run:
mtu mtu
The Maximum Transmission Unit (MTU) of the tunnel interface is modified.
The new MTU takes effect only after you run the shutdown command and then the undo
shutdown command on the interface.
Step 7 Choose one of the following commands to configure the IP address of the tunnel interface.
l Run the ip address ip-address { mask | mask-length } [ sub ] command to configure the IP
address of the tunnel interface.
l Run the ip address unnumbered interface interface-type interface-number command to
configure IP unnumbered for the tunnel interface.
To support dynamic routing protocols on a tunnel, you must configure a network address for the
tunnel interface. The network address of the tunnel interface may not be a public address, but
should be in the same network segment on both ends of the tunnel.
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.
62