Add Vtap Vm - H3C MSR 810 Command Reference Manual

Hide thumbs Also See for MSR 810:
Table of Contents

Advertisement

: Specifies a vNIC by its VF ID. The value range for the
vf vfid
vlan vlan-id
is 1 to 4094.
Usage guidelines
For an SR-IOV NIC to operate on a VM, you must install an SR-IOV NIC driver on the VM.
If you use this command on a running VM, you must restart the VM for the configuration to take effect.
If you use this command on a stopped VM, the configuration takes effect after you start the VM.
Examples
# In SR-IOV share mode, assign VF 0 as an SR-IOV NIC to VM centos7 and assign the NIC to
VLAN 10.
<Sysname> system-view
[Sysname] vmm
[Sysname-vmm] add sriov vm centos7 pf 0 vf 0 vlan 10

add vtap vm

Use
add vtap vm
Syntax
add vtap vm vm-name mac mac-address [ vlan vlan-id ]
Views
VMM view
Predefined user roles
network-admin
Parameters
: Specifies a VM by its name. The
vm-name
characters.
mac mac-address
hexadecimal string in the format of xxxx-xxxx-xxxx. The Comware system has reserved eight MAC
addresses for vTap NICs. To obtain the MAC addresses, use the
command.
vlan vlan-id
argument is 1 to 4094.
Usage guidelines
You can add a vTap NIC only to one VM. To display the MAC addresses of NICs that have been
added to a VM, use the
If you add a vTap NIC to a VM on a running VM, you must restart the VM for the configuration to take
effect. If you add a vTap NIC to a VM on a stopped VM, the configuration takes effect after you start
the VM.
Examples
# Add a vTap NIC to VM centos7 and the MAC address of the NIC is 0010-1110-5872. Assign the
NIC to VLAN 10.
<Sysname> system-view
[Sysname] vmm
[Sysname-vmm] add vtap vm centos7 mac 0010-1110-5872 vlan 10
: Specifies a VLAN for the VF interface. The value range for the
to add a vTap NIC to a VM.
: Specifies a vTap NIC by its MAC address. The
: Specifies a VLAN for the vTap interface. The value range for the
display vminterface
argument is a case-sensitive string of 1 to 30
vm-name
command.
4
argument is 0 to 7.
vfid
vlan-id
argument is a
mac-address
add vtap vm vm-name mac ?
argument
vlan-id

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents