beautypg.com

Configuring a gre over ipv6 tunnel, Configuration prerequisites – H3C Technologies H3C S10500 Series Switches User Manual

Page 196

background image

185

To do…

Use the command…

Remarks

Configure an IPv4 address for the
tunnel interface

ip address ip-address { mask |
mask-length }

Required
By default, a tunnel interface has

no IPv4 address.

Set the tunnel mode to GRE over
IPv4

tunnel-protocol gre

Optional
By default, the tunnel is a GRE over
IPv4 tunnel.
You must configure the same tunnel
mode on both ends of a tunnel.

Otherwise, packet delivery will

fail.

Configure the source address or
interface for the tunnel interface

source { ip-address | interface-type
interface-number
}

Required
By default, no source address or
interface is configured for a tunnel

interface.

Configure the destination address
for the tunnel interface

destination ip-address

Required
By default, no destination address
is configured for a tunnel interface.

Configure a route for packet
forwarding through the tunnel

See Layer 3—IP Routing
Configuration Guide
.

Required
Each end of the tunnel must have a
route (static or dynamic) through

the tunnel to the other end.

Return to system view

quit

Configure the device to discard the

IPv4-compatible IPv6 packets

tunnel discard

ipv4-compatible-packet

Optional
By default, the device does not

discard the IPv4-compatible IPv6
packets.

NOTE:

For information tunnel interfaces, more configuration commands in a tunnel interface, and the expedite
termination function, see the chapter “Tunneling configuration.”

For information about commands interface tunnel, tunnel-protocol, source, destination, and tunnel
discard ipv4-compatible-packet, see

Layer 3—IP Services Command Reference.

Configuring a GRE over IPv6 tunnel

Configuration prerequisites

On each of the peer devices, configure an IP address for the interface to be used as the source
interface of the tunnel interface (which can be a, for example, VLAN interface or loopback

interface), and make sure that this interface can normally communicate with the interface used as

the source interface of the tunnel interface on the peer device.

Create a service loopback group, specify its service type as tunnel, and add an available Layer 2
Ethernet port to the service loopback group. For more information about the service loopback group,

see Layer 2—LAN Switching Configuration Guide.