< Home

Configuring an Eth-Trunk Subinterface

The FW allows you to configure subinterfaces for Eth-Trunk interfaces.

Procedure

  1. Access the system view.

    system-view

  2. Create an Eth-Trunk interface and access the Eth-Trunk interface view.

    interface eth-trunk trunk-id

  3. Return to the system view.

    quit

  4. Create an Eth-Trunk subinterface and access the Eth-Trunk subinterface view.

    interface eth-trunk trunk-id.subnumber

    subnumber specifies the number of an Eth-Trunk subinterface. The number ranges from 1 to 4096 on the FW. A maximum of 1024 subinterfaces can be created on each Eth-Trunk interface.

  5. Configure an IP address for the Eth-Trunk subinterface.

    • Configure an IPv4 address for the Eth-Trunk subinterface.

      To configure an IPv4 address for the Eth-Trunk subinterface, run the ip address ip-address { mask | mask-length } [ sub ] command.

    • Configure an IPv6 address for the Eth-Trunk subinterface.

      Configure an IPv6 address for the Eth-Trunk subinterface based on actual situations:

      • To configure an automatic link-local address for the subinterface, run the ipv6 address auto link-local command.
      • To configure a link-local address for the subinterface, run the ipv6 address ipv6-address link-local command.
      • To configure a global unicast address for the subinterface, run the ipv6 address { ipv6-address | prefix-length } command.
      • To configure an IPv6 address in the format of EUI-64 for the subinterface, run the ipv6 address ipv6-address/prefix-length [ eui-64 ] command.

  6. Configure an encryption type and associated VLAN ID for the Eth-Trunk subinterface.

    vlan-type dot1q vlan-id

    The FW allows you to associate an Eth-Trunk subinterface with a maximum of one VLAN.

    By default, the subinterface has no encryption types or associated VLAN IDs.

    Ensure that the subinterfaces at both ends of a link have the same VLAN ID, which ensures VLAN connectivity.

  7. Optional: Configure an MTU for the Eth-Trunk subinterface.

    • Configure an IPv4 MTU for the Eth-Trunk subinterface.

      To configure an IPv4 MTU for the subinterface, run the mtu mtu command.

      The MTU is expressed in bytes. The MTU range of an Eth-Trunk subinterface depends on devices. The default MTU is 1500.

      If you run the mtu command to set an MTU to be smaller than 1280 for an Eth-Trunk subinterface running IPv6, IPv6 cannot work properly on the subinterface. When IPv6 runs on an Eth-Trunk subinterface, set the MTU of the subinterface to be greater than or equal to 1280.

    • Configure an IPv6 MTU for the Eth-Trunk subinterface.

      1. To enable IPv6 for the subinterface, run the ipv6 enable command
      2. To configure an IPv6 MTU for the subinterface, run the ipv6 mtu mtu command.

        The MTU is expressed in bytes. The MTU range of an Eth-Trunk subinterface depends on devices. The default MTU is 1500.

        The Quality of Service (QoS) queue length is limited. If the MTU is too small but the size of a packet is large, the packet may be divided into many fragments and discarded by the QoS queue. To prevent this problem, increase the QoS queue length accordingly. FIFO is used by default on interfaces, which can change the QoS queue length.

  8. Optional: Configure the automatic interface disabling function based on the session usage.

  9. Optional: Configure the automatic interface disabling function based on the CPU usage.

  10. Optional: Configure the sticky load balancing function.

    redirect-reverse next-hop ipv4-address [ per-packet ]
    ipv6 redirect-reverse next-hop ipv6-address [ per-packet ]

    After this command is configured, the FW directly uses the inbound interface as the outbound interface of the response packet when forwarding the response packet, instead of searching the routing table for an outbound interface.

Follow-up Procedure

After configuring an Eth-Trunk subinterface, view information about the subinterface, including the IP address and MAC address.

Example

Run the display interface eth-trunk command. The command output shows the IP address and MAC address of an Eth-Trunk subinterface.

<sysname> display interface eth-trunk 1.1
Eth-Trunk1.1 current state : UP
Line protocol current state : UP
Description : Eth-Trunk1.1 Interface
Hash arithmetic : According to IP, The Maximum Transmit Unit is 1500
Internet Address is 10.10.10.100/24
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-3f60-ec00
Encapsulation dot1q Virtual LAN, The number of Vlan is 1, Vlan ID 2
    Last 300 seconds input rate 0 bytes/sec, 0 packets/sec
    Last 300 seconds output rate 0 bytes/sec, 0 packets/sec
    Realtime 77 seconds input rate 0 bits/sec, 0 packets/sec  
    Realtime 77 seconds output rate 0 bits/sec, 0 packets/sec 
    Input: 0 packets,0 bytes,
           0 unicast,0 broadcast,0 multicasts
           0 errors,0 drops,0 unknowprotocol
    Output:0 packets,0 bytes,
          0 unicast,0 broadcast,0 multicasts
           0 errors,0 drops
    Input bandwidth utilization  : 0.00%  
    Output bandwidth utilization : 0.00%
-----------------------------------------------------
PortName                Status              Weight
-----------------------------------------------------
Ethernet6/0/0           UP                  1
-----------------------------------------------------
The Number of Ports in Trunk : 1
The Number of UP Ports in Trunk : 1 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >