O'Reilly logo

Linux in a Nutshell, 6th Edition by Robert Love, Stephen Figgins, Ellen Siever, Arnold Robbins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

esxcfg-vswitch

Synopsis

esxcfg-vswitch options [switch]

Configure a virtual switch. The virtual switch handles port groups and VLAN tagging, and sets the uplink for virtual port groups. By default, there is a single virtual switch: vSwitch0. You can add additional switches and assign them to different physical network interfaces.

Options

-a, --add

Add a new virtual switch. You must provide a switch name.

-A name, --add-pg name

Add port group name to the switch.

-b, --get-cdp

Print the current Cisco Discovery Protocol (CDP) for the switch.

-B status, --set-cdp status

Set the CDP status for the switch. This may be down, listen, advertise, or both.

-d, --delete

Delete a virtual switch. If the switch has any ports in use, this will fail.

-D name, --del-pg name

Remove port group name from the switch.

-l, --list

List switches and their port groups.

-L interface, --link interface

Attach an uplink interface to a virtual switch. This should be an unused physical interface or vmnic.

-m size, --mtu size

Set the size of the Maximum Transfer Unit (MTU) for the switch. This will affect all interfaces attached to the virtual switch.

-M interface, --add-pg-uplink interface

Add an uplink interface to a port group.

-N interface, --del-pg-uplink interface

Remove an uplink interface from a port group.

-p name, --pg name

Specify name of the port group to use with the --vlan option. Specify ALL to apply to all port groups on the switch.

-U interface, --unlink interface

Remove an uplink interface from a virtual switch.

-v id

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required