How to configure an IP addresses for a sub-interface on a CE series switch

18

The procedure for configuring an IP addresses for a sub-interface on a CE series switch is described on the right

Other related questions:
How to configure an IP addresses for a sub-interface on a CE series switch
The procedure for configuring an IP addresses for a sub-interface on a CE series switch is described on the right

IP address configuration on S series switch
An S series switch, except S1700, supports primary and sub IP addresses on interfaces. Each Layer 3 interface can have multiple IP addresses, including one primary IP addresses and multiple sub IP addresses. (Note: Sub IP addresses become invalid when the primary address is deleted.)Each interface on the modular switch supports 255 sub IP addresses, and each interface on the fixed switch supports 8 sub IP addresses. For example, configure a primary IP address 10.1.0.1 and a sub IP address 10.2.0.1 for VLANIF10, with subnet mask 255.255.255.0. [HUAWEI] interface vlanif 10 [HUAWEI-Vlanif10] ip address 10.1.0.1 255.255.255.0 [HUAWEI-Vlanif10] ip address 10.2.0.1 255.255.255.0 sub (Note: After IP addresses are configured for a VLANIF interface, the clients connected to the switch use one of the IP addresses as gateway address. After sub IP addresses are configured, users can change them as required, but the new IP addresses must be on the same subnet as the primary or one sub IP address; otherwise, the subnets cannot communicate with each other.)For most models in V200R005C00 and later versions, run the undo portswitch command to switch a Layer 2 interface to a Layer 3 interface, and then configure an IP address for the interface. For example, configure a primary IP address 10.1.0.1 and a sub IP address 10.2.0.1 for GE1/0/1, with subnet mask 255.255.255.0. [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] undo portswitch [HUAWEI-GigabitEthernet1/0/1] ip address 10.1.0.1 255.255.255.0 [HUAWEI-GigabitEthernet1/0/1] ip address 10.2.0.1 255.255.255.0 sub

How to configure an IP address for the management interface on a CE series switch
The procedure for configuring an IP addresses for the management interface on a CE series switch is described on the right.

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 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.

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