Creating VLAN interfaces

According to the requirements listed in Compute cluster requirements, it is recommended to configure VLAN interfaces over network bonds for the compute cluster. You can create these logical interfaces on the Network interfaces tab of the node screen. Additionally, VLAN network interfaces on the compute nodes can be created with the automated procedure outlined in Connecting virtual switches to trunk interfaces.

To create a VLAN interface

Admin panel

  1. On the Infrastructure > Nodes screen, click the name of the node, go to the Network interfaces tab, and then click Create.
  2. In the Create network interface window, select the VLAN type and a network interface to create a VLAN interface from, and then click Next.
  3. Specify a number for VLAN in the VLAN ID field. You can choose a number in the range from 1 to 4094.
  4. Select a network to assign the VLAN to, and then specify the network parameters:

    • Select Automatically (DHCP) to obtain the IP address, DNS, and routing settings from the DHCP server.
    • Select Automatically (DHCP address only) to obtain only the IP address from the DHCP server.
    • Select Manually, and then specify the IP address in CIDR notation by clicking Add.

    Dynamic IP address allocation will cause network issues as soon as the IP addresses of cluster nodes change. Configure static IP addresses from the start or as soon as possible.

  5. Specify a gateway. The provided gateway will become the node’s default.

  6. Enter the desired MTU value in the MTU field. If you leave Auto, the parent interface MTU will be used.

  7. Click Create.

Command-line interface

Use the following command:

vinfra node iface create-vlan [--ipv4 <ipv4>] [--ipv6 <ipv6>] [--gw4 <gw4>] [--gw6 <gw6>]
                              [--mtu <mtu>] [--dhcp4 | --no-dhcp4] [--dhcp6 | --no-dhcp6]
                              [--auto-routes-v4 | --ignore-auto-routes-v4]
                              [--auto-routes-v6 | --ignore-auto-routes-v6]
                              [--network <network>] [--node <node>] --iface <iface> --tag <tag>
--ipv4 <ipv4>
A comma-separated list of IPv4 addresses
--ipv6 <ipv6>
A comma-separated list of IPv6 addresses
--gw4 <gw4>
Gateway IPv4 address
--gw6 <gw6>
Gateway IPv6 address
--mtu <mtu>
MTU interface value
--dhcp4
Enable DHCPv4
--no-dhcp4
Disable DHCPv4
--dhcp6
Enable DHCPv6
--no-dhcp6
Disable DHCPv6
--auto-routes-v4
Enable automatic IPv4 routes
--ignore-auto-routes-v4
Ignore automatic IPv4 routes
--auto-routes-v6
Enable automatic IPv6 routes
--ignore-auto-routes-v6
Ignore automatic IPv6 routes
--network <network>
Network ID or name
--node <node>
Node ID or hostname (default: node001.vstoragedomain)
--iface <iface>
Interface name
--tag <tag>
VLAN tag number

For example, to create a VLAN interface with the tag 100 on the network interface eth2 on the node node002, run:

# vinfra node iface create-vlan --iface eth2 --tag 100 --dhcp4 --node node002