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

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

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).
IPv6 Transition Technology Configuration Commands

IPv6 Transition Technology Configuration Commands

NOTE:

The CE6810LI and CE6880EI do not support IPv6 Transition Technology.

destination

Function

The destination command specifies the destination IP address of a tunnel interface.

The undo destination command deletes the destination IP address of a tunnel interface.

By default, no destination address is configured.

Format

destination dest-ip-address

undo destination [ dest-ip-address ]

NOTE:

The undo destination command does not support dest-ip-address if the tunnel protocol on a tunnel interface is ipv6-ipv4.

Parameters

Parameter Description Value
dest-ip-address Specifies the destination IP address of a tunnel interface.
  • For a GRE or IPv6 over IPv4 tunnel, the destination address is the IP address of the remote tunnel interface that actually receives packets.
  • For an MPLS TE tunnel, the destination address is usually set to the LSR ID of the egress.
The value is in dotted decimal notation.

Views

Tunnel interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When configuring a GRE, manual IPv6 over IPv4 tunnel, create a tunnel interface. After a tunnel interface is created, run the destination command to specify the destination IP address for the tunnel interface.

Prerequisites

A tunnel interface has been created using the interface tunnel command, and the encapsulation mode is set using the tunnel-protocol command.

Precautions

On the IPv6 over IPv4 tunnel, the destination address of the local tunnel interface is the source address of the remote tunnel interface by the source command, and the source address of the local tunnel interface is the destination address of the remote tunnel interface.

Example

# Set the destination address of the manual IPv6 over IPv4 tunnel Tunnel 2 to 10.1.1.1.

<HUAWEI> system-view
[~HUAWEI] interface tunnel 2
[*HUAWEI-Tunnel2] tunnel-protocol ipv6-ipv4 
[*HUAWEI-Tunnel2] destination 10.1.1.1

interface tunnel

Function

The interface tunnel command creates a tunnel interface.

The undo interface tunnel command deletes the configured tunnel interface.

By default, no tunnel interface is configured.

Format

interface tunnel interface-number

undo interface tunnel interface-number

Parameters

Parameter

Description

Value

interface-number

Specifies the number of the tunnel interface.

  • CE5800: The value is an integer that ranges from 0 to 255.

  • CE6800 (excluding CE6860EI and CE6870EI): The value is an integer that ranges from 0 to 510.

  • CE6860EI: The value is an integer that ranges from 0 to 511.

  • CE6870EI: The value is an integer that ranges from 0 to 2047.

  • CE7800 (excluding CE7850EI): The value is an integer that ranges from 0 to 510.

  • CE7850EI: The value is an integer that ranges from 0 to 511.

  • CE8800: The value is an integer that ranges from 0 to 511.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To forward data over a tunnel, ensure that the tunnel has been created. The system supports the following types of tunnels:
  • GRE

  • IPv6 over IPv4 manual tunnel

  • 6to4 tunnel

Precautions

After a tunnel interface is created, you need to configure an IP address and encapsulation type for the tunnel interface.

The tunnel-protocol command configures an encapsulation protocol for the tunnel interface. Then basic configurations are performed based on the encapsulation protocol:
  • On the GRE or IPv6 over IPv4 manual tunnel, run the source and destination commands.
  • On the 6to4 tunnel, run the source command.

Tunnel interface numbers are valid on the local device only. You can configure different numbers for the tunnel interfaces on the two ends.

Example

# Create a tunnel interface.

<HUAWEI> system-view
[~HUAWEI] interface tunnel 1
[*HUAWEI-Tunnel1]

service type tunnel

Function

The service type tunnel command enables service loopback on an Eth-Trunk interface to loop service packets back to tunnel interfaces.

The undo service type tunnel command disables service loopback on an Eth-Trunk interface.

By default, service loopback is disabled on an Eth-Trunk interface.

NOTE:

CE6870EI and CE6880EI do not support this command.

Format

service type tunnel

undo service type tunnel

Parameters

None

Views

Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

To forward packets using tunnel interfaces, you need to bind the tunnel interfaces to an Eth-Trunk interface. Before binding the tunnel interfaces to the Eth-Trunk interface, enable service loopback on the Eth-Trunk interface to loop service packets back to tunnel interfaces.

After the service loopback function is enabled on an Eth-Trunk interface, the physical status and protocol status of all Eth-Trunk member interfaces that are working normally are always in Up state.

