IP address configuration on S series switch

0

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

Other related questions:
IP address exclusion configuration on S series switch
For S series switches except S1700 switches, some IP addresses in an address pool may be used by other servers and hosts, configured for clients with special requirements, or reserved. These IP addresses need to be excluded from the address pool so that the DHCP server does not assign them to clients, preventing IP address conflicts. For example, you can configure IP addresses in the range of 10.10.10.11 to 10.10.10.20 that cannot be automatically assigned to clients from the address pool on an S series switch except an S1700 switch as follows: - For an interface address pool: [HUAWEI] dhcp enable [HUAWEI] interface vlanif 100 //Enter the view of the interface connected to DHCP clients. [HUAWEI-Vlanif100] ip address 10.10.10.10 24 [HUAWEI-Vlanif100] dhcp select interface [HUAWEI-Vlanif100] dhcp server excluded-ip-address 10.10.10.11 10.10.10.20 - For a global address pool: [HUAWEI] dhcp enable [HUAWEI] interface vlanif 100 //Enter the view of the interface connected to DHCP clients. [HUAWEI-Vlanif100] ip address 10.10.10.10 24 [HUAWEI-Vlanif100] dhcp select global [HUAWEI-Vlanif100] quit [HUAWEI] ip pool global1 [HUAWEI-ip-pool-global1] network 10.10.10.0 mask 24 [HUAWEI-ip-pool-global1] excluded-ip-address 10.10.10.11 10.10.10.20

How to configure reserved IP addresses on S series switches
For S series switches excluding the S1700, some IP addresses of the network segment of an IP address pool may be occupied by servers or other hosts during network planning. Some clients have special requirements and can only be configured with some IP addresses; or to reserve some IP addresses that are not assigned dynamically. In this scenario, exclude these IP addresses in the IP address pool to prevent IP address conflicts caused by dynamically allocation of a DHCP server. Assume that IP addresses from 10.10.10.11 to 10.10.10.20 cannot be dynamically allocated. The configuration on S series switches excluding the S1700 is as follows: - Interface-based [HUAWEI] dhcp enable [HUAWEI] interface vlanif 100 //Enter the view of the interface connected to the DHCP client. [HUAWEI-Vlanif100] ip address 10.10.10.10 24 [HUAWEI-Vlanif100] dhcp select interface [HUAWEI-Vlanif100] dhcp server excluded-ip-address 10.10.10.11 10.10.10.20 - Global [HUAWEI] dhcp enable [HUAWEI] interface vlanif 100 //Enter the view of the interface connected to the DHCP client. [HUAWEI-Vlanif100] ip address 10.10.10.10 24 [HUAWEI-Vlanif100] dhcp select global [HUAWEI-Vlanif100] quit [HUAWEI] ip pool global1 [HUAWEI-ip-pool-global1] network 10.10.10.0 mask 24 [HUAWEI-ip-pool-global1] excluded-ip-address 10.10.10.11 10.10.10.20

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

The situation of S series switch regarding to support the configuration of ip address
S series switches (except S1700) Each three-layer interface can be configured with multiple IP addresses, one of which is the primary IP address, the rest is slave IP address, S series chassis switch each interface supports 255 slave address, S Series fixed switches Each interface supports eight slave addresses.

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