This section describes how to configure a Layer-3 Ethernet subinterface.
Subinterfaces are logical or virtual interfaces created on a physical interface. Subinterfaces share the physical parameters of the physical interface on which they are created. However, subinterfaces have their own data link layer and network layer parameters. A subinterface status change does not affect the main interface status, whereas a main interface status change affects the subinterface status. Subinterfaces work properly only when their main interface is in the Up state.
Subinterfaces can be created on Layer-3 Ethernet and Eth-Trunk interfaces. To distinguish VLAN packets on a Layer-3 Ethernet interface or an Eth-Trunk interface, configure subinterfaces with different VLAN IDs. Each subinterface with a specific VLAN ID forwards packets carrying the VLAN ID, which provides configuration flexibility.
interface interface-type interface-number.subinterface-number
The subinterface-number parameter specifies the number of an Ethernet subinterface.
vlan-type dot1q vlan-id
By default, no encapsulation mode or VLAN ID is configured on a subinterface.
To ensure VLAN connectivity, set the same VLAN ID on two subinterfaces at two ends of a link.
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.
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
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.