Skip to Content
Linux in a Nutshell, 6th Edition
book

Linux in a Nutshell, 6th Edition

by Ellen Siever, Stephen Figgins, Robert Love, Arnold Robbins
September 2009
Beginner
942 pages
85h 34m
English
O'Reilly Media, Inc.
Content preview from Linux in a Nutshell, 6th Edition

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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Unix in a Nutshell, 4th Edition

Unix in a Nutshell, 4th Edition

Arnold Robbins
Linux Under the Hood

Linux Under the Hood

Sander van Vugt
Linux Kernel in a Nutshell

Linux Kernel in a Nutshell

Greg Kroah-Hartman

Publisher Resources

ISBN: 9780596806088Errata Page