No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

AR500, AR510, and AR530 V200R007

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
IPv4 over IPv6 Tunnel Configuration Commands

IPv4 over IPv6 Tunnel Configuration Commands

NOTE:

Among the AR500 series routers, the AR502G-L-D-H, AR502GR-L-D-H do not support the IPv4 over IPv6 tunnel function.

The AR510 series routers do not support the IPv4 over IPv6 tunnel function.

display interface tunnel

Function

The display interface tunnel command displays details of the tunnel interface.

Format

display interface tunnel [ interface-number | main ]

Parameters

Parameter

Description

Value

interface-number

Specifies the number of the tunnel interface.

If this parameter is not specified, the command displays information about all tunnel interfaces.

The value must be the number a tunnel interface that has been created.

main Displays status and traffic statistics about main interface. The interface has no sub-interfaces. Status and traffic statistics about the interface are displayed whether you specify the main parameter or not.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display the details of the tunnel interface.

<Huawei> display interface tunnel 0/0/2
Tunnel0/0/2 current state : UP
Line protocol current state : UP
Description:HUAWEI, AR Series, Tunnel0/0/2 Interface
Route Port,The Maximum Transmit Unit is 1500
Internet protocol processing : disabled
Encapsulation is TUNNEL, loopback not set
Tunnel source 10.10.10.1 (GigabitEthernet0/0/1), destination 10.1.1.1
Tunnel protocol/transport GRE/IP, key disabled
keepalive disabled
Checksumming of packets disabled
Current system time: 2012-08-09 18:53:47
    300 seconds input rate 0 bits/sec, 0 packets/sec
    300 seconds output rate 0 bits/sec, 0 packets/sec
    15 seconds input rate 0 bits/sec, 0 packets/sec
    15 seconds output rate 0 bits/sec, 0 packets/sec
    0 packets input,  0 bytes
    0 input error
    0 packets output,  0 bytes
    0 output error
    Input bandwidth utilization  : 0%
    Output bandwidth utilization : 0%
Table 7-108  Description of the display interface tunnel command output

Item

Description

Tunnel0/0/2 current state

Physical layer status of the Tunnel0/0/2 interface:
  • UP: The interface is in normal state.

  • Administratively DOWN: The network administrator executes the shutdown command on the interface.

After a tunnel interface is created, its physical layer status is Up.

Line protocol current state

Link protocol status of the Tunnel0/0/2 interface:
  • UP: The link layer protocol of the tunnel interface works normally.

  • DOWN: The link layer protocol of the tunnel interface is abnormal.

Description

Description of the tunnel interface.

Route Port,The Maximum Transmit Unit is 1500

MTU of tunnel interfaces, which is 1500 bytes by default. Any packet larger than the MTU is fragmented before being sent. If non-fragmentation is configured, the packet is discarded.

Internet protocol processing: disabled

IP protocol is disabled.

Encapsulation is TUNNEL

Encapsulation type of packets on a tunnel interface.

Packet encapsulation protects a whole IP packet.

loopback not set

The tunnel interface does not support a loopback test.

Tunnel source 10.10.10.1 (GigabitEthernet0/0/1)

The source address of the tunnel is 10.10.10.1. That is, the IP address of the GigabitEthernet 0/0/1 interface sending packets at the source side is 10.10.10.1.

destination

Destination address of the tunnel.

Tunnel protocol/transport GRE/IP, key disabled

The tunnel encapsulation protocol is the GRE protocol, and the transport protocol is the IP protocol.

Encapsulation protocol types of a tunnel are as follows:

  • GRE: indicates Generic Routing Encapsulation.

  • IPSec: indicates tunnel mode of IPSec to protect data stream.

  • IPv6 over IPv4: encapsulates IPv6 packets into IPv4 packets.

  • IPv4 over IPv6: encapsulates IPv4 packets into IPv6 packets.

  • SVPN: encapsulates packets into SVPN packets.

  • none: indicates no encapsulation. This is the default mode of the tunnel interface.

key disabled: the key word recognition function of GRE is not enabled.

keepalive disabled

The keepalive function of GRE is not enabled.

Checksumming of packets disabled

The check sum function of GRE is not enabled.

