EasyManua.ls Logo

H3C MSR 810 - Add Vtap VM

H3C MSR 810
69 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4
vf vfid: Specifies a vNIC by its VF ID. The value range for the vfid argument is 0 to 7.
vlan vlan-id: Specifies a VLAN for the VF interface. The value range for the vlan-id argument
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 to add a vTap NIC to a VM.
Syntax
add vtap vm vm-name mac mac-address [ vlan vlan-id ]
Views
VMM view
Predefined user roles
network-admin
Parameters
vm-name: Specifies a VM by its name. The vm-name argument is a case-sensitive string of 1 to 30
characters.
mac mac-address: Specifies a vTap NIC by its MAC address. The mac-address argument is a
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
add vtap vm vm-name mac ?
command.
vlan vlan-id: Specifies a VLAN for the vTap interface. The value range for the 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
display vminterface command.
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

Related product manuals