HP Integrity Virtual Machines 4.2: Installation, Configuration, and Administration

Table 8-1 Options to the hpvmnet Command (continued)
DescriptionOption
Specifies the network interface on the VM Host that the
new vswitch will use. For example, to associate a vswitch
to lan0, enter -n 0.
-n nic-id
Specifies the port number. To display information about
all ports, enter p all.
-p n
Specifies the command function should proceed without
asking for confirmation. By default, the command requires
confirmation, and does not proceed without it.
-Q
Restarts the vswitch information.
-r
Retrieves statistics of the vswitch specified by its number..
-s vswitch_number
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 134) 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
8.2 Creating and Managing vswitches 129