HP StorageWorks XPath OS 7.4.X Command Reference Guide (AA-RVHCC-TE, September 2005)
XPath OS 7.4.x command reference guide 129
Sets the IP configuration for an Ethernet management interface.
Synopsis
ipaddrset mgmtPortNum -i ipAddress -n netMask -g gateway
-a action [-s] [-r]
Availability
admin
Description
Use this command to set the IP configuration for an Ethernet management interface.
Operands
The following operands are required:
The following operands are optional:
NOTE: If the secondary management interface is not used, the virtual management IP configuration
changes along with the primary IP configuration.
Examples
To set IP address 192.168.10.1, netmask 255.255.255.0, and gateway 192.168.10.2 of management
interface 1:
To set the IP address 192.168.10.1, netmask 255.255.255.0, and gateway 192.168.10.2 of
management interface 1, and set the MP Router virtual IP address and netmask:
ipaddrSet
mgmtPortNum Selects one of the two management Ethernet interfaces available
on the front panel.
-i ipAddress Specifies an Ethernet management port number of 1 or 2.
-n netMask Sets the netmask, in the standard aa.bb.cc.dd format.
-g gateway Sets the gateway, in the standard aa.bb.cc.dd format.
-a action Specifies whether the change takes effect immediately (cfgnow)
or after the next reboot (cfgafterreboot).
-s Specifies whether to set the MP Router virtual IP address and
netmask to the same as the new IP address and netmask.
-r Specifies whether to reset the IP configuration of the
management interface. The -r operand is applicable to
management interface 2 only.
switch:admin> ipaddrset 1 -i 192.168.10.1 -n 255.255.255.0 -g 192.168.10.2 -a cfgnow
switch:admin> ipaddrset 1 -i 192.168.10.1 -n 255.255.255.0 -g 192.168.10.2 -a cfgnow -s