HP StorageWorks Multi-protocol Router Installation Guide (A7437-96003, September 2005)

Setting initial parameters44
See Table 8 for a list of syntaxes to use with the ipAddrSet command.
Example
Table 8 ipAddrSet command syntax
For example, to set the IP address as 192.168.10.1, netmask 255.255.255.0, and gateway
192.168.10.2, type:
ipaddrset 1 —i 192.168.10.1 —n 255.255.255.0 —g 192.168.10.1 -a “cfgnow”
3. Enter the ipaddrshow command to verify that the IP address was set correctly.
4. Remove the serial cable and replace the protective shipping plug if the console port is no longer
required.
APswitch:admin> ipaddrset
usage: ipaddrset <mgmt interface num> [-i ipAddress] [-n netmask]
[-g gateway] [-a action] [-s] [-r]
where mgmt interface num is either 1 or 2, action is either "cfgnow" or
"cfgafterreboot,"
-s option sets the switch virtual IP as same as the IP of the management
interface,
and -r option resets IP configuration of the management interface
APswitch 1:admin>
Variable Description
mgmt interface
num
Specifies the management Ethernet port number (either 1 or 2)
-i ipAddress Sets the IP address*
-n netmask Sets the netmask*
-g gateway Sets the gateway*
-a action Specifies whether the change is to take place immediately (using the
cfgnow command) or after the next reboot (using the
cfgafterreboot command)
-s Specifies whether the virtual IP address and netmask should match the
new IP address and netmask
-r Resets the IP configuration of the management interface
*NOTE: These variables use the standard aa.bb.cc.dd format.