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

switch-vnic-delete

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

Syntax   switch-vnic-delete

nic nic-string

Specify the vNIC to delete from the switch. This is autogenerated when the vNIC is created.

Defaults   None.

Access   CLI

History   Command introduced in nvOS Version 1.2.1

Usage   Use this command to delete a vNIC from a switch. Use the switch-vnic-show command to display a list of configured vNICs on the switch.

Examples  To delete the vNIC, eth0.3, use the following command:

CLI network-admin@switch >switch-vnic-delete nic eth0.3

 switch-vnic-modify

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|dhcpv6]

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 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 192.168.1.47/24, on VLAN 101, data, and change the vNIC type e1000, use the following command:

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

switch-vnic-show

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

Syntax   switch-vnic-show

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|dhcpv6]

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 display information about vNICs on the switch.

Examples  To display a vNIC, use the following command:

CLI network-admin@switch > switch-vnic-show