300 seconds input rate 0 bits/sec, 0 packets/sec

Rate of bits and packets received on the interface in the last 300 seconds.

NOTE:

If the tunnel encapsulation protocol is SVPN, this field is not supported.

300 seconds output rate 0 bits/sec, 0 packets/sec

Rate of bits and packets sent through the interface in the last 300 seconds.

NOTE:

If the tunnel encapsulation protocol is SVPN, this field is not supported.

15 seconds input rate 0 bits/sec, 0 packets/sec

Rate of bits and packets received on the interface during the last query period.

15 seconds output rate 0 bits/sec, 0 packets/sec

Rate of bits and packets sent through the interface during the last query period.

0 packets input, 0 bytes

0 input error

Total packets and bytes received on the interface and the total number of defective packets.

0 packets output, 0 bytes

0 output error

Total packets and bytes sent through the interface and the total number of defective packets.

Input bandwidth utilization

Input bandwidth usage.

Output bandwidth utilization

Output bandwidth usage.

Related Topics

tunnel ipv4-ipv6 encapsulation-limit

Function

The tunnel ipv4-ipv6 encapsulation-limit command configures the maximum number of times that IPv6 encapsulation can be performed after an IPv4 packet is encapsulated the first time.

The undo tunnel ipv4-ipv6 encapsulation-limit command restores the default value.

By default, a maximum of four times of IPv6 encapsulation can be performed on embedded tunnel nodes.

Format

tunnel ipv4-ipv6 encapsulation-limit encapsulation-limit

undo tunnel ipv4-ipv6 encapsulation-limit

Parameters

Parameter Description Value
encapsulation-limit Specifies the maximum number of of times for performing IPv6 encapsulation on embedded tunnel nodes. The value is an integer that ranges from 0 to 255.

Views

System view, tunnel interface view

Default Level

2: Configuration level

Usage Guidelines

The tunnel encapsulation limit is the value of the tunnel encapsulation limit option carried in the destination option extension header in the IPv6 tunnel header.

  • If this command is configured in the tunnel interface view, it takes effect only on the current tunnel interface.

  • If this command is configured in the system view, it takes effect only on the mobile IPv6 network.

Before running the tunnel ipv4-ipv6 encapsulation-limit command in the tunnel interface view, run the tunnel-protocol ipv4-ipv6 command in the same view to set the tunnel mode to the IPv4 over IPv6 manual tunnel.

The configuration in the system view and the configuration in the tunnel interface view are independent of each other.

When Huawei devices communicate with non-Huawei devices, you must run the undo tunnel ipv4-ipv6 encapsulation-limit command to restores the default value.

Example

# Set the maximum number of times of IPv6 encapsulation to be performed on the embedded tunnel nodes of the specified IPv4 over IPv6 tunnel to 3.

<Huawei> system-view
[Huawei] interface tunnel 0/0/1
[Huawei-Tunnel0/0/1] tunnel-protocol ipv4-ipv6
[Huawei-Tunnel0/0/1] tunnel ipv4-ipv6 encapsulation-limit 3

# Set the maximum number of times of IPv6 encapsulation to be performed on the embedded tunnel nodes of all specified IPv4 over IPv6 tunnels to 3 on the local device.

<Huawei> system-view
[Huawei] tunnel ipv4-ipv6 encapsulation-limit 3

tunnel ipv4-ipv6 flow-label

Function

The tunnel ipv4-ipv6 flow-label command sets the flow label value.

The undo tunnel ipv4-ipv6 flow-label command restores the default flow label value.

The default flow label value is 0.

Format

tunnel ipv4-ipv6 flow-label label-value

undo tunnel ipv4-ipv6 flow-label

Parameters

Parameter Description Value
label-value Specifies the flow label value. The value is an integer that ranges from 0 to 1048575.

Views

Tunnel interface view, system view

Default Level

2: Configuration level

Usage Guidelines

The flow label value of the tunnel refers to the value specified in the flow label field in the IPv6 packet header on the inbound interface of the tunnel.

  • If this command is configured in the tunnel interface view, it takes effect only on the current tunnel interface.

  • If this command is configured in the system view, it takes effect only on the mobile IPv6 network.

