The FW allows you to configure subinterfaces for Eth-Trunk interfaces.
system-view
interface eth-trunk trunk-id
quit
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.
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:
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.
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.
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.
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.
After configuring an Eth-Trunk subinterface, view information about the subinterface, including the IP address and MAC address.
Run the display interface eth-trunk [ trunk-id [.subnumber ] ] command to check the status of the Eth-Trunk subinterface.
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