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. |
Specify the following options: |
|
vnet vnet-name |
Specify a vNET assigned to the vPort. |
bd bridge-domain-name |
Specify the Bridge Domain assigned to vPort. |
vlan vlan-id |
Specify a VLAN from 0 to 4095. |
vxlan 0..16777215 |
VXLAN assigned to vPort. |
ip ip-address |
Specify an IP address. |
owner node-name |
Specify the switch ID. |
intf intf-number |
Specify the interface number. |
inner-vlan 0..4095 |
Specify the Q-in-Q inner VLAN assigned to vPort. |
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. |
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. |
os os-string |
Specify an operating system, such as CentOS or Ubuntu, on the VM. |
portgroup portgroup-string |
Specify the Port Group name associated with VM MAC address. |
pg-vlans vlan-list |
Specify the valid VLANs for the port group. |
vswitch vswitch-string |
Specify the vitual switch name associated with the NIC. |
vs-type none|host-vs|distributed-vs|unknown |
Specify the virtual switch type. |
vnic-type untagged|tagged|trunked|vm-mgmt|vm-kernel|vMotion|vSAN|FTL|rep|p-NFC|r-NFC|mgmt|unknown |
Specify the type of vNIC attached to the VM or VM Kernel. |
config none|owner|ip|port|hostname|entity|cpus|os |
VM configuration. |
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 vPort 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-typeadded. 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