This command is used to modify a virtual Network Interface Card (vNIC) on the switch.

Syntax   switch-vnic-modify


nic nic-string

Specify the vNIC to modify.

Specify one or more of the following options:

ip ip-address

Specify the IP address of the vNIC.

netmask netmask

Specify the netmask.

assignment [none|dgcp|

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.


Specify if the vNIC is exclusive to a zone. Adding this parameter may improve performance on the vNIC.


Specify if the vNIC is enabled or disabled.

secondary-macs secondary-macs-string

Specify a secondary MAC address for the interface.


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.


Specify to add a VLAN 0 priority tag on forwarded traffic.

Defaults   None

Access   CLI


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 modify vNICs on the switch. This is useful if you want to assign a vNIC to the server-switch without adding virtual services.

Examples  To modify a vNIC with an IP address of, on VLAN 101, data, and change the vNIC type e1000, use the following command:

CLI network-admin@switch > switch-vnic-modify ip vlan 101 if data vm-nic-type e1000

See Also