You can use the command-line interface (CLI) to configure a virtual local area network (VLAN) ID for a node port IP address in multiple ways.
If cfgportip is used to modify the IP address that is associated with a specific Ethernet port without specifying a new VLAN ID, the new (modified) IP address inherits the existing VLAN ID setting of the earlier IP address (IPv4 or IPv6).
cfgportip -node node_name | node_id -ip ipv4addr -gw ipv4gw -mask subnet_mask -vlan vlan_idport_id
Where node_name | node_id specifies the name or ID of the node that is being configured, ipv4addr is the IPv4 address for the Ethernet port, ipv4gw is the IPv4 gateway IP address, subnet_mask is the IPv4 subnet mask, and port_id specifies the Ethernet port ID. The -vlan parameter sets the virtual local area network (VLAN) ID to the value specified by vlan_id variable. It can be a number 0 - 4095. To view this configuration, use the lsportip command.
cfgportip -node node_name | node_id -ip_6 ipv6addr -gw_6 ipv6gw -prefix_6 prefix -vlan_6 vlan_id |-novaln_6 port_id
Where node_name | node_id specifies the name or ID of the node that is being configured, ipv6addr is the IPv6 address for the Ethernet port, ipv6gw is the IPv6 gateway IP address, subnet_mask is the IPv6 subnet mask, and port_id specifies the Ethernet port ID. The -vlan_6 parameter sets the VLAN ID to the value specified by vlan_id. To view this configuration, use the lsportip command.
cfgportip -node node_name | node_id -vlan vlan_id port_id
Where node_name | node_id specifies the name or ID of the node on which these changes are being made, port_id specifies the already configured Ethernet port ID. The -vlan parameter sets or changes the VLAN ID for an IPv4 address on the port.
cfgportip -node node_name | node_id -vlan_6 vlan_id port_id
Where node_name | node_id specifies the name or ID of the node on which these changes are being made, port_id specifies the already configured Ethernet port ID. The -vlan_6 parameter sets or changes the VLAN ID for an IPv6 address on the port.
cfgportip -node node_name | node_id -ip ipv4addr -gw ipv4gw -mask subnet_mask -failover -vlan vlan_id | -novlanport_id
When the -vlan parameter is included with the -failover parameter, the -vlan parameter is associated with the IPv4 address of the partner node. If the node that is specified is the only online node in the I/O group, the IP address and VLAN ID are configured and presented by this node. When another node in the I/O group comes online, the failover IP address and VLAN ID are presented by that node.
cfgportip -node node_name | node_id -ip_6 ipv6addr -gw_6 ipv6gw -prefix_6 prefix -failover -vlan_6 vlan_id | -novlan_6port_id
When the -vlan parameter is included with the -failover parameter, the -vlan parameter is associated with the IPv6 address of the partner node. If the node that is specified is the only online node in the I/O group, the IP address and VLAN ID are configured and presented by this node. When another node in the I/O group comes online, the failover IP address and VLAN ID are presented by that node.
cfgportip -node node_name | node_id -novlan port_id
Where node_name | node_id specifies the name or ID of the node on which these changes are made and port_id specifies the Ethernet port ID on which this change is made.
The -novlan parameter disables VLAN tagging for an IPv4 address for an Ethernet port, which means the VLAN tag is not associated with that port.
cfgportip -node node_name | node_id -novlan_6 port_id
Where node_name | node_id specifies the name or ID of the node on which these changes are made and port_id specifies the Ethernet port ID on which this change is made.
The -novlan_6 parameter disables VLAN tagging for an IPv6 address for an Ethernet port, which means the VLAN tag is not associated with that port.
rmportip -node node_name | node_idport_id
Where node_name | node_id specifies the name or ID of the node with the Ethernet port that the IP address is being removed from and port_id specifies the Ethernet port ID.
rmportip -ip_6 -node node_name | node_idport_id
Where node_name | node_id specifies the name or ID of the node with the Ethernet port that the IP address is being removed from and port_id specifies the Ethernet port ID.