HP Integrity Virtual Machines 4.3: Installation, Configuration, Administration

# hpvmnet -S clan1 -d
hpvmnet: Remove the vswitch 'clan1'? [n/y] y
The default command function (if you press Enter) is to not perform the function of the command.
To perform the command function, enter y.
In the case of commands where a confirmation is required, such as the hpvmnet -h command,
you can include the Q option to override the confirmation process. This is useful in scripts and
processes that are not interactive. For example, to stop a vswitch (clan1) without requiring
confirmation from the user, enter the following commands:
# hpvmnet
Name Number State Mode NamePPA MAC Address IP Address
======== ====== ======= ========= ======== ============== ===============
localnet 1 Up Shared N/A N/A
clan1 2 Up Shared lan0 0x00306e39f70b
# hpvmnet -S clan1 -h -Q
# hpvmnet
Name Number State Mode NamePPA MAC Address IP Address
======== ====== ======= ========= ======== ============== ===============
localnet 1 Up Shared N/A N/A
clan1 2 Down Shared lan0
When an active vswitch is deleted, the VM Host automatically determines that the vswitch is
gone. When the vswitch is recreated, the guest network automatically becomes functional again.
7.2.5 Recreating vswitches
To change the vswitch to use another pNIC on the VM Host (for example, to change from lan0
to lan1), follow this procedure:
1. Delete the vswitch that was associated with lan0. For example:
# hpvmnet -S myswitch -h -Q
# hpvmnet -S myswitch -d
2. Create a new vswitch associated with lan1. For example:
# hpvmnet -S myswitch -c -n 1
3. Add a new vNIC to your guest using the new vswitch. For example:
# hpvmmodify -P guestname -a network:lan:,,:vswitch:myswitch
7.2.6 Starting vswitches
Virtual switches (vswitches) start automatically when the VM Host system is started. You can
start the vswitch manually using the b option to the hpvmnet command. For example, the
following command boots the vswitch named clan1:
# hpvmnet -S clan1 -b
You must restart a vswitch after the following events:
The MAC address corresponding to the LAN number being used by the virtual switch is
changed on the VM Host (either by swapping the network adapter associated with the
vswitch or associating the vswitch with a different network adapter).
The way the network adapter accepts and passes on packets to the next network layer is
changed. This can occur as a result of the using the ifconfig or lanadmin command to
set CKO on or off.
If you use the hpvmmodify command to change the adapter type for a virtual NIC (vswitch
port).
7.2 Creating and Managing vswitches 129