vport-modify

This command is used to modify a virtual port on a switch. Virtual ports track information across nodes on the fabric.

Syntax   vport-modify

mac mac-address

Specify the MAC address of the vPort.

vlan vlan-id

Specify a VLAN from 0 to 4095.

vxlan vxlan-id

Specify a VLAN from 0 to 16777215.

vnet vnet-name

Specify a VNET assigned to the vPort.

ip ip-address

Specify the IP address of the vPort.

Specify any of the following options:

owner node-name

Specify the switch ID.

public-vlan vlan-id

Specify the ID of the public VLAN.

num-ips num-ips-number

Specify the number of IP addresses for the vPort.

intf intf-number

Specify the interface number.

config-intf config-intf-number

Specify the configuration interface number.

svc-name svc-name-string

Specify the vCenter connection service name.

hostname hostname-string

Specify the host name of the switch.

entity entity-string

Specify the VM or VM Kernel device name.

power none|powered-off|powered-on|standby|suspended|unknown

Specify the vPort entry power status.

cpus cpus-number

Specify the number of CPUs assigned to the VM.

disk disk-number

Specify the disk number of the VM location.

os os-string

Specifies an operating system, such as CentOS or Ubuntu, on the VM.

rem-switch node-name

Specify the remote switch for the vPort.

hw-index hw-index-number

Specify the hardware index number.

rt-if rt-if-string

Specify the router interface.

hw-flags invalid-vlan|invalid-port

Specify the hardware flags.

Defaults   None

Access   CLI

History   

Version 2.2

Command introduced.

Version 2.3

The parameters, num-ips and vm-status, added.

Version 2.4

The parameters, hw-index and rt-if, added.

Version 2.4.1

The parameters, vnet, hw-flags, and public-vlan, added. The parameter, blocked-ports, deprecated.

Version 2.6.2

The parameter, svc-name, power, entity, portgroup, pg-vlans, vswitch, vs-type, and vnic-type, added.

The parameters, hypervisor, vm-id, vm-name, vm-flavor, vm-status, memory, deprecated.

Usage   Use this command to modify a vPort configuration on the switch. vPorts are mirrored across the fabric so that every switch knows about all the L2 entries on the fabric. This is useful for troubleshooting connections across the fabric.

Examples  To modify a vPort with the MAC address of 06:60:00:02:10:38, IP address of 192.168.11.11, and change the VLAN to 107, use the following syntax:

CLI network-admin@switch > vport-modify mac 06:60:00:02:10:38 vlan 107 ip 192.168.11.11

See Also   

vport-create

vport-delete

vport-history-show

vport-settings-modify

vport-settings-show

vport-show