IBM Cloud Docs
Configuring VLAN trunks

Configuring VLAN trunks

Servers can establish trunks with Automatic and Premium VLANs so that traffic can flow between devices using different VLANs than the ones chosen during provisioning.

You can use VLAN trunks for many purposes, including, but not limited to:

  • Segmenting guests into different VLANs by adding VLAN trunks to hypervisor hosts (such as ESXi, Hyper-V and Xen Server)
  • Providing more direct access to external storage or other devices (commonly used when the host is behind a gateway device)

You can add and remove VLAN trunks to a server's interface. The VLAN and server for the VLAN trunk must reside in the same pod as the server whose network interface is being connected. VLANs and their trunks must also be in the same network because private VLANs can only be trunked to private interfaces and public VLANs can only be trunked to public interfaces.

You cannot establish VLAN trunks against management ports.

Learning about network interfaces

Network component groups are multiple physical interfaces participating in a logical redundant connection. A device can have multiple network interfaces and network interface groups. When you establish a trunk to any member in the group, that VLAN trunk is replicated to all group members.

Managing VLAN trunks using the UI

You can establish or remove VLAN trunks using the UI.

When you want to change multiple VLAN trunks with a bare metal server, consider using the bare metal server page that can affect multiple VLAN trunks at a time. For more information, see bare metal VLAN trunks.

Creating VLAN trunks using the UI

Create a VLAN trunk using the console by taking the following steps:

  1. From your browser, open the IBM Cloud console and log in to your account.
  2. From the console, click the Navigation Menu icon Navigation Menu icon and select Classic Infrastructure.
  3. Select Network > IP Management > VLANs.
  4. Select a VLAN by clicking on its fully qualified name in the list of VLANs.
  5. Click Attach trunk in the Devices with trunks section.
  6. Select a resource from the devices list in the panel that appears.
  7. Click Attach to establish the trunk, or click Cancel to close the panel without adding the trunk.

Add VLANs as trunks to a network component. The VLANs given must be assigned to your account, and on the router to which this network component is connected. The native VLAN (networkVlanId/networkVlan) of the selected device cannot be added as a trunk.

You must manually configure your host's network with your added VLAN trunks before they can be used to pass traffic.

Removing VLAN trunks using the UI

Remove a VLAN trunk using the console by taking the following steps:

  1. From your browser, open the IBM Cloud console and log in to your account.
  2. From the console, click the Navigation Menu icon Navigation Menu icon and select Classic Infrastructure.
  3. Select Network > IP Management > VLANs.
  4. Select a VLAN by clicking on its fully qualified name in the list of VLANs.
  5. Select Remove from the Actions menu Actions menu of the trunk you want to remove.
  6. Click Remove trunk to remove the trunk, or click Cancel to close the panel without removing the trunk.

Managing VLAN trunks using the API

You can create and remove VLAN trunks by using the API.

Creating VLAN trunks using the API

For more information on creating VLAN trunks using the API, see addNetworkVlanTrunks

Removing VLAN trunks using the API

For more information on removing VLAN trunks using the API, see clearNetworkVlanTrunks