To use an Eth-Trunk link to carry Layer-3 data packets, configure Layer-3 Eth-Trunk interfaces.
system-view
interface eth-trunk trunk-id
Configure an IPv4 address for the Eth-Trunk interface.
To configure an IPv4 address for the Eth-Trunk interface, run the ip address ip-address { mask | mask-length } [ sub ] command.
Configure an IPv6 address for the Eth-Trunk interface.
Configure an IPv6 address for the Eth-Trunk interface based on actual situations:
mac-address mac-address
If the FW has multiple Layer-3 Eth-Trunk interfaces directly connected to Layer-2 interfaces of switches, change the MAC addresses of the Layer-3 Eth-Trunk interfaces to ensure that return packets sent from the switches are forwarded to correct Layer-3 Eth-Trunk interfaces.
The mac-address command can be used only on the Eth-Trunk interface that works in Layer-3 mode.
If an Eth-Trunk interface has a large number of Eth-Trunk sub-interfaces, changing the MAC address of the Eth-Trunk interface causes the local device to send a large number of gratuitous ARP packets to the peer device. If CPCAR is configured on the peer device, increase the bandwidth for transmitting gratuitous ARP packets, which prevents gratuitous ARP packets from being discarded.
Configure an IPv4 MTU for the Eth-Trunk sub-interface.
To configure an IPv4 MTU for the interface, run the mtu mtu command.
The MTU is expressed in bytes. The default value is 1500.
The mtu mtu command cannot be used on Layer-2 Eth-Trunk interfaces.
The same MTU must be set for two directly connected interfaces. To use the mtu command to change the MTU of an interface, ensure that the MTUs on both ends are the same. Otherwise, services may be interrupted.
If you run the mtu command to change the MTU to be smaller than 1280 bytes for the Eth-Trunk interface running IPv6, IPv6 cannot properly run on the interface. When IPv6 runs on an Eth-Trunk interface, set the MTU to be greater than or equal to 1280 for the interface.
Configure an IPv6 MTU for the Eth-Trunk sub-interface.
To configure an IPv6 MTU for the interface, run the ipv6 mtu mtu command.
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 a Layer-3 Eth-Trunk interface, view the status of the Eth-Trunk, member interface information, and forwarding table of the Eth-Trunk interface.
Example
Run the display interface eth-trunk command. The command output shows information about Eth-Trunk sub-interfaces, including IP addresses, MAC addresses, and hash algorithms.
<sysname> display interface Eth-Trunk 1
Eth-Trunk1 current state : UP
Line protocol current state : UP
Last line protocol up time : 2011-09-30 01:45:43 UTC+08:00
Description : Eth-Trunk1 Interface
Route Port,Hash arithmatic : According to flow,Maximal BW: 2G, Current BW: 2G,
The Maximum Transmit Unit is 1500
Internet Address is 10.1.1.1/24
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is xxxx-xxxx-xxxx
Physical is ETH_TRUNK
Last 300 seconds input rate 0 bytes/sec, 0 packets/sec
Last 300 seconds output rate 0 bytes/sec, 0 packets/sec
Realtime 0 seconds input rate 0 bits/sec, 0 packets/sec
Realtime 0 seconds output rate 0 bits/sec, 0 packets/sec
Input: 1 packets,3 bytes,
7 unicast,9 broadcast,8 multicasts
10 errors,5 drops,11 unknowprotocol
Output: 2 packets,4 bytes,
12 unicast,14 broadcast,13x multicasts
15 errors,6 drops
Input bandwidth utilization : 0.00%
Output bandwidth utilization : 0.00%
-----------------------------------------------------
PortName Status Weight
-----------------------------------------------------
GigabitEthernet 0/0/1 UP 1
GigabitEthernet 0/0/2 UP 1
-----------------------------------------------------
The Number of Ports in Trunk : 2
The Number of UP Ports in Trunk : 2
Run the display trunkmembership eth-trunk command. The command output shows information about the member interfaces of an Eth-Trunk interface, including the status and working mode.
<sysname> display trunkmembership eth-trunk 0 Trunk ID: 0 used status: VALID TYPE: ethernet Working Mode : Normal Working State: Normal Number Of Ports in Trunk = 2 Number Of UP Ports in Trunk = 1 Operate status: up Interface GigabitEthernet0/0/1, valid, operate up, weight=1 Interface GigabitEthernet0/0/2, valid, operate down, weight=1
Run the display trunkfwdtbl eth-trunk command. The command output shows the active and standby Ethernet interface numbers in the forwarding table of an Eth-Trunk interface.
<sysname> display trunkfwdtbl eth-trunk 1 Show the Trunk Forwarding Table Eth-Trunk1's forwarding table is: MASTER SLAVE GigabitEthernet0/0/0 GigabitEthernet0/0/0