peer-address source-address

Function

The peer-address source-address command configures the peer and local IP addresses of an E-Trunk.

The undo peer-address source-address command deletes the peer and local IP addresses of an E-Trunk.

By default, no peer or local IP address of an E-Trunk is configured.

Format

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

undo peer-address

Parameters

Parameter Description Value
peer-ip-address

Specifies the peer IP address.

The value is in the dotted decimal format.

source-ip-address

Specifies the local IP address.

The value is in the dotted decimal format.

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

Two devices in an E-Trunk exchange E-Trunk packets to negotiate their master/slave status. To allow the devices to exchange negotiation packets, run the peer-address source-address command to configure the IP addresses for the local and peer devices in an E-Trunk. The two IP addresses are peers for each other. For example, if an E-Trunk is created between Device A with IP address 1.1.1.1 and Device B with IP address 2.2.2.2, the peer IP address of Device A is 2.2.2.2, and the peer IP address of Device B is 1.1.1.1.

Precautions

Change the local and peer IP addresses, neither or both. Otherwise, E-Trunk packets are discarded.

It is recommended that you configure the IP addresses for the local and peer devices in an E-Trunk as loopback interface addresses.

Example

# Set the peer IP address of an E-Trunk to 2.2.2.2 and the local IP address to 1.1.1.1.
<HUAWEI> system-view
[~HUAWEI] e-trunk 1
[*HUAWEI-e-trunk-1] peer-address 2.2.2.2 source-address 1.1.1.1
# Set an E-Trunk's peer IP address to 2.2.2.2, local IP address to 1.1.1.1, and VPN instance to vpn1.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpn1
[*HUAWEI-vpn-instance-vpn1] ipv4-family
[*HUAWEI-vpn-instance-vpn1-af-ipv4] quit
[*HUAWEI-vpn-instance-vpn1] quit
[*HUAWEI] e-trunk 1
[*HUAWEI-e-trunk-1] peer-address 2.2.2.2 source-address 1.1.1.1 vpn-instance vpn1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >