212ip addressUse ip address to assign an IPv4 address to the management Ethernet port.Use undo ip address to restore the default.Syntaxip address ip-address { mask-length | mask }undo ip addressDefaultThe management Ethernet port has no IPv4 address.ViewsManagement Ethernet port viewParametersip-address: Specifies an IPv4 address in dotted decimal notation.mask-length: Specifies the length of the subnet mask, in the range of 1 to 31.mask: Specifies the subnet mask in dotted decimal notation.Usage guidelinesThe management Ethernet port can have only one IPv4 address. If you execute this commandmultiple times, the most recent configuration takes effect.When the management Ethernet port is manually shut down, assigning it an IPv4 address orremoving its IPv4 address activates it at the same time.The IP address assigned to the management Ethernet port must be different from the IP addressesof the other devices on the network.Examples# Assign IPv4 address 192.168.1.1/24 to the management Ethernet port. system-view[boot] interface m-eth0[boot-m-eth0] ip address 192.168.1.1 24ip gatewayUse ip gateway to specify an IPv4 gateway for the management Ethernet port.Use undo ip gateway to restore the default.Syntaxip gateway ip-addressundo ip gatewayDefaultThe management Ethernet port has no IPv4 gateway configured.ViewsManagement Ethernet port viewParametersip-address: Specifies an IPv4 gateway address in dotted decimal notation.