Configuring VLAN ID for iSCSI

You can use management GUI and the command-line interface (CLI) to configure a virtual local area network (VLAN) ID for a node port IP address in multiple ways.

Using management GUI

Complete these steps to configure VLAN tags on existing host sessions:
  1. On the hosts, configure VLAN on the host ports that are used for Ethernet-based connections. Consult the appropriate host documentation to complete this step.
  2. On all intervening switches, configure the switches with the VLAN tags per port connectivity. Consult the appropriate switch documentation to complete this step.
  3. Verify that the port on which you are configuring VLAN tags is used for host attachment. In the management GUI, select Settings > Network > Ethernet Ports. Ensure that Yes is displayed in the host attach column for the selected port. If No is displayed, right-click the port and select Modify iSCSI hosts and select Enabled.
  4. Configure ports on the system with appropriate VLAN tags by completing these steps:
    1. In the management GUI, select Settings > Network > Ethernet Ports.
    2. Right-click the port on which to configure VLAN and select Manage IP Addresses.
    3. On Manage IP Addresses page, select Add IP Address. Enter the following information for the IP address that you are adding to the selected port:
      IP address
      Enter the IP address to associate with the selected port.
      Type
      Select the IP protocol version of the IP address.
      Subnet Mask or Prefix
      Enter the subnet mask for the IPv4 addresses or enter the prefix for IPv6 addresses.
      VLAN
      Enter the corresponding VLAN tag that this IP address belongs to.
      Portset
      Select the name or ID of the portset where the portset type is Host Attachment.
    4. Click Save.
    5. If you are updating an existing IP address, select the IP address and select Edit from the overflow menu. Enter the new VLAN tag in the VLAN field. Click Save.
  5. After you configure VLAN settings for host attachment, ensure that you set the priority flow control (PFC) setting for the host attachment traffic.
    Note: If you are sharing the same port for different types of traffic, then PFC and Enhanced Transmission Selection (ETS) settings must be configured.

Using the command-line interface

  1. To configure a VLAN ID along with a port IPv4 and IPv6 address to a specified Ethernet port, use the -vlan parameter in the mkip command, as in the following command-line interface (CLI) command:
    mkip -node node_name | node_id -port port_id -ip ipaddr 
    -prefix prefix -vlan vlan_id

    Where node_name | node_id specifies the name or ID of the node that is being configured, ipaddr is the IPv4 or IPv6 address for the Ethernet port, prefix is subnet prefix for IPv4 or IPv6, 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.

  2. To remove the VLAN ID and the IP address from a node Ethernet port, enter the following command:
    rmip ip_address_id

    Where ip_address_id specifies the name of IP address. To list the valid values for the IP address ID, enter the lsip command.