Configuring a tunnel interface, Basic ip forwarding on the device, Fib table – H3C Technologies H3C S12500-X Series Switches User Manual
Page 151
140
Tasks at a glance
Perform one of the following tasks:
•
Configuring an IPv6 over IPv4 tunnel:
{
Configuring an IPv6 over IPv4 manual tunnel
{
{
•
Configuring an IPv4 over IPv4 tunnel
•
Configuring an IPv4 over IPv6 tunnel
•
Configuring an IPv6 over IPv6 tunnel
Configuring a tunnel interface
Configure a Layer 3 virtual tunnel interface on each device on a tunnel so that devices at both ends can
send, identify, and process packets from the tunnel.
Follow these guidelines when you configure a tunnel interface:
•
The device cannot directly route a tunneled packet based on its destination address. The packet is
sent to a tunnel-type service loopback group, which then delivers the packet to the forwarding
module for Layer 3 forwarding. You must configure a tunnel-type service loopback group.
Otherwise, the tunnel interface will fail to forward and receive packets. For information about
service loopback group, see Layer 2—LAN Switching Configuration Guide.
•
When an active/standby switchover occurs or the standby card is removed, the tunnel interfaces
configured on the active or standby card still exist. To delete a tunnel interface, use the undo
interface tunnel command.
To configure a tunnel interface:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Create a tunnel interface,
specify the tunnel mode, and
enter tunnel interface view.
interface tunnel number mode
{ gre [ ipv6 ] | ipv4-ipv4 | ipv6 |
ipv6-ipv4 [ 6to4 | isatap ] |
mpls-te }
By default, no tunnel interface is
created.
When you create a new tunnel
interface, you must specify the tunnel
mode. When you enter the view of an
existing tunnel interface, you do not
need to specify the tunnel mode.
The two ends of a tunnel must use the
same tunnel mode. Otherwise,
packet tunneling will fail.
3.
(Optional.) Configure a
description for the interface. description text
By default, the description of a tunnel
interface is Tunnel number Interface.
4.
(Optional.) Specify a service
card for forwarding the
traffic on the tunnel interface
(in standalone mode).
service slot slot-number
By default, no service card is
specified.