NOTE:
After running the service type tunnel command to enable service loopbackbeing, an Eth-Trunk interface can only be used to loop service packets back to tunnel interfaces.
  • When member interfaces of an Eth-Trunk are on leaf switches in a super virtual fabric (SVF) system, service loopback cannot be enabled on the Eth-Trunk.
  • When service loopback is enabled on an Eth-Trunk, interfaces on leaf switches in an SVF system cannot be added to the Eth-Trunk.

Example

# Enable service loopback on the interface Eth-Trunk 0.

<HUAWEI> system-view
[~HUAWEI] interface eth-trunk 0
[*HUAWEI-Eth-Trunk0] service type tunnel

source

Function

The source command configures the source address or source interface of the tunnel.

The undo source command deletes the configured source address or source interface.

The source address and source interface of a tunnel are not specified by default.

Format

source { source-ip-address | interface-type interface-number }

undo source [ source-ip-address | interface-type interface-number ]

NOTE:

The command does not support source-ip-address and interface-type interface-number if the tunnel protocol on a tunnel interface is ipv6-ipv4.

Parameters

Parameter

Description

Value

source-ip-address

Specifies the source address of a tunnel interface.

The value is in dotted decimal notation.

interface-type interface-number

Specifies the type and the number of the source interface of the tunnel.

-

Views

Tunnel interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When configuring a tunnel, you must create a tunnel interface. After a tunnel interface is created, run the source command to specify the source IP address for the tunnel interface.

Prerequisites

A tunnel interface has been created using the interface tunnel command, and the encapsulation mode is set using the tunnel-protocol command.

Precautions

Two tunnel interfaces with the same source address and destination address cannot be configured simultaneously.

You can configure an Ethernet interface working in Layer 3 mode as the source tunnel interface.

IPv6 over IPv4 and GRE tunnels are bidirectional tunnels. The source address of the local tunnel interface is the destination address of the remote tunnel interface by the destination command, and the destination address of the local tunnel interface is the source address of the remote tunnel interface.

Example

# Set the tunnel type of Tunnel1 to IPv6 over IPv4 manual tunnel and configure the source IP address of Tunnel1 as 10.1.1.1.
<HUAWEI> system-view
[~HUAWEI] interface tunnel 1
[*HUAWEI-Tunnel1] tunnel-protocol ipv6-ipv4
[*HUAWEI-Tunnel1] source 10.1.1.1

tunnel-protocol

Function

The tunnel-protocol command configures the tunnel protocol on a tunnel interface.

The undo tunnel-protocol command restores the tunnel protocol to the default configuration.

By default, no tunnel protocol is used on a tunnel interface.

NOTE:

CE6810LI does not support this command.

Format

tunnel-protocol { gre | ipv6-ipv4 [ 6to4 ] | none }

undo tunnel-protocol

NOTE:

CE6870EI does not support 6to4 tunnel.

Parameters

Parameter Description Value
gre

Indicates that the GRE tunnel protocol is configured on a tunnel interface.

-
ipv6-ipv4

Configures the tunnel protocol of the tunnel interface as ipv6-ipv4 and uses a manual IPv6 over IPv4 tunnel.

-
ipv6-ipv4 6to4

Indicates that the IPv6 to IPv4 tunnel protocol is configured on a tunnel interface using 6to4.

-
none

Indicates that no tunnel protocol is configured on a tunnel interface.

-

Views

Tunnel interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After creating a tunnel interface using the interface tunnel command, run the tunnel-protocol command to configure the tunnel encapsulation mode for the tunnel interface.

The following tunnel encapsulation modes are available:
  • GRE: encapsulates packets of some network layer protocols such as IP or IPX to enable these encapsulated packets to be transmitted on networks running other protocols such as IP.
  • IPv6-IPv4: creates tunnels on the IPv4 networks to connect IPv6 isolated sites so that IPv6 packets can be transmitted on IPv4 networks.

Precautions

  • The none mode indicates the initial configuration, that is, no tunnel encapsulation mode is configured. In practice, you must select another tunnel encapsulation mode.
  • You must configure the tunnel encapsulation mode before setting the source IP address or other parameters for a tunnel interface. Changing the encapsulation mode of a tunnel interface deletes other parameters of the tunnel interface.
  • In IPv6 over IPv4 manual tunnel mode and 6to4 tunnel mode, the VPN scenario is not supported.

Example

# Set the tunnel encapsulation mode of Tunnel2 to ipv6-ipv4.
<HUAWEI> system-view
[~HUAWEI] interface tunnel 2
[*HUAWEI-Tunnel2] tunnel-protocol ipv6-ipv4
Related Topics
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 49967

Downloads: 336

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