348
Step Command Remarks
tunnel interface.
4. Configure a source address
or source interface for the
tunnel interface.
source
{ ip-address |
interface-type interface-number }
By default, no source address or
interface is configured for a tunnel
interface.
If you configure a source address
for a tunnel interface, the tunnel
interface uses the source address
as the source address of the
encapsulated packets.
If you configure a source interface
for a tunnel interface, the tunnel
interface uses the primary IP
address of the source interface as
the source address of the
encapsulated packets.
5. Configure a destination
address for the tunnel
interface.
destination
ip-address
By default, no destination address
is configured for a tunnel
interface.
The destination address is the
address of the physical interface
that the tunnel remote end uses to
receive packets from the GRE
tunnel.
The tunnel local end uses this
address as the destination
address of the encapsulated
packets.
6. (Optional.) Enable GRE
keepalive, and set the
keepalive interval and
keepalive number.
keepalive
[ interval [ times ] ]
By default, GRE keepalive is
disabled.
7. (Optional.) Enable GRE
checksum.
gre checksum
By default, GRE checksum is
disabled.
8. (Optional.) Configure a GRE
key for the GRE tunnel
interface.
gre key
key
By default, no GRE key is
configured for a GRE tunnel
interface.
The two ends of a GRE tunnel
must have the same key or both
have no key.
9. (Optional.) Set the DF bit for
encapsulated packets.
tunnel dfbit enable
By default, the DF bit is not set,
allowing encapsulated packets to
be fragmented.
10. Return to system view.
quit
N/A
11. (Optional.) Configure the
device to discard IPv6
packets with
IPv4-compatible IPv6
addresses.
tunnel discard
ipv4-compatible-packet
By default, the device does not
discard such IPv6 packets.