325
Step Command Remarks
4. Configure a source IPv6
address or source interface
for the tunnel interface.
source
{ ipv6-address |
interface-type
interface-number }
By default, no source IPv6 address or
interface is configured for a tunnel
interface.
If you configure a source IPv6 address for
a tunnel interface, the tunnel interface
uses the source IPv6 address as the
source IPv6 address of the encapsulated
packets.
If you configure a source interface for a
tunnel interface, the tunnel interface uses
the IPv6 address of the source interface
as the source IPv6 address of the
encapsulated packets.
5. Configure a destination IPv6
address for the tunnel
interface.
destination
ipv6-address
By default, no destination IPv6 address is
configured for a tunnel interface.
The destination IPv6 address is the IPv6
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 IPv6 address of the
encapsulated packets.
6. (Optional.) Enable GRE
checksum.
gre checksum
By default, GRE checksum is disabled.
7. (Optional.) Configure a GRE
key for the tunnel interface.
gre key
key-number
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.
8. Return to system view.
quit
N/A
9. (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.
Displaying and maintaining GRE
Execute display commands in any view and reset commands in user view.
Task Command Remarks
Display information about
tunnel interfaces.
display interface
[
tunnel
[ number ] ] [
brief
[
description
|
down
] ]
For more information about the
commands,
see Layer 3—IP
Services Command Reference.
Display IPv6 information
about tunnel interface.
display ipv6 interface
[
tunnel
[ number ] ] [
brief
]
For more information about this
command,
see Layer 3—IP
Services Command Reference.
Clear tunnel interface
statistics.
reset counters interface
[
tunnel
[ number ] ]
For more information about this
command, see Layer 3—IP
Services Command Reference.