Configure sub-interfaces

57

CE12800 and CE7800 series switches in V100R003C10 and later versions support the sub-interface configuration.
CE5800 sand CE6800 series switches, except the CE6810LI, in V100R005C00 and later versions support the sub-interface configuration.

The following example shows how to configure a sub-interface.

system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] undo portswitch //Change the interface mode to Layer 3 mode.
[*HUAWEI-10GE1/0/1] commit
[~HUAWEI-10GE1/0/1] quit
[~HUAWEI] interface 10ge 1/0/1.1 //Enter the sub-interface view.

Other related questions:
Configure sub-interfaces
CE12800 and CE7800 series switches in V100R003C10 and later versions support the sub-interface configuration. CE5800 sand CE6800 series switches, except the CE6810LI, in V100R005C00 and later versions support the sub-interface configuration. The following example shows how to configure a sub-interface. system-view [~HUAWEI] interface 10ge 1/0/1 [~HUAWEI-10GE1/0/1] undo portswitch //Change the interface mode to Layer 3 mode. [*HUAWEI-10GE1/0/1] commit [~HUAWEI-10GE1/0/1] quit [~HUAWEI] interface 10ge 1/0/1.1 //Enter the sub-interface view.

How to configure a sub-interface on an AR router
A sub-interface is a virtual interface configured on a physical interface. It is generally used for the communication between a physical link and multiple remote ends. Sub-interfaces include: Ethernet sub-interfaces, Eth-Trunk sub-interfaces, PON sub-interfaces, ATM sub-interfaces, and FR sub-interfaces. Configure a sub-interface as follows: [Huawei] interface ethernet 2/0/0 [Huawei-Ethernet2/0/0] undo portswitch //Switch the current interface to a Layer-3 interface. [Huawei-Ethernet2/0/0] quit [Huawei] interface ethernet 2/0/0.1 //Enter the view of the sub-interface.

Why is the DHCP configuration lost on an AR after a while
If Auto-Config is enabled, the AR will periodically clear all DHCP configurations, causing DHCP configuration loss. To solve the problem, perform the following steps: 1. Run the undo autoconfig enable command on the AR to disable Auto-Config. 2. Wait for 4 or 5 minutes and run the display autoconfig-status command to check the Auto-Config status. If the value of Running is NO, the Auto-Config function has been disabled. 3. Perform the configuration and run the save command.

After configuring the IP address on a sub-Interface, why can I not ping the sub-interface
You have to run arp broadcast enable on the sub-interface to be able to ping the sub-interface.

Configure the DHCP server based on the interface address pool on the AR
Configure the DHCP server based on the interface address pool, that is, assign IP addresses to the interfaces. The AR assigns the IP addresses on the same network segment as the interface IP address to clients. This mode is easy to configure and applies to the scenario where the DHCP server and clients are on the same network segment, that is, no DHCP relay agent exists. Perform the following configuration: [Huawei] dhcp enable //Enable the DHCP function. [Huawei] interface ethernet 2/0/0 //Enter the view of the interface connected to the DHCP clients. [Huawei-Ethernet2/0/0] port link-type access [Huawei-Ethernet2/0/0] port default vlan 10 [Huawei-Ethernet2/0/0] quit [Huawei] interface vlanif 10 [Huawei-Vlanif10] ip address 10.1.1.1 24 //Configure the network segment where the DHCP client is located as 10.1.1.1 24. [Huawei-Vlanif10] quit [Huawei] interface vlanif 10 [Huawei-Vlanif10] dhcp select interface //Enable the DHCP server based on the interface address pool. [Huawei-Vlanif10] dhcp server lease day 30 //Set the DHCP address lease to 30 days. [Huawei-Vlanif10] quit

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top