ESXCLI Commands
esxcli network Commands
Command | Description | Options Help |
---|---|---|
network diag ping | Send ICMP echo requests to network hosts. |
|
network ens lcore add | Create ENS context. |
|
network ens lcore list | List ENS contexts. |
|
network ens lcore remove | Destroy ENS context. |
|
network ens lcore affinity get | Get the affinity for given ENS context. |
|
network ens lcore affinity set | Set affinity for given ENS context. |
|
network ens lcore switch add | Associate given ENS context with given switch. |
|
network ens lcore switch get | Get the switch associated with given ENS context. |
|
network ens lcore switch remove | Disassociate given ENS context from virtual switch. |
|
network ens maxLcores get | Get the maximum number of ENS contexts (lcores). |
|
network ens maxLcores set | Set the maximum number of ENS contexts. |
|
network firewall get | Get the firewall status. |
|
network firewall load | Load firewall module and rulesets configuration. |
|
network firewall refresh | Load ruleset configuration for firewall. |
|
network firewall set | Set firewall enabled status and default action. |
|
network firewall unload | Allow unload firewall module. |
|
network firewall ruleset list | List the rulesets in firewall. |
|
network firewall ruleset set | Set firewall ruleset status (allowedAll flag and enabled status). |
|
network firewall ruleset allowedip add | Add allowed ip address/range to the ruleset ruleset. |
|
network firewall ruleset allowedip list | list allowed ip addresses for rulesets. |
|
network firewall ruleset allowedip remove | Remove allowed ip address/range from the ruleset. |
|
network firewall ruleset client add | Add a new client to a firewall ruleset. This enables the firewall ruleset and increments the number of clients using the ruleset. |
|
network firewall ruleset client get | Show the number of clients using a firewall ruleset. |
|
network firewall ruleset client remove | Remove a client from a firewall ruleset. This decrements the number of clients using the ruleset and if the number reaches zero the ruleset is disabled. |
|
network firewall ruleset rule list | List the rules of each ruleset in firewall. |
|
network ip get | Get global IP settings |
|
network ip set | Update global IP settings |
|
network ip connection list | List active TCP/IP connections |
|
network ip dns search add | Add a search domain to the list of domains to be searched when trying to resolve an host name on the ESXi host. |
|
network ip dns search list | List the search domains currently configured on the ESXi host in the order in which they will be used when searching. |
|
network ip dns search remove | Remove a search domain from the list of domains to be searched when trying to resolve an host name on the ESXi host. |
|
network ip dns server add | Add a new DNS server to the end of the list of DNS servers to use for this ESXi host. |
|
network ip dns server list | Print a list of the DNS server currently configured on the system in the order in which they will be used. |
|
network ip dns server remove | Remove a DNS server from the list of DNS servers to use for this ESXi host. |
|
network ip interface add | Add a new VMkernel network interface. |
|
network ip interface list | This command will list the VMkernel network interfaces currently known to the system. |
|
network ip interface remove | Remove a VMkernel network interface from the ESXi host. A VMKernel network interface can be uniquely specified by --interface-name or --portgroup-name or --dvs-name/--dvport-id. i.e. Providing its name or its connection point are two ways to uniquely specify a VMKernel network interface. |
|
network ip interface set | This command sets the enabled status and MTU size of a given IP interface |
|
network ip interface ipv4 get | List the IPv4 addresses assigned to VMkernel network interfaces. |
|
network ip interface ipv4 set | Configure IPv4 setting for a given VMkernel network interface. |
|
network ip interface ipv4 address list | List the IPv4 addresses assigned to VMkernel network interfaces. |
|
network ip interface ipv6 get | Get IPv6 settings for VMkernel network interfaces. This does not include the IPv6 addresses which can be found in the "address list" command. |
|
network ip interface ipv6 set | Configure IPv6 settings for a given VMkernel network interface. |
|
network ip interface ipv6 address add | Add a static IPv6 address to a given VMkernel network interface. |
|
network ip interface ipv6 address list | This command will list all of the IPv6 addresses currently assigned to the system |
|
network ip interface ipv6 address remove | Remove an IPv6 address from a given VMkernel network interface. |
|
network ip interface tag add | Adds a tag on a given VMkernel network interface. Supported tags are: Management, VMotion, faultToleranceLogging, vSphereReplication, vSphereReplicationNFC, vSphereProvisioning, VSAN, VSANWitness, vSphereBackupNFC, PrecisionTimeProtocol, VSANReplication |
|
network ip interface tag get | Gets the tags set on the given VMkernel network interface. |
|
network ip interface tag remove | Removes a tag on a given VMkernel network interface. |
|
network ip ipsec sa add | Add a Security Association. |
|
network ip ipsec sa list | List configured Security Associations |
|
network ip ipsec sa remove | Operation to remove Security Association(s) |
|
network ip ipsec sp add | Add a Security Policy. |
|
network ip ipsec sp list | List configured Security Policys |
|
network ip ipsec sp remove | Operation to remove Security Policy |
|
network ip neighbor list | List ARP table entries |
|
network ip neighbor remove | Remove ARP table entries |
|
network ip netstack add | Add a new Netstack Instance. |
|
network ip netstack get | Get runtime/configuration settings for a given Netstack Instance. |
|
network ip netstack list | This command will list the VMkernel Netstack instances currently known to the system. |
|
network ip netstack remove | Remove a new Netstack Instance. |
|
network ip netstack set | Configure settings for a given Netstack Instance. |
|
network ip route ipv4 add | Add IPv4 route to the VMkernel. |
|
network ip route ipv4 list | List configured IPv4 routes |
|
network ip route ipv4 remove | Remove IPv4 route |
|
network ip route ipv6 add | Add IPv6 route to the VMkernel. |
|
network ip route ipv6 list | List configured IPv6 routes |
|
network ip route ipv6 remove | Remove IPv6 route from the VMkernel |
|
network multicast group list | List all the multicast group members. |
|
network nic down | Bring down the specified network device. |
|
network nic get | Get the generic configuration of a network device |
|
network nic list | This command will list the Physical NICs currently installed and loaded on the system. |
|
network nic set | Set the general options for the specified ethernet device. |
|
network nic up | Bring up the specified network device. |
|
network nic attachment add | Attach one uplink as a branch to a trunk uplink with specified VLAN ID. |
|
network nic attachment list | Show uplink attachment information. |
|
network nic attachment remove | Detach a branch uplink from its trunk. |
|
network nic coalesce get | Get coalesce parameters |
|
network nic coalesce set | Set coalesce parameters on a nic |
|
network nic coalesce high get | Get information about the behavior of a NIC when it sends or receives packets at high packet rate. |
|
network nic coalesce high set | Set parameters to control the behavior of a NIC when it sends or receives packets at high packet rate. |
|
network nic coalesce low get | Get information about the behavior of a NIC when it sends or receives packets at low packet rate. |
|
network nic coalesce low set | Set parameters to control the behavior of a NIC when it sends or receives packets at low packet rate. |
|
network nic cso get | Get checksum offload settings |
|
network nic cso set | Set checksum offload settings on a nic |
|
network nic dcb status get | Get the DCB information for a NIC. |
|
network nic eeprom change | Change EEPROM on a nic |
|
network nic eeprom dump | Dump device EEPROM |
|
network nic hwCap activated list | List activated hardware capabilities of physical NICs. |
|
network nic hwCap supported list | List supported hardware capabilities of physical NICs. |
|
network nic negotiate restart | Restart N-Way negotiation on a nic |
|
network nic pauseParams list | List pause parameters of all NICs |
|
network nic pauseParams set | Set pause parameters for a NIC |
|
network nic queue count get | Get netqueue count on a nic |
|
network nic queue count set | Set number of netqueues on a nic |
|
network nic queue filterclass list | List the netqueue supported filterclass of all physical NICs currently installed and loaded on the system. |
|
network nic queue loadbalancer list | List the load balancer settings of all the installed and loaded physical NICs. (S:supported, U:unsupported, N:not-applicable, A:allowed, D:disallowed). |
|
network nic queue loadbalancer set | Enable/disable netqueue load balancer setting on a NIC. |
|
network nic queue loadbalancer plugin list | Details of netqueue balancer plugins on all physical NICs currently installed and loaded on the system |
|
network nic queue loadbalancer plugin set | Enable/disable netqueue balancer plugin on a NIC |
|
network nic queue loadbalancer state list | Netqueue balancer state of all physical NICs currently installed and loaded on the system |
|
network nic queue loadbalancer state set | Enable/disable netqueue balancer on a NIC |
|
network nic register dump | Dump device registers |
|
network nic ring current get | Get current RX/TX ring buffer parameters of a NIC |
|
network nic ring current set | Set current RX/TX ring buffer parameters of a NIC |
|
network nic ring preset get | Get preset maximums for RX/TX ring buffer parameters of a NIC. |
|
network nic selftest run | Run self test |
|
network nic sg get | Get scatter-gather settings |
|
network nic sg set | Set scatter-gatter settings on a nic |
|
network nic software list | List software simulation settings of physical NICs currently installed and loaded on the system. |
|
network nic software set | Enable and disable software simulation settings on a NIC. |
|
network nic stats get | Get NIC statistics for a given interface. |
|
network nic tso get | Get TCP segmentation offload settings |
|
network nic tso set | Set TCP segmentation offload settings on a nic |
|
network nic vlan stats get | List VLAN statistics for active VLAN's on the NIC. |
|
network nic vlan stats set | Enable/disable VLAN statistics collection on the NIC. |
|
network port filter stats get | Filter statistics for a given port. |
|
network port stats get | Packet statistics for a given port. |
|
network sriovnic list | This command will list the SRIOV Enabled NICs (PFs) currently installed and loaded on the system. |
|
network sriovnic vf list | Get the generic configuration of VFs for SRIOV NIC. |
|
network sriovnic vf stats | Get statistics for given VF of a SRIOV NIC. |
|
network vm list | List networking information for the VM's that have active ports. |
|
network vm port list | List of active ports for a given VM. |
|
network vswitch dvs vmware list | List the VMware vSphere Distributed Switch currently configured on the ESXi host. |
|
network vswitch dvs vmware lacp config get | Get LACP configuration on DVS |
|
network vswitch dvs vmware lacp stats get | Get LACP stats on DVS uplinks |
|
network vswitch dvs vmware lacp status get | Get LACP status on DVS |
|
network vswitch dvs vmware lacp timeout set | Set long/short timeout for vmnics in one LACP LAG |
|
network vswitch standard add | Add a new virtual switch to the ESXi networking system. |
|
network vswitch standard list | List the virtual switches current on the ESXi host. |
|
network vswitch standard remove | Remove a virtual switch from the ESXi networking system. |
|
network vswitch standard set | This command sets the MTU size and CDP status of a given virtual switch. |
|
network vswitch standard policy failover get | Get the failover policy settings governing the given virtual switch |
|
network vswitch standard policy failover set | Configure the Failover policy for a virtual switch. |
|
network vswitch standard policy security get | Get the Security Policy governing the given virtual switch. |
|
network vswitch standard policy security set | Set the security policy for a given virtual switch |
|
network vswitch standard policy shaping get | Get the shaping policy settings for the given virtual switch |
|
network vswitch standard policy shaping set | Set the shaping policy settings for the given virtual switch |
|
network vswitch standard portgroup add | Allows the addition of a standard port group to a virtual switch. |
|
network vswitch standard portgroup list | List all of the port groups currently on the system. |
|
network vswitch standard portgroup remove | Remove a port group from the given virtual switch |
|
network vswitch standard portgroup set | Set the vlan id for the given port group |
|
network vswitch standard portgroup policy failover get | Get the network failover policy settings governing the given port group |
|
network vswitch standard portgroup policy failover set | Configure the Failover policy for a port group. These setting may potentially override virtual switch settings. |
|
network vswitch standard portgroup policy security get | Get the Security Policy governing the given port group. |
|
network vswitch standard portgroup policy security set | Set the security policy for a given port group |
|
network vswitch standard portgroup policy shaping get | Get the network shaping policy settings governing the given port group |
|
network vswitch standard portgroup policy shaping set | Set the shaping policy settings for the given port group |
|
network vswitch standard uplink add | Add an uplink to the given virtual switch. Note if this virtual switch has a NIC teaming policy assigned to it then the policy must also be modified to enable use of this uplink on this virtual switch |
|
network vswitch standard uplink remove | Remove an uplink from the given virtual switch. Note if this virtual switch has a NIC teaming policy assigned to it then the policy must also be modified to disable use of this uplink on this virtual switch |
|