Go to main content

Oracle® VM Server for SPARC 3.5 Administration Guide

Exit Print View

Updated: November 2017
 
 

Using VLAN Tagging

The Oracle VM Server for SPARC software supports 802.1Q VLAN-Tagging in the network infrastructure.

The virtual switch (vsw) and virtual network (vnet) devices support switching of Ethernet packets based on the virtual local area network (VLAN) identifier (ID) and handle the necessary tagging or untagging of Ethernet frames.

You can create multiple VLAN interfaces over a virtual network device in a guest domain. Use the Oracle Solaris 10 ifconfig command or the Oracle Solaris 11 dladm and ipadm commands to create a VLAN interface over a virtual network device. The creation method is the same as the method used to configure a VLAN interface over any other physical network device. The additional requirement in the Oracle VM Server for SPARC environment is that you must use the ldm command to assign VLANs to a vsw or vnet virtual network device. See the ldm(1M) man page.

Similarly, you can configure VLAN interfaces over a virtual switch device in an Oracle Solaris 10 service domain. VLAN IDs 2 through 4094 are valid. VLAN ID 1 is reserved as the default-vlan-id. You do not have to configure VLAN IDs on a virtual switch in an Oracle Solaris 11 service domain.

When you create a virtual network device on a guest domain, you must assign it to the required VLANs by specifying a port VLAN ID and zero or more VLAN IDs for this virtual network using the pvid= and vid= arguments to the ldm add-vnet command. This information configures the virtual switch to support multiple VLANs in the Oracle VM Server for SPARC network and switch packets using both MAC address and VLAN IDs in the network.

Any VLANs to be used by an Oracle Solaris 10 service domain must be configured on the vsw device. Use the ldm add-vsw or ldm set-vsw command to specify the pvid and vid property values.

You can change the VLANs to which a device belongs using ldm set-vnet or ldm set-vsw command.