6.0

Table Of Contents
Getting Started with vSphere Command-Line Interfaces
136 VMware, Inc.
Enabled: true
Loaded: true
esxcli <conn_options> network firewall ruleset list --ruleset-id sshServer
Name Enabled
--------- -------
sshServer true
2EnablethesshServerrulesetifitisdisabled.
esxcli <conn_options> network firewall ruleset set --ruleset-id sshServer --enabled true
3 ObtainaccesstotheESXiShellandcheckthestatusoftheallowedAllflag.
esxcli <conn_options> network firewall ruleset allowedip list --ruleset-id sshServer
Ruleset Allowed IP Addresses
--------- --------------------
sshServer All
SeeGettingStartedwithvSphereCommandLineInterfacesforinformationonaccessingtheESXiShell.
4SetthestatusoftheallowedAllflagtofalse.
esxcli <conn_options> network firewall ruleset set --ruleset-id sshServer --allowed-all false
5AddthelistofallowedIPaddresses.
esxcli <conn_options> network firewall ruleset allowedip add --ruleset-id sshServer
--ip-address 192.XXX.1.0/24
esxcli <conn_options> network firewall ruleset allowedip add --ruleset-id sshServer
--ip-address 192.XXX.10.10
6ChecktheallowedIPaddresslist.
esxcli <conn_options> network firewall ruleset allowedip list --ruleset-id sshServer
Ruleset Allowed IP Addresses
--------- -----------------------------
sshServer 192.XXX.10.10, 192.XXX.1.0/24
Monitoring VXLAN
Theesxcli network vswithch dvs vmware vxlannamespacesupportscommandsforexploringVXLAN
configurationdetails.Foramoredetailedexampleofthisfunctionality,seetheVMwarevSphereblogpost
aboutthetopic.
1ListallavailableVXLANvNetworkDistributedSwitches.
esxcli network vswitch dvs vmware vxlan list
2ViewtheVXLANstatisticslevel.
esxcli network vswitch dvs vmware vxlan config stats get
3 Changethestatisticslevel,forexample,from0to1.
esxcli network vswitch dvs vmware vxlan config stats set --level 1
Youcandecidetofilterstatisticsasfollows:
ForavNetworkDistributedSwitch,localizedtoanESXihost
ForaVTEPVMkernelinterface
ForaVXLANsegmentID
ForavNetworkDistributedSwitchportID
4ViewstatisticsforaspecificvNetworkDistributedSwitch.
esxcli network vswitch dvs vmware vxlan config stats list --vds-name Cluster01-VXLAN-VDS
5ViewstatisticsforaVXLANsegmentID.
ListtheavailablesegmentIDs
esxcli network vswitch dvs vmware vxlan network list -vds-name Cluster01-VXLAN-VDS