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

Page 198

Advertising
background image

15-41

# Configure the source address for interface Tunnel 1.

[SwitchB-Tunnel1] source vlan-interface 101

# Configure the destination address for interface Tunnel 1.

[SwitchB-Tunnel1] destination 1.1.1.1

[SwitchB-Tunnel1] quit

# Create service loopback group 1, setting the service type to tunnel.

[SwitchB] service-loopback group 1 type tunnel

# Add interfaceGigabitEthernet 2/0/3 to service loopback group 1.

[SwitchB] interface GigabitEthernet 2/0/3

[SwitchB-GigabitEthernet2/0/3] undo stp enable

[SwitchB-GigabitEthernet2/0/3] port service-loopback group 1

# Apply service loopback group 1 to the tunnel in tunnel interface view.

[SwitchB-GigabitEthernet2/0/3] quit

[SwitchB] interface tunnel 1

[SwitchB-Tunnel1] service-loopback-group 1

[SwitchB-Tunnel1] quit

# Configure a static route from Switch B through interface Tunnel 1 to Group 1.

[SwitchB] ip route-static 10.1.1.0 255.255.255.0 Tunnel 1

Configuring a GRE over IPv6 Tunnel

Only EB cards and SD cards support the GRE over IPv6 Tunnel.

Configuration Prerequisites

Interfaces on a device, such as VLAN interfaces, and loopback interfaces, are configured with IPv6

addresses and can communicate. These interfaces can serve as the source of a virtual tunnel

interface to ensure the reachability of the destination address.

Configuration Procedure

Follow these steps to configure a GRE over IPv6 tunnel:

To do…

Use the command…

Remarks

Enter system view

system-view

Enable the IPv6 packet forwarding

function

ipv6

Required

Disabled by default

Create a tunnel interface and enter

tunnel interface view

interface tunnel interface-number

Required

By default, there is no tunnel

interface on a device.

Advertising