This section describes how to configure a Layer-3 Ethernet interface that supports the routing and forwarding functions.
A Layer-3 Ethernet interface uses an IPv4 address to connect to an IPv4 network or an IPv6 address to connect to an IPv6 network.
system-view
interface interface-type interface-number
ip address ip-address { mask | mask-length } [ sub ]
To assign the second and subsequent IPv4 addresses to the interface, configure the sub parameter in the ip address command.
ipv6 enable
By default, the IPv6 capability is disabled on the interface.
Before performing IPv6 configurations in the interface view, enable the IPv6 capability in the interface view.
To allow the interface to forward IPv6 packets, run the ipv6 command in the system view.
To enable the system to automatically generate an IPv6 link-local address, run:
This is a recommended way to configure an IPv6 link-local address because the link-local address is only used for protocol-based communication between link-local nodes, regardless of communication between users.
If no IPv6 link-local address is specified for an interface, the device automatically generates an IPv6 link-local address for the interface after an IPv6 global unicast address is specified for the interface.
To specify an IPv6 link-local address, run:
ipv6 address ipv6-address link-local
The prefix of an IPv6 link-local address is FE80::/10.
Only a single link-local address can be configured on an interface. If you configure multiple link-local addresses on the same interface, only the last configuration takes effect.
ipv6 address { ipv6-address | ipv6-address/prefix-length } [ eui-64 ]
An EUI-64 address supports the same function as a global unicast address. The difference between the two addresses is as follows:
The EUI-64 address and global unicast address can be configured simultaneously or separately. However, IP addresses configured for the same interface cannot be on the same network segment.
undo negotiation auto
Only MEth, GE, 10GE, and WAN interfaces support this command. A 10GE interface supports this command only when it has a GE optical module installed.
By default, an interface works in auto-negotiation mode.
To set parameters duplex and speed to adjust the duplex mode and rate of an interface, run the negotiation auto command to disable the interface from working in auto-negotiation mode.
duplex { full | half | auto }
Only Meth, GE, and WAN interfaces support this command.
speed { 10 | 100 | 1000 }
Only MEth, GE, and WAN interfaces support this command.
To set an IPv4 MTU for the interface, run:
mtu mtu
To set an IPv6 MTU for the interface, run:
ipv6 mtu mtu
If a packet is added with a non-fragment flag and the packet length exceeds the interface MTU, the FW drops the packet.
arp learning strict { force-enable | force-disable | trust }
description interface-description
alias alias
bandwidth ingress bandwidth-number
bandwidth egress bandwidth-number
service-manage enable
By default, access control is enabled on interfaces.
service-manage { http | https | ping | ssh | snmp | netconf | telnet | all } { permit | deny }
The service-manage command allows an administrator to manage a FW through a specified interface even if no security policy is enforced for traffic between the Local zone and the security zone to which the interface belongs.
reset service-manage
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.
A Layer-3 Ethernet interface supports interface flapping control, traffic suppression, and loopback.
Interface traffic suppression
This function enables an interface to suppress broadcast, multicast, and unknown unicast traffic, which facilitates effective bandwidth use.
The device suppresses traffic based on either of the following parameters:
When traffic exceeds a specified value, the device discards subsequent packets so that traffic is lowered within a specified range, which secures proper services transmission.
Perform the following step to configure interface traffic suppression:
For broadcast traffic suppression and multicast traffic suppression based on packet rates, the granularity of parameter max-pps is 125. For example, if you set max-pps to 5, the actual value is 125. If you set max-pps to 126, the actual value is 250. The rest can be done in the same manner.
The mode of broadcast traffic suppression and multicast traffic suppression of all interfaces on the same LPU must be the same. For example, if traffic suppression based on packet rates is configured for interface GigabitEthernet 0/0/1, you cannot configure traffic suppression based on suppression ratio for interface GigabitEthernet 0/0/2.
Configure broadcast traffic suppression.
broadcast-suppression { ratio | pps max-pps }
Configure multicast traffic suppression.
multicast-suppression { ratio | pps max-pps }
The following formula applies:
Packet rate (pps) = Interface bandwidth x Suppression ratio/672
Where,
Ethernet interface loopback
Loopback helps you check whether an interface works properly.
Enable loopback.
When an interface works properly, disable the loopback. By default, the loopback is disabled.
Interface mode switching
In the system view, run the set device port-config-mode 100g-port enable command to enable the 100GE interface mode.
Only the USG6712E/6716E supports this command.
By default, the 100GE interface mode is disabled. If 100GE interfaces are required, run the set device port-config-mode 100g-port enable command to enable 100GE0/0/0 and 100GE0/0/1.100GE0/0/0 and 100GE0/0/1 are valid. In this case, XGE0/0/12 to XGE0/0/19, 40GE0/0/2, and 40GE0/0/3 become invalid.
In the system view, run the set device port-config-mode 40g-port enable command to enable the 40GE interface mode.
Only the USG6680E supports this command.
By default, the 40GE interface mode is disabled. XGE0/0/20 to XGE0/0/27, 40GE0/0/0, and 40GE0/0/1 are valid. In addition, 40GE0/0/2 and 40GE0/0/3 are mutually exclusive with XGE0/0/20 to XGE0/0/27. If more 40GE interfaces are required, run the set device port-config-mode 40g-port enable command to add 40GE0/0/2 and 40GE0/0/3. In this case, XGE0/0/20 to XGE0/0/27 become invalid.
In the system view, run the set device port-config-mode [ 10ge | ge ] command to configure the interface mode.
Only the USG6525E/6555E/6565E/6585E support this command.
By default, the interface mode is 10GE.