HP-UX vPars and Integrity VM V6.3 Administrator Guide

Port number.
State of the port. Table 16 (page 123) lists the possible VLAN port states.
Table 16 VLAN port states
DescriptionState
The port is active and is allocated to a running guest. No other guests with the same vNIC
with the same vswitch and port can start.
Active
The port is inactive and is allocated to a running guest. No other guests with the same vNIC
with the same vswitch and port can start.
Down
At least one guest reserved the port for its vNIC, but no guest that uses the port is running.Reserved
No guest reserved the port for its vNIC. When a VLAN is configured on the port, that port is
displayed as Available. If no VLAN is configured, the port is not displayed.
Available
The untagged VLAN ID number (if any).
The number of VMs that have access to the VLAN.
The names of VMs that are up and that have access to the VLAN.
8.4.1.1 Cloning guests with VLAN information
If you use the hpvmclone command to clone guests, the operation automatically assigns new port
numbers for new guests. To assign the same port number to the new guest, use the S option, as
follows:
# hpvmclone -P vm1 -N vmclone1 -S
This command creates a new guest (vmclone1) based on the existing guest vm1, and preserves
the vswitch port number so that the new guest has access to the same VLANs as the existing guest.
8.4.1.2 Viewing VLAN information
You can view the vswitches and ports on a vswitch used by a guest using the hpvmstatus
command. For example, to view the network information about the guest named vm1, enter the
following command:
# hpvmstatus -P vm1
.
.
.
[Network Interface Details]
Interface Adaptor Name/Num PortNum Bus Dev Ftn Mac Address
========= ========== ========== ======= === === === ==============
vswitch lan localnet 1 0 1 0 de-19-57-23-74-bd
vswitch lan localnet 2 0 2 0 7a-fb-4e-68-4f-5f
vswitch lan vmlan4 1 0 4 0 6a-e8-c6-fa-b5-bc
vswitch lan vmlan4 2 0 5 0 fa-18-82-9f-1a-95
vswitch lan vmlan900 1 0 6 0 86-81-0b-6d-52-36
vswitch lan vmlan900 2 0 7 0 6a-b9-cf-06-02-94
.
.
.
The preceding example shows the Network Interface Details portion of the output of the
hpvmstatus command. In the list of network interfaces, note that each virtual network connection
is associated with either port 1 or port 2 of several vswitches. The vswitch named vmlan4 is
associated with Bus/Dev/Ftn 0/4/0 on port 1 and with 0/5/0 on port 2.
To disconfigure a VLAN, use the following command:
# hpvmnet -S vswitch-name -u portid:portnum:vlanid:none
8.4 Configuring VLANs 123