6.0

Table Of Contents
Getting Started with vSphere Command-Line Interfaces
128 VMware, Inc.
vicfg-vmknic <conn_options> --unset-ip <X:X:X::/X> VMSF-VMK-363
vicfg-vmknic <conn_options> --enable-ipv6 false VMSF-VMK-363
Setting Up vSphere Networking with vSphere Distributed Switch
Adistributedswitchfunctionsasasinglevirtualswitchacrossallassociatedhosts.Adistributedswitchallows
virtualmachinestomaintainaconsistentnetworkconfigurationastheymigrateacrossmultiplehosts.See
“NetworkingUsingvSphereDistributedSwitches”onpage 115.
LikeavSpherestandardswitch,eachdistributedswitchisanetworkhub
thatvirtualmachinescanuse.A
distributedswitchcanforwardtrafficinternallybetweenvirtualmachinesorlinktoanexternalnetworkby
connectingtouplinkadapters.
Eachdistributedswitchcanhaveoneormoredistributedportgroupsassignedtoit.Distributedportgroups
groupmultipleportsunderacommonconfigurationand
provideastableanchorpointforvirtualmachines
thatareconnectingtolabelednetworks.Eachdistributedportgroupisidentifiedbyanetworklabel,whichis
uniquetothecurrentdatacenter.AVLANID,whichrestrictsportgrouptraffictoalogicalEthernetsegment
withinthephysicalnetwork,is
optional.
YoucancreatedistributedswitchesbyusingthevSphereWebClient.Afteryouhavecreatedadistributed
switch,youcanaddhostsbyusingthevSphereWebClient,createdistributedportgroups,andedit
distributedswitchpropertiesandpolicieswiththevSphereWebClient.Youcanaddandremoveuplink
ports
byusingvicfg-vswitch.
SeethevSphereNetworkingdocumentationandthewhitepaperavailablethroughtheResourceslinkat
http://www.vmware.com/go/networkingforinformationaboutdistributedswitchesandhowtoconfigure
themusingthevSphereWebClient.
Youcanaddandremovedistributedswitchuplinkportswithvicfg-vswitch.
Afterthedistributedswitchhasbeen
setup,youcanusevicfg-vswitchtoaddorremoveuplinkports.
Specifyoneoftheoptionslistedin“ConnectionOptionsforvCLIHostManagementCommands”onpage 18
inplaceof<conn_options>.
Addanuplinkport.
vicfg-vswitch <conn_options> --add-dvp-uplink <adapter_name> --dvp <DVPort_id>
<dvswitch_name>
Removeanuplinkport.
vicfg-vswitch <conn_options> --del-dvp-uplink <adapter> --dvp <DVPort_id> <dvswitch_name>
Managing Standard Networking Services in the vSphere Environment
YoucanusevCLIcommandstosetupDNS,NTP,SNMP,andthedefaultgatewayforyourvSphere
environment.
Setting the DNS Configuration
YoucansettheDNSconfigurationwithESXCLIorwithvicfg-dns.
Setting the DNS Configuration with ESXCLI
Theesxcli network ip dnscommandlistsandspecifiestheDNSconfigurationofyourESXihost.
I
MPORTANTInvSphere5.0,youcannotcreatedistributedvirtualswitcheswithESXCLI.
IMPORTANTYoucannotaddandremoveuplinkportswithESXCLI.
IMPORTANTIfyoutrytochangethehostordomainnameortheDNSserveronhoststhatuseDHCP,anerror
results.