Configuring Eth-Trunk Interface Parameters

Eth-Trunk interfaces in manual load balancing mode working in Layer 2 and Layer 3 modes need to be configured with different parameters.

Procedure

  • Configure parameters for a Layer 2 Eth-Trunk interface.
    1. Run system-view

      The system view is displayed.

    2. Run interface eth-trunk trunk-id

      An Eth-Trunk interface is created and the Eth-Trunk interface view is displayed.

    3. Run portswitch

      The Eth-Trunk interface is switched to a Layer 2 interface.

    4. Perform one or more operations shown in Table 1 as needed.

      Table 1 Parameter for a Layer 2 Eth-Trunk Interface

      Parameter for a Layer 2 Eth-Trunk Interface

      Operation

      Maximum number of Up member links that determine the Eth-Trunk link bandwidth

      Run the max bandwidth-affected-linknumber link-number command.

      Minimum number of Up member links

      Run the least active-linknumber link-number command.

      An Eth-Trunk interface is Up as long as one member interface is Up.

      Minimum bandwidth configured for the member links that are Up on an Eth-Trunk interface

      Run the least active-bandwidth bandwidth command.

      NOTE:
      • Ensure that the least active-linknumber link-number command has not been run when you run the least active-bandwidth bandwidth command because the two commands are mutually exclusive.
      • The minimum bandwidth configured for both ends of an Eth-Trunk must be the same to prevent the Eth-Trunk interface from flapping.
      • After the minimum bandwidth is configured for the member links that are Up on an Eth-Trunk interface, do not run the max active-linknumber link-number command to configure the maximum number of active links. That is because the Eth-Trunk interface will go Down if the total bandwidth of the maximum number of active links is less than the minimum bandwidth.

      Load balancing mode

      Run the { load-balance { src-dst-mac | src-dst-ip | packet-all | symmetric-hash [ complement ] } command.

      Period that an Eth-Trunk interface waits before changing its state to Down

      Run the link-state down-delay-time delay-value command.

    5. Run commit

      The configuration is committed.

  • Configure parameters for a Layer 3 Eth-Trunk interface.
    1. Run system-view

      The system view is displayed.

    2. Run interface eth-trunk trunk-id

      An Eth-Trunk interface is created and the Eth-Trunk interface view is displayed.

    3. Perform one or more operations shown in Table 2 as needed.

      Table 2 Eth-Trunk interface parameters

      Parameter for a Layer 3 Eth-Trunk Interface

      Operation

      IP address of the Eth-Trunk interface

      Run the ip address ip-address { mask | mask-length } [ sub ] command.

      MAC address of the Eth-Trunk interface

      Run the mac-address mac-address command.

      MTU of the Eth-Trunk interface

      Run the mtu mtu command.

      NOTICE:
      • The MTUs of two directly-connected interfaces must be the same. After using the mtu mtu command to change the MTU of an interface, change the MTU of the directly-connected interface on another device to ensure that the MTUs of the two ends are the same. Otherwise, services may be interrupted.
      • If IPv6 runs on an Eth-Trunk interface, and the MTU set by using the mtu mtu command on the interface is smaller than 1280 bytes, IPv6 does not properly work on this interface. To prevent such a problem, set the MTU of the interface to a value greater than or equal to 1280 when IPv6 runs on the interface.

      Minimum number of Up member links

      Run the least active-linknumber link-number command.

      An Eth-Trunk interface is Up as long as one member interface is Up.

      Minimum bandwidth configured for the member links that are Up on an Eth-Trunk interface

      Run the least active-bandwidth bandwidth command.

      NOTE:
      • Ensure that the least active-linknumber link-number command has not been run when you run the least active-bandwidth bandwidth command because the two commands are mutually exclusive.
      • The minimum bandwidth configured for both ends of an Eth-Trunk must be the same to prevent the Eth-Trunk interface from flapping.
      • After the minimum bandwidth is configured for the member links that are Up on an Eth-Trunk interface, do not run the max active-linknumber link-number command to configure the maximum number of active links. That is because the Eth-Trunk interface will go Down if the total bandwidth of the maximum number of active links is less than the minimum bandwidth.
      NOTE:
      • Ensure that the least active-linknumber link-number command has not been run when you run the least active-bandwidth bandwidth command because the two commands are mutually exclusive.
      • The minimum bandwidth configured for both ends of an Eth-Trunk must be the same to prevent the Eth-Trunk interface from flapping.
      • After the minimum bandwidth is configured for the member links that are Up on an Eth-Trunk interface, do not run the max active-linknumber link-number command to configure the maximum number of active links. That is because the Eth-Trunk interface will go Down if the total bandwidth of the maximum number of active links is less than the minimum bandwidth.

      Load balancing mode

      Run the { load-balance { src-dst-mac | src-dst-ip | packet-all | symmetric-hash [ complement ] } command.

      Period that an Eth-Trunk interface waits before changing its state to Down

      Run the link-state down-delay-time delay-value command.

    4. Run commit

      The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >