H3C Technologies H3C S7500E Series Switches User Manual

Page 181

Advertising
background image

15-24

To do…

Use the command…

Remarks

Configure an IPv4 address

for the tunnel interface

ip address ip-address { mask |

mask-length } [ sub ]

Required

By default, no IPv4 address is

configured for the tunnel interface.

Specify the IPv4 over IPv4

tunnel mode

tunnel-protocol ipv4-ipv4

Optional

By default, the tunnel is a GRE over

IPv4 tunnel. The same tunnel mode

should be configured at both ends of the

tunnel. Otherwise, packet delivery will

fail.

Configure a 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 the tunnel.

Configure a destination

address for the tunnel

interface

destination ip-address

Required

By default, no destination address is

configured for the tunnel.

z

To encapsulate and forward IPv6 packets whose destination address does not belong to the

network segment where the receiving tunnel interface resides, you need to configure a static route

or dynamic routing for forwarding those packets through this tunnel interface. If you configure a

static route to that destination IPv6 address, specify this tunnel interface as the outbound interface,

or the peer tunnel interface as the next hop. A similar configuration needs to be performed at the

other tunnel end. If you configure dynamic routing at both ends, enable the dynamic routing

protocol on both tunnel interfaces. For the detailed configuration, refer to Static Routing

Configuration or other routing protocol configurations in the Layer 3 - IP Routing Configuration

Guide..

z

The IPv4 address and the destination address of a tunnel interface cannot be in the same network

segment.

z

The destination address of a route with a tunnel interface as the egress interface and the

destination address of the tunnel interface must not be in the same network segment.

z

Two or more tunnel interfaces using the same encapsulation protocol must have different source

and destination addresses.

z

If you specify a source interface instead of a source address for the tunnel, the source address of

the tunnel is the primary IP address of the source interface.

Advertising