switch-vnic-create
This command is used to create a virtual Network Interface Card (vNIC) on the switch.
Syntax switch-vnic-create
ip ip-address |
Specify the IP address of the vNIC. |
netmask netmask |
Specify the netmask. |
assignment [none|dhcp|dhcpv6|autov6] |
Specify the method of IP address assignment. |
linklocal ip-address |
Specify the IPv6 link local IP address. |
vnet vnet name |
Specify the VNET name. |
l2-net l2-net-name |
Specify the name of the Layer network. |
vlan vlan-id |
Specify the VLAN assigned to the vNIC. |
vlan-type public|private |
Optionally, specify the VLAN type assigned to the vNIC. |
if [mgmt|data|span] |
Specify the type of interface for the vNIC. |
alias-on alias-on-string |
Specify an alias if desired. |
vm-nic-type [e1000|virtio] |
Specify the type of vNIC. |
exclusive|no-exclusive |
Specify if the vNIC is exclusive to a zone. Adding this parameter may improve performance on the vNIC. |
nic-enable|nic-disable |
Specify if the vNIC is enabled or disabled. |
secondary-macs secondary-macs-string |
Specify a secondary MAC address for the interface. |
sriov-vf|no-sriov-vf |
Specify if the NIC is an SRIOV (single root input/output virtualizatio) interface. |
mirror-traffic true|false |
Specify if you want to mirror traffic to the VNIC. |
if-nat-realm internal|external |
Specify a NAT interface realm. |
priority-tag|no-priority-tag |
Specify to add a VLAN 0 priority tag on forwarded traffic. |
Defaults None.
Access CLI
History
Version 1.2 |
Command introduced. |
Version 2.1 |
The parameters, exclusive, and nic added. |
Version 2.2.5 |
The parameter, secondary-macs, added. |
Version 2.4.1 |
The parameter, vxlan, deprecated. The parameter, vlan-type, added. |
Version 2.6.2 |
The parameters, sriov-vf, mirror-traffic, and if-nat-realm added. |
Version 3.0.0 |
The following parameters added: linklocal, vnet, l2-net. |
Version 3.1.0 |
The parameter, priority-tag|no-priority-tag, added. |
Usage Use this command to create vNICs on the switch. This is useful if you want to assign a vNIC to the server-switch without adding virtual services.
Examples To create a vNIC with an IP address of 192.168.1.47/24, on VLAN 101, data, and vNIC type e1000, and exclusive, use the following command:
CLI network-admin@switch > switch-vnic-create ip 192.168.1.47/24 vlan 101 if data vm-nic-type e1000 exclusive