peer-ipv6 source-ipv6

Function

The peer-ipv6 source-ipv6 command configures local and peer IPv6 addresses for an E-Trunk.

The undo peer-ipv6 command deletes the local and peer IPv6 addresses of an E-Trunk.

By default, no local or peer IPv6 address is configured for an E-Trunk.

Format

peer-ipv6 peer-ipv6-address source-ipv6 source-ipv6-address [ vpn-instance vpn-instance-name ]

undo peer-ipv6 [ peer-ipv6-address source-ipv6 source-ipv6-address ]

Parameters

Parameter Description Value
peer-ipv6-address

Specifies a peer IPv6 address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

source-ipv6-address

Specifies a local IPv6 address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

vpn-instance vpn-instance-name

Specifies the name of a VPN instance.

Specify this parameter when an E-Trunk is required for a VPN.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

Views

E-Trunk view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
etrunk write

Usage Guidelines

Usage Scenario

To allow two devices (for example, Device A and Device B) to exchange E-Trunk packets for master/slave status negotiation, run the peer-ipv6 source-ipv6 command to configure local and peer IPv6 addresses for an E-Trunk, allowing the devices to set up an E-Trunk connection. For example, E-Trunk needs to be set up for device A and device B,source-ipv6-address for Device A must be the same as peer-ipv6-address for Device B. peer-ipv6-address for Device A must be the same as source-ipv6-address for Device B.

Precautions

If the local or peer IP address of an E-Trunk needs to be changed, change it on both the local and peer devices. Otherwise, E-Trunk packets are discarded.

Using the IP addresses of loopback interfaces as the local and peer devices of an E-Trunk is recommended.

Example

# Set an E-Trunk's peer IPv6 address to 2001:db8::1, local IPv6 address to 2001:db8::2, and VPN instance to vpn1.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpn1
[*HUAWEI-vpn-instance-vpn1] ipv6-family
[*HUAWEI-vpn-instance-vpn1-af-ipv6] quit
[*HUAWEI-vpn-instance-vpn1] quit
[*HUAWEI] e-trunk 1
[*HUAWEI-e-trunk-1] peer-ipv6 2001:db8::1 source-ipv6 2001:db8::2 vpn-instance vpn1
# Set the peer and local IPv6 addresses to 2001:db8::1 and 2001:db8::2, respectively, for an E-Trunk.
<HUAWEI> system-view
[~HUAWEI] e-trunk 1
[*HUAWEI-e-trunk-1] peer-ipv6 2001:db8::1 source-ipv6 2001:db8::2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >