IP address configuration on S series switch

Publication Date:  2016-11-21 Views:  124 Downloads:  0
Issue Description
IP address configuration on S series switch
Solution
"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"

END