HP Integrity Virtual Machines 4.2: Installation, Configuration, and Administration
8.4.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 16-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 : 100
 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 : 100
 Configured Ports : 4
 Port Number : 1
 Port State : Active
 Active VM : vm1
 Untagged VlanId : none
 Reserved VMs : vm1
 Adaptor : avio_lan
 Tagged VlandID : none
Port Number : 2
 Port State : Active
 Active VM : vm1
 Untagged VlanId : 100
 Reserved VMs : vm1
 Adaptor : avio_lan
 Tagged VlanID : none
8.4 Configuring VLANs 137










