cfgportip

The cfgportip command assigns an IP address to each node ethernet port for iSCSI I/O.

Syntax

Read syntax diagramSkip visual syntax diagram
>>- svctask -- -- cfgportip -- -node --+- node_name -+-- ------->
                                       '- node_id ---'      

>--+- -ip -- ipv4addr ---+-- --+- -gw -- ipv4gw ---+-- --------->
   '- -ip_6 -- ipv6addr -'     '- -gw_6 -- ipv6gw -'      

>--+- -mask -- subnet_mask -+-- --+-------------+-- --port_id--><
   '- -prefix_6 -- prefix --'     '- -failover -'               

Parameters

-node node_name | node_id
(Required) Specifies which node has the ethernet port that the IP address is being assigned to.
-ip ipv4addr
(Required if you do not use ip_6) Sets the IPv4 address for the ethernet port. You cannot use this parameter with the ip_6 parameter.
-ip_6 ipv6addr
(Required if you do not use ip) Sets the IPv6 address for the ethernet port. You cannot use this parameter with the ip parameter.
-gw ipv4addr
(Required if you do not use gw_6) Sets the IPv4 gateway IP address. You cannot use this parameter with the gw_6 parameter.
-gw_6 ipv6gw
(Required if you do not use gw) Sets the IPv6 default gateway address for the port. You cannot use this parameter with the gw parameter.
-mask subnet_mask
(Required if you do not use prefix_6) Sets the IPv4 subnet mask. You cannot use this parameter with the prefix_6 parameter.
-prefix_6 prefix
(Required if you do not use mask) Sets the IPv6 prefix. You cannot use this parameter with the mask parameter.
-failover
(Optional) Specifies that the IP address belongs to the partner node in the I/O group. If the partner node is offline, the address is configured and presented by this node. When another node comes online in the I/O group, the failover address is presented by that node.
port_id
(Required) Specifies which port (1 or 2) to apply changes to.

Description

This command assigns either an IPv4 or IPv6 address to a specified ethernet port of a node. The IP address is used for iSCSI I/O. Use the svctask chclusterip command to assign cluster IP addresses.

For an IPv4 address, the ip, mask, and gw parameters are required. All of the IPv4 IP parameters must be specified to assign an IPv4 address to an ethernet port.

For an IPv6 address, the ip_6, prefix_6, and gw_6 parameters are required. All of the IPv6 IP parameters must be specified to assign an IPv6 address to an ethernet port.

Use the svcinfo lsportip command with the optional ethernet_port_id parameter to list the port IP addresses for the specified port.

An invocation example for IPv4

svctask cfgportip -node 1  -ip 9.8.7.1 -gw 9.0.0.1 -mask 255.255.255.0 1

The resulting output

No feedback

An invocation example for IPv6

svctask cfgportip -node 1  -ip_6 3:3:0:4::0  -gw_6 ffe8::0  -prefix_6 64 2

The resulting output

No feedback
Library | Support | Terms of use | Feedback
© Copyright IBM Corporation 2003, 2009. All Rights Reserved.