
tunnel-protocol
gre
The tunnel is encapsulated as a GRE tunnel.
Step 4
Run:
source
{
source-ip-address
|
interface-type
interface-number
}
The source address or source interface of the tunnel interface is configured.
NOTE
The virtual IP address of the VRRP backup group can be configured as the source address of the GRE
tunnel.
The source interface of the tunnel cannot be the interface of the tunnel, but can be specified as
the interface of another tunnel.
The source address of the tunnel specified on the PE is identical with the destination address of
the tunnel specified on the CE. The destination address of the tunnel specified on the PE is
identical with the source address of the tunnel specified on the CE.
Step 5
Run:
destination
[
vpn-instance
vpn-instance-name
]
ip-address
The destination address of the tunnel interface is configured.
If the tunnel passes through another VPN, the parameter
vpn-instance
vpn-instance-name
need
to be specified. If the tunnel passes through the public network, the parameter is not required.
Step 6
(Optional) Run:
mtu
mtu
The MTU of the interface is modified. The new MTU takes effect only after you run the
shutdown
and the
undo shutdown
commands in succession 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.
----End
2.4.4 Binding the GRE Tunnel with the VPN to Which CE belongs
on PE
Bind the tunnel interface on the PE that connects the CE to a VPN instance. Then, the tunnel
interface becomes a VPN interface. The packets sent from the VPN interface are forwarded
based on forwarding information in the VPN instance.
Context
Do as follows on the PE.
Procedure
Step 1
Run:
system-view
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.
68