Before running the tunnel ipv4-ipv6 flow-label command in the tunnel interface view, run the tunnel-protocol ipv4-ipv6 command in the same view to set the tunnel mode to the IPv4 over IPv6 manual tunnel.

The configuration in the system view and the configuration in the tunnel interface view are independent of each other.

Example

# Set the flow label value of a specified IPv4 over IPv6 tunnel to 10.

<Huawei> system-view
[Huawei] interface tunnel 0/0/1
[Huawei-Tunnel0/0/1] tunnel-protocol ipv4-ipv6
[Huawei-Tunnel0/0/1] tunnel ipv4-ipv6 flow-label 10

tunnel ipv4-ipv6 hop-limit

Function

The tunnel ipv4-ipv6 hop-limit command sets the hop limit.

The undo tunnel ipv4-ipv6 hop-limit command restores the hop limit to the default value.

By default, the hop limit is 64.

Format

tunnel ipv4-ipv6 hop-limit hop-limit

undo tunnel ipv4-ipv6 hop-limit

Parameters

Parameter Description Value
hop-limit Specifies the hop limit. The value is an integer that ranges from 1 to 255.

Views

Tunnel interface view, system view

Default Level

2: Configuration level

Usage Guidelines

Setting the tunnel hop limit can terminate the packet transmission when routing loops occur on the IPv6 tunnel. To make IPv6 tunnel packets reach the egress of the tunnel, the tunnel hop limit cannot be set too small.

  • If this command is configured in the tunnel interface view, it takes effect only on the current tunnel interface.

  • If this command is configured in the system view, it takes effect only on the mobile IPv6 network.

Before running the tunnel ipv4-ipv6 hop-limit command in the tunnel interface view, run the tunnel-protocol ipv4-ipv6 command in the same view to set the tunnel mode to the IPv4 over IPv6 manual tunnel.

The configuration in the system view and the configuration in the tunnel interface view are independent of each other.

Example

# Set the hop limit of the specified tunnel interface to 100.

<Huawei> system-view
[Huawei] interface tunnel 0/0/1
[Huawei-Tunnel0/0/1] tunnel-protocol ipv4-ipv6
[Huawei-Tunnel0/0/1] tunnel ipv4-ipv6 hop-limit 100

tunnel ipv4-ipv6 traffic-class

Function

The tunnel ipv4-ipv6 traffic-class command sets the traffic level of the IPv4 over IPv6 tunnel.

The undo tunnel ipv4-ipv6 traffic-class command restores the traffic level to the default value.

By default, the traffic level of the IPv4 over IPv6 tunnel is 0.

Format

tunnel ipv4-ipv6 traffic-class { original | class-value }

undo tunnel ipv4-ipv6 traffic-class

Parameters

Parameter Description Value
original Indicates that the value of the Traffic Class field in the IPv6 field of the IPv6 tunnel header uses the value in Traffic Class field of the original packet. The parameter is unavailable now. -
class-value Specifies the traffic level of the IPv4 over IPv6 tunnel. The value is an integer that ranges from 0 to 255.

Views

Tunnel interface view, system view

Default Level

2: Configuration level

Usage Guidelines

The traffic level of the IPv6 tunnel packets refers to the value of the traffic class field in the tunnel packet header of the ingress on the tunnel.

  • If this command is configured in the tunnel interface view, it takes effect only on the current tunnel interface.

  • If this command is configured in the system view, it takes effect only on the mobile IPv6 network.

Before running the tunnel ipv4-ipv6 traffic-class command in the tunnel interface view, run the tunnel-protocol ipv4-ipv6 command in the same view to set the tunnel mode to the IPv4 over IPv6 manual tunnel.

The configuration in the system view and the configuration in the tunnel interface view are independent of each other.

Example

# Set the traffic level of the IPv4 over IPv6 tunnel to 10.

<Huawei> system-view
[Huawei] interface tunnel 0/0/1
[Huawei-Tunnel0/0/1] tunnel-protocol ipv4-ipv6
[Huawei-Tunnel0/0/1] tunnel ipv4-ipv6 traffic-class 10
Translation
Download
Updated: 2019-02-18

Document ID: EDOC1000097293

Views: 35961

Downloads: 101

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next