- Table of Contents
-
- 04-Layer 3—IP Services Configuration Guide
- 00-Preface
- 01-ARP configuration
- 02-DHCPv6 configuration
- 03-DHCP configuration
- 04-IPv6 basics configuration
- 05-IP addressing configuration
- 06-IP performance optimization configuration
- 07-IP forwarding basics configuration
- 08-Tunneling configuration
- 09-DNS configuration
- Related Documents
-
Title | Size | Download |
---|---|---|
08-Tunneling configuration | 83.21 KB |
Contents
Supported tunneling technologies
Restrictions and guidelines: Tunnel interface configuration
Configuring a tunnel interface
About tunnel interface configuration
Tunnel interface configuration tasks at a glance
Restoring the default settings of the tunnel interface
Setting the statistics collection mode for tunneled traffic
Display and maintenance commands for tunnel interface configuration
Troubleshooting tunnel interface configuration
Configuring tunneling
This chapter describes tunnel interface configuration. For information about tunnel modes, see the subsequent chapters.
About tunneling
Tunneling encapsulates the packets of a network protocol within the packets of a second network protocol and transfers them over a virtual point-to-point connection. The virtual connection is called a tunnel. Packets are encapsulated at the tunnel source and de-encapsulated at the tunnel destination.
Supported tunneling technologies
Tunneling supports the following technologies:
· MPLS TE tunneling. For more information, see MPLS Configuration Guide.
Restrictions and guidelines: Tunnel interface configuration
When an active/standby switchover occurs or the standby MPU is removed, the tunnel interfaces configured on the active or standby MPU still exist. To delete a tunnel interface, use the undo interface tunnel command.
Do not specify the same tunnel source and destination addresses for different tunnels on the same device.
Configuring a tunnel interface
About tunnel interface configuration
Configure a tunnel interface (Layer 3 virtual interface) at both ends of a tunnel. The devices use the tunnel interface to identify, process, and send packets for the tunnel.
Tunnel interface configuration tasks at a glance
To configure a tunnel interface, perform the following tasks:
1. Creating a tunnel interface
2. (Optional.) Restoring the default settings of the tunnel interface
3. (Optional.) Setting the statistics collection mode for tunneled traffic
Creating a tunnel interface
1. Enter system view.
system-view
2. Create a tunnel interface, specify the tunnel mode, and enter tunnel interface view.
interface tunnel number mode { mpls-te }
For packet tunneling to succeed, the two ends of a tunnel must use the same tunnel mode.
3. Configure a destination address for the tunnel interface.
destination { ipv4-address | ipv6-address | dhcp-alloc interface-type interface-number }
By default, no destination address is configured for the tunnel interface.
The tunnel destination address must be the IP address of the receiving interface on the tunnel peer. It is used as the destination IP address of tunneled packets.
4. (Optional.) Configure a description for the interface.
description text
By default, the description for a tunnel interface is Tunnel number Interface.
5. (Optional.) Set the MTU of the tunnel interface.
mtu size
The default setting varies by device model.
6. (Optional.) Set the expected bandwidth for the tunnel interface.
bandwidth bandwidth-value
The default expected bandwidth (in kbps) is the interface maximum rate divided by 1000.
The expected bandwidth is an informational parameter used only by higher-layer protocols for calculation. You cannot adjust the actual bandwidth of an interface by using this command.
7. Bring up the tunnel interface.
undo shutdown
By default, a tunnel interface is not administratively shut down.
Restoring the default settings of the tunnel interface
Restrictions and guidelines
CAUTION: This operation might interrupt ongoing network services. Make sure you are fully aware of the impact of this operation when you perform it on a live network. |
This operation might fail to restore the default settings for some commands for reasons such as command dependencies or system restrictions. Use the display this command in interface view to identify these commands. Use their undo forms or follow the command reference to restore their default settings. If your restoration attempt still fails, follow the error message instructions to resolve the problem.
Procedure
1. Enter system view.
system-view
2. Enter tunnel interface view.
interface tunnel number
3. Restore the default settings of the tunnel interface.
default
Setting the statistics collection mode for tunneled traffic
About this task
The device provides the following statistics collection mode for tunneled traffic:
· Payload—In this mode, the device counts bytes in packets before the packets are encapsulated.
· Encapsulation—In this mode, the device counts bytes in the entire packets after the packets are encapsulated.
Procedure
1. Enter system view.
system-view
2. Set the statistics collection mode for tunneled traffic.
tunnel statistics-mode { encapsulation | payload }
By default, the payload mode is used.
Display and maintenance commands for tunnel interface configuration
Execute display commands in any view and reset commands in user view.
Task |
Command |
Display information about tunnel interfaces. |
display interface [ tunnel [ number ] ] [ brief [ description | down ] ] |
Clear statistics on tunnel interfaces. |
reset counters interface [ tunnel [ number ] ] |
Troubleshooting tunnel interface configuration
Tunnel interface not up
Symptom
A tunnel interface configured with related parameters such as tunnel source address, tunnel destination address, and tunnel mode cannot come up.
Analysis
The physical interface of the tunnel does not come up, or the tunnel destination is unreachable.
Solution
1. To resolve the problem:
¡ Use the display interface or display ipv6 interface command to verify that the physical interface of the tunnel is up. If the physical interface is down, check the network connection.
¡ Use the display ipv6 routing-table or display ip routing-table command to verify that the tunnel destination is reachable. If the route is not available, configure a route to reach the tunnel destination.
2. If the problem persists, contact H3C Support.