HP Integrity Virtual Machines Installation, Configuration, and Administration
-r
Stops and restarts a vswitch.
-n nic-id
Designates the network interface on the VM Host that this vswitch will use. Network interfaces
are displayed by the lanscan command. If -n is not specified when creating a vswitch, a
local vswitch will be created.
-u portid:portnumber:vlanid:{vlan-id | none }
Specifies the VLAN identifier for the specific vswitch and port. Configure VLANs by
specifying the number of the port on the vswitch (portnumber) to use for VLAN
communication, and the VLAN identifier (vlan-id). Virtual machines that are configured
to use the VLAN can communicate with one another. To disable a VLAN, specify none for
the VLAN identifier.
Only virtual machines that are configured with the same VLAN identifier on their ports can
communicate with one another. To disable VLANs on a port , specify none for the VLAN
identifier. Virtual machines that do not have any VLANs configured on their vswitch port
(which is the default) cannot communicate over that port with virtual machines that have a
VLAN configured on their vswitch port.
The port number is used to reserve a specific port for a particular virtual machine's network
resource. This port number can be used later in the hpvmnet command to configure VLAN
rules on the port. You can also first set up VLAN rules on the virtual switch and later create
virtual machines referencing the specific port numbers.
-p {all | portid}
Specifies the port number on the vswitch. To specify all the ports on the vswitch, enter all.
This command displays information about VLAN ports configured for the specified vswitch.
Do not use the -p option with the -V option.
-C
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.
-N new-vswitch-name
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.
RETURN VALUES
The hpvmnet command exits with one of the following values:
0: Successful completion.
1: One or more error conditions occurred.
DIAGNOSTICS
The hpvmnet command displays error messages for any of the following conditions:
• An invalid option is specified.
• An invalid value is specified for an option.
• vswitch-name or vswitch-number does not exist, cannot be accessed, is not a vswitch, or is
corrupt.
• A value was omitted for an argument that requires one, or a value was supplied for an
argument that does not take one.
• The hpvmnet command and Integrity Virtual Machines are at different revision levels.
EXAMPLES
Create the vswitch switch2 on lan0:
207