Go to main content

Oracle® VM Server for SPARC 3.6 Administration Guide

Exit Print View

Updated: September 2019
 
 

Port VLAN ID

The Port VLAN ID (PVID) specifies the VLAN of which the virtual network device must be a member in untagged mode. In this case, the vsw device provides the necessary tagging or untagging of frames for the vnet device over the VLAN specified by its PVID. Any outbound frames from the virtual network that are untagged are tagged with its PVID by the virtual switch. Inbound frames tagged with this PVID are untagged by the virtual switch, before sending it to the vnet device. Thus, assigning a PVID to a virtual network implicitly means that the corresponding virtual network port on the virtual switch is marked untagged for the VLAN specified by the PVID. You can have only one PVID for a virtual network device.

The corresponding virtual network interface, when configured without a VLAN ID and using only its device instance, results in the interface being implicitly assigned to the VLAN specified by the virtual network's PVID.

For example, if you were to create virtual network instance 0 using one of the following commands and if the pvid= argument for the vnet has been specified as 10, the vnet0 interface would be implicitly assigned to belong to VLAN 10. Note that the following commands show the vnet0 interface names, which pertain to Oracle Solaris 10. For Oracle Solaris 11, use the generic name instead, such as net0.

  • Oracle Solaris 10 OS: Use the ifconfig command.

    # ifconfig vnet0 plumb
  • Oracle Solaris 11 OS: Use the ipadm command.

    # ipadm create-ip net0