Configure the primary and secondary IP addresses for a CE series switch

18

Configure the primary and secondary IP addresses for a CE series switch as follows:
1. Run the ip address ip-address { mask | mask-length } command in the interface view to configure the primary IP address for an interface.
2. Run the ip address ip-address { mask | mask-length } sub command in the interface view to configure the secondary IP address for an interface.

Other related questions:
Method used to configure primary and secondary IP addresses of an interface on USG firewalls
The following commands are used to configure the primary and secondary IP addresses of an interface on the USG2000, USG5000, and USG6000: system-view [USG] interface GigabitEthernet 0/0/3 [USG-GigabitEthernet0/0/3] ip address 10.2.1.1 24 //Primary IP address [USG-GigabitEthernet0/0/3] ip address 10.2.1.8 24 sub //Secondary IP address Note: The primary and secondary IP address of the same interface can be in the same network segment. However, any of IP addresses of different interfaces, IP addresses of the main interface and the subinterface, and IP addresses of the main interface and different subinterfaces cannot be in the same network segment.

Can CE series switches use their secondary IP addresses to establish an OSPF neighbor relationship
CE series switches cannot use secondary IP addresses to establish an OSPF neighbor relationship.

Do S series switches support allocation of IP addresses based on secondary IP addresses
All switch models of S series switches excluding the S1700 allocate IP addresses based on the primary IP address regardless of whether the interface or global address pool is used. They do not support allocation of IP addresses based on secondary IP addresses. That is, users cannot obtain IP addresses on the same network segment as the secondary IP address.

Number of secondary IP addresses supported by S series switches
For S series switches (except the S1700): In V100R006 and later versions, each interface of an S series fixed switch supports up to eight secondary IP addresses. In V100R003 and later versions, each interface of an S series modular switch supports up to 255 secondary IP addresses.

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