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

The localnet vswitch can be used as a local network ,and vNICs can be specified for a guest.
For example:
# hpvmmodify -P host1 -a network:lan::vswitch:clan0
NOTE: Never modify the guest configuration files directly. Always use the Integrity VM
commands to modify virtual devices and virtual machines. Failure to follow this procedure can
result in unexpected problems when guests are started.
The virtual network entry in the guest configuration file includes the guest information on the
left side of the equal sign (=), and VM Host information on the right. The data about the guest
LAN example includes the following information:
Bus 0 and device number 0 indicate the guest LAN hardware path.
lan(0,0)
Guest virtual MAC address.
0xEEEE4077E7EB
The vswitch name is clan1.switch(clan1)
The VLAN port number is 4.
4
Entering the lanscan command on the guest host1 results in the following:
# 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 0xEEEE4077E7EB 0 UP lan0 snap0 1 ETHER Yes 119
0/1/2/0 0x00306E3977AB 1 UP lan1 snap1 2 ETHER Yes 119
0/4/1/0 0x00306E4CE96E 2 UP lan2 snap2 3 ETHER Yes 119
NOTE: Do not include the hardware address (for example, bus, device, mac-addr) with the
hpvmmodify command, because Integrity VM picks an available pcibus, pcislot and generates
a random MAC address.
The hardware path from the output of lanscan on the guest matches the path in the guest
configuration file. The Station Address in the lanscan output also matches the guest virtual
MAC address in the guest configuration file.
8.3.2 Removing vNICs
To remove a vNIC from a virtual machine's configuration, first stop the guest using the hpvmstop
command. Then use the -d option to the hpvmmodify command. The -d option allows you to
specify the vswitch and the vNIC information. The following is the syntax of the hpvmmodify
-d command:
hpvmmodify -P vm-name -d network:adapter-type:[hardware-address]:vswitch:vswitch-name
After making this change, start the guest using the hpvmstart command.
8.4 Configuring VLANs
A local area network (LAN) defines a broadcast domain in which bridges and switches connect
all end nodes. Broadcasts are received by every node on the LAN, but not by nodes outside the
LAN.
A virtual LAN (VLAN) defines logical connectivity instead of the physical connectivity defined
by a LAN. A VLAN provides a way to partition a LAN logically such that the broadcast domain
for a VLAN is limited to the nodes and switches that are members of the VLAN.
VLANs provide the following benefits:
134 Creating Virtual Networks