HP Integrity Virtual Machines Installation, Configuration, and Administration Version A.03.50

Table 8-1 Options to the hpvmnet Command (continued)
DescriptionOption
Specifies the command function should proceed without
asking for confirmation. By default, the command requires
confirmation, and does not proceed without it.
-Q
Retrieves statistics.
-s
Specifies the name of the virtual switch. The vswitch name
is limited to 8 characters and must be unique on the VM
Host.
-S vswitch_name
Configures the port portnum on the virtual switch so that
it is isolated to the VLAN specified by vlanid. See
Section 8.4: “Configuring VLANs” (page 116) for more
information.
-u portid:portnum:vlanid:[vlanid | none]
Enables verbose mode, displaying information detailed
information about one or all vswitches.
-V
Displays the version number of the hpvmnet command
in addition to the vswitch information.
-v
Changes the specified vswitch. If used with the -N option,
the changes are made to the cloned vswitch. You must
include either the -S or -s option.
-C
Creates a new vswitch based on the existing vswitch. For
new_vswitch_name, specify the unique name of the new
virtual switch. The name of the vswitch is limited to eight
characters. You must include either the S or -s option.
-N new-vswitch-name
The following command creates a virtual switch called clan1 that is associated with lan1. The
second hpvmnet command displays information about the clan1 vswitch.
# hpvmnet -c -S clan1 -n 1
# hpvmnet
Name Number State Mode PPA MAC Address IP Address
======== ====== ======= ========= ====== ============== ===============
localnet 1 Up Shared N/A N/A
myswitch 2 Up Shared N/A N/A
clan1 5 Down Shared lan1
The physical point of attachment (PPA) for clan1 is 1. Two vswitches (localnet and lan0)
communicate over the localnet.
To boot a vswitch, enter the hpvmnet command with the -b option. For example, to boot the
vswitch named clan1, enter the following command:
# hpvmnet -S clan1 -b
# hpvmnet -v
Name Number State Mode PPA MAC Address IP Address
======== ====== ======= ========= ====== ============== ===============
localnet 1 Up Shared N/A N/A
myswitch 2 Up Shared N/A N/A
clan1 5 Up Shared lan1 0x00306e3977ab
Note that clan1 is associated with the network interface on the VM Host that has MAC address
0x00306e3977ab (this is not the MAC address of any virtual machine connected to this vswitch).
For information about connecting vswitches to guests, see Chapter 3 (page 31). For information
about modifying virtual networks, see Section 8.2.1.2: “Configuring Guest Virtual Networks”
(page 112).
You can create multiple vswitches associated with the same host physical NIC. However, you
cannot boot (hpvmnet b) more than one of them at the same time.
8.2 Creating and Managing vswitches 111