How to change an interface IP address on an S series switches

You can delete or change an interface IP address on an S series switches (except the S1700) as follows:
- To delete the IP address of an interface, run the undo ip address [ ip-address { mask | mask-length } ] command in the interface view.
For example:
[HUAWEI] interface Vlanif 100
[HUAWEI-Vlanif100] display this
#
interface Vlanif100
ip address 10.1.1.1 255.255.255.0
#
[HUAWEI-Vlanif100] undo ip address
[HUAWEI-Vlanif100] display this
#
interface Vlanif100
#
- To change the IP address or subnet mask of an interface, run the ip address ip-address { mask | mask-length } command in the interface view.
For example:
[HUAWEI] interface Vlanif 100
[HUAWEI-Vlanif100] display this
#
interface Vlanif100
ip address 10.1.1.1 255.255.255.0
#
[HUAWEI-Vlanif100] ip address 10.2.1.1 255.255.0.0
[HUAWEI-Vlanif100] display this
#
interface Vlanif100
ip address 10.2.1.1 255.255.0.0
#

Scroll to top