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

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. For information about
modifying virtual networks, see Section 8.3.1 (page 133).
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.1.1 Local Networks
Virtual network communication may be limited to virtual machines on the VM Host system
through the use of vswitches that are not connected to a physical NIC. A virtual network such
as this is called a local virtual network or simply a local network (localnet). To create a local
network, a vswitch must first be created using hpvmnet without the -n option so that it is not
connected to the physical network. For example, to create a local network vswitch named clan0,
enter the following commands:
# hpvmnet -c -S clan0
# hpvmnet -b -S clan0
All vNICs connected to that vswitch will then be on the same local network. The VM Host does
not communicate on local networks.
If you omit the -n option when you create a vswitch, the default is to use localnet.
This command adds a vNIC to the guest host1, which can be used to communicate with any
virtual machine connected to the localnet vswitch.
8.2.2 Changing vswitches
You can use the -C option to change the physical network interface card (pNIC) the guest has
in use. For example, enter the lanscan command, as follows:
# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/0/3/0 0x00306E4A93E6 0 UP lan0 snap0 1 ETHER Yes 119
0/1/2/0 0x00306E4A92EF 1 UP lan1 snap1 2 ETHER Yes 119
# hpvmnet
Name Number State Mode NamePPA MAC Address IP Address
======== ====== ======= ========= ======== ============== ===============
localnet 1 Up Shared N/A N/A
hostnet 296 Up Shared lan0 0x00306e4a93e6
If lan0 goes down, enter the following command to swap to use lan1:
# hpvmnet -C -S hostnet -n 1
# hpvmnet
Name Number State Mode NamePPA MAC Address IP Address
======== ====== ======= ========= ======== ============== ===============
localnet 1 Up Shared N/A N/A
hostnet 296 Up Shared lan1 0x00306e4a92ef
8.2.3 Cloning vswitches
Using the -N option with the -C option creates a new vswitch based on the changed vswitch
information. For example, the following command sequence displays the current vswitch
(vmvlan), modifies the vswitch to specify connection to lan1, and creates a new vswitch named
clnvlan. The final command displays information about the new vswitch.
# hpvmnet -S vmvlan
Name Number State Mode NamePPA MAC Address IP Address
======== ====== ======= ========= ======== ============== ===============
vmvlan 13 Up Shared lan900 0x00306e4bc7bf
130 Creating Virtual Networks