HP vPars and Integrity Virtual Machines V6.1 Administrator Guide

10.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 will have access to the same VLANs as the existing
guest.
10.4.1.2 Displaying VLAN information
You can display the vswitches and ports on a vswitch used by a guest using the hpvmstatus
command. For example, to display 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 -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 hpvmstatus display.
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 disable a VLAN, use the following command:
# hpvmnet -S vswitch-name -u portid:portnum:vlanid:none
To display information about a specific VLAN port, include the -p option to the hpvmnet command.
For example, display VLAN information for port 2 on the vswitch named vmlan4, enter the following
command:
# hpvmnet -S vmlan4 -p 2
Vswitch Name : vmlan4
Max Number of Ports : 512
Port Number : 2
Port State : Active
Active VM : vm1
Untagged VlanId : 100
Reserved VMs : vm1
Adaptor : avio_lan
Tagged VlanId : none
To view the all the VLANs defined on the vswitch named vlan4, enter the following command:
# hpvmnet -S vmlan4 -p all
Vswitch Name : vmlan4
Max Number of Ports : 512
Configured Ports : 4
Port Number : 1
Port State : Active
10.4 Configuring VLANs 155