NSX CLI Guide
Associated Commands:
CLI Description | Command |
---|---|
Clear the stats of a specific gateway interfaceClear the statistic counters for the specified gateway interface. |
clear gateway interface <dpd-uuid-lrouter-port-arg> stats
|
Delete VLAN and/or bond network interfaceDelete the specified VLAN network interface and all it's configuration, or the specified bond configuration, or both if a VLAN was configured over the bond. Users must configure an alternate interface for management. |
clear interface <configurable-interface-name>
|
Remove network IP configuration from the interfaceRemove all network configuration from the specified interface. |
clear interface <configurable-interface-name> ip
|
Clear the interface planeClear the network interface plane configuration. |
clear interface <configurable-interface-name> plane
|
Clear the stats of a specific logical router interfaceClear the statistic counters for the specified logical router interface. |
clear logical-router interface <dpd-uuid-lrouter-port-arg> stats
|
Display a gateway's interfacesDisplay interface information for the specified gateway. |
get gateway <dpd-uuid-lrouter-arg> interfaces
|
Display the interface stats for a gatewayDisplay the interface statistics for the specified gateway. |
get gateway <dpd-uuid-lrouter-arg> interfaces stats
|
Display information about a specific interface on the specified GatewayDisplay information about a specific interface on the specified Gateway |
get gateway <gateway-id> interface <gateway-interface-id>
|
Display all interfaces on the specified gatewayDisplay all interfaces on the specified gateway. |
get gateway <gateway-id> interfaces
|
Display a gateway interfaceDisplay interface information for the specified gateway and port. |
get gateway <uuid-arg> interface <uuid-arg>
|
Display interface instance for a gatewayDisplay information for the specified gateway instance. |
get gateway <uuid-arg> interface <uuid-arg>
|
Display gateway interface instance policy table referenceDisplay policy table reference information for the specified gateway instance. |
get gateway <uuid-arg> interface <uuid-arg> policy-table-ref
|
Display a gateway interface statisticsDisplay interface statistics for the specified gateway and port. |
get gateway <uuid-arg> interface <uuid-arg> stats
|
Display interface instance stats for a gatewayDisplay interface instance stats for a gateway. |
get gateway <uuid-arg> interface <uuid-arg> stats
|
Display a gateway interface statisticsDisplay interface statistics for the specified gateway and port. |
get gateway <uuid-arg> interface <uuid-arg> stats <ip-version>
|
Display interface instance stats for a gateway (ipv4)Display interface instance stats for a gateway (ipv4). |
get gateway <uuid-arg> interface <uuid-arg> stats ipv4
|
Display interface instance stats for a gateway (ipv6)Display interface instance stats for a gateway (ipv6). |
get gateway <uuid-arg> interface <uuid-arg> stats ipv6
|
Display interfaces for a gatewayDisplay interface information for the specified gateway. |
get gateway <uuid-arg> interfaces
|
Display interface info for a gatewayDisplay interface information for the specified gateway. |
get gateway interface <dpd-uuid-lrouter-port-arg>
|
Display ARP proxy table for a gateway portDisplay ARP proxy for a gateway port. |
get gateway interface <dpd-uuid-lrouter-port-arg> arp-proxy
|
Display interface-group info for gateway interfaceDisplay interface-group info for gateway interface |
get gateway interface <dpd-uuid-lrouter-port-arg> interface-groups high-availability
|
Display the neighbor table of the gateway interfaceDisplay the neighbor table for the specified gateway interface. |
get gateway interface <dpd-uuid-lrouter-port-arg> neighbors
|
Display shadow port mac list for gateway portDisplay shadow port mac list for gateway port |
get gateway interface <dpd-uuid-lrouter-port-arg> shadow-macs
|
Get the shadow port MAC address selected for specific IP addressGet the shadow port MAC address selected for specific IP address |
get gateway interface <dpd-uuid-lrouter-port-arg> shadow-macs ip <ip46-address>
(Deprecated)
|
Get the shadow port MAC address selected for specific source and destination IP addressesGet the shadow port MAC address selected for specific source and destination IP addresses |
get gateway interface <dpd-uuid-lrouter-port-arg> shadow-macs source-ip <ip46-address> dest-ip <ip46-address>
|
Display the gateway interface statsDisplay statistics for the specified gateway interface. |
get gateway interface <dpd-uuid-lrouter-port-arg> stats
|
Display a gateway's interfacesDisplay interface information for the gateway in the VRF context. |
get gateway interfaces
|
Display the gateway portsDisplay information for all gateway interfaces. |
get gateway interfaces
|
Display the gateway interface statsDisplay statistics for all gateway interfaces. |
get gateway interfaces stats
|
Display the interface statistics of the gatewayDisplay the interface statistics for the gateway in the VRF context. |
get gateway interfaces stats
|
Display network interface propertiesDisplay information about the specified network interface. |
get interface <edge-view-interface-name>
|
Display network interface propertiesDisplay information about the specified network interface. |
get interface <interface-name-arg>
|
Display the logical router interface-groups high availability statusDisplay the high availability status of interface-groups for the logical router in the VRF context. |
get interface-groups high-availability
|
Display a logical router's interfacesDisplay interface information for the logical router in the VRF context. |
get interfaces
|
Display all network interface propertiesDisplay information about all network interfaces. |
get interfaces
|
Display the interface statistics of the logical routerDisplay the interface statistics for the logical router in the VRF context. |
get interfaces stats
|
Display a logical router's interfacesDisplay interface information for the specified logical router. |
get logical-router <dpd-uuid-lrouter-arg> interfaces
(Deprecated)
|
Display the interface stats for a logical routerDisplay the interface statistics for the specified logical router. |
get logical-router <dpd-uuid-lrouter-arg> interfaces stats
(Deprecated)
|
Display information about a specific interface on the specified logical routerDisplay information about a specific interface on the specified logical router. |
get logical-router <logical-router-id> interface <logical-router-interface-id>
(Deprecated)
|
Display all interfaces on the specified logical routerDisplay all interfaces on the specified logical router. |
get logical-router <logical-router-id> interfaces
(Deprecated)
|
Display logical router high availability status of interface-groupsDisplay the high availability status of interface-groups for the logical router |
get logical-router <nsxa-uuid-service-router-arg> interface-groups high-availability
|
Display interface instance for a logical routerDisplay information for the specified logical router instance. |
get logical-router <uuid-arg> interface <uuid-arg>
(Deprecated)
|
Display a logical router interfaceDisplay interface information for the specified logical router and port. |
get logical-router <uuid-arg> interface <uuid-arg>
(Deprecated)
|
Display logical router interface instance policy table referenceDisplay policy table reference information for the specified logical router instance. |
get logical-router <uuid-arg> interface <uuid-arg> policy-table-ref
(Deprecated)
|
Display a logical router interface statisticsDisplay interface statistics for the specified logical router and port. |
get logical-router <uuid-arg> interface <uuid-arg> stats
(Deprecated)
|
Display interface instance stats for a logical routerDisplay interface instance stats for a logical router. |
get logical-router <uuid-arg> interface <uuid-arg> stats
(Deprecated)
|
Display a logical router interface statisticsDisplay interface statistics for the specified logical router and port. |
get logical-router <uuid-arg> interface <uuid-arg> stats <ip-version>
(Deprecated)
|
Display interface instance stats for a logical router (ipv4)Display interface instance stats for a logical router (ipv4). |
get logical-router <uuid-arg> interface <uuid-arg> stats ipv4
(Deprecated)
|
Display interface instance stats for a logical router (ipv6)Display interface instance stats for a logical router (ipv6). |
get logical-router <uuid-arg> interface <uuid-arg> stats ipv6
(Deprecated)
|
Display interfaces for a logical routerDisplay interface information for the specified logical router. |
get logical-router <uuid-arg> interfaces
(Deprecated)
|
Display interface info for a logical routerDisplay interface information for the specified logical router. |
get logical-router interface <dpd-uuid-lrouter-port-arg>
(Deprecated)
|
Display ARP proxy table for a logical router portDisplay ARP proxy for a logical router port. |
get logical-router interface <dpd-uuid-lrouter-port-arg> arp-proxy
(Deprecated)
|
Display interface-group info for logical router portDisplay interface-group info for logical router port |
get logical-router interface <dpd-uuid-lrouter-port-arg> interface-groups high-availability
|
Display shadow port mac list for lrouter portDisplay shadow port mac list for lrouter port |
get logical-router interface <dpd-uuid-lrouter-port-arg> shadow-macs
(Deprecated)
|
Get the shadow port MAC address selected for specific IP addressGet the shadow port MAC address selected for specific IP address |
get logical-router interface <dpd-uuid-lrouter-port-arg> shadow-macs ip <ip46-address>
(Deprecated)
|
Get the shadow port MAC address selected for specific source and destination IP addressesGet the shadow port MAC address selected for specific source and destination IP addresses |
get logical-router interface <dpd-uuid-lrouter-port-arg> shadow-macs source-ip <ip46-address> dest-ip <ip46-address>
|
Display the logical router interface statsDisplay statistics for the specified logical router interface. |
get logical-router interface <dpd-uuid-lrouter-port-arg> stats
(Deprecated)
|
Display the logical router portsDisplay information for all logical router interfaces. |
get logical-router interfaces
(Deprecated)
|
Display the logical router interface statsDisplay statistics for all logical router interfaces. |
get logical-router interfaces stats
(Deprecated)
|
Display information about the specified logical router port.Display information about the specified logical router port. |
get logical-router-port <logical-router-interface-id>
|
Display logical objects related to the specified logical portDisplay logical objects related to the specified logical port. |
get port <uuid-string-arg> [api-args]
|
Display PortsDisplay information about all ports. |
get ports
|
Display port informationDisplay port information on the current host. |
get ports
|
Set the interface plane modeSet the plane property of the interface and optionally configure the IP address. By default, the plane property is not configured, the dataplane component takes control of the interface for the data path and the interface is not visible to the Linux kernel. If plane is set to mgmt , it is reported as such to the management plane (MP) via MPA, and the corresponding interface is not consumed by the dataplane for dataplane operations and is available for configuration from the CLI. If it is set to debug , the dataplane does not consume the interface for dataplane operations and the interface is available for configuration from the CLI. Optionally, you can configure the interface with a DHCP or static IP address. If you configure a static IP address, make sure an appropriate network route is also configured. You can use the optional For NSX Manager or a controller, you cannot configure the |
set interface <interface-name> [ip <prefix-ipv46> [gateway <gateway-ip>] | dhcp] plane <plane>
|
Set network IP address and netmaskConfigure a static IP address and netmask. Make sure an appropriate network route is also configured. You can use the optional gateway argument, or set a route using the set route command. You cannot configure a static IP address for NSX Manager or a controller because their static IP address is set at installation and cannot be changed. |
set interface <interface-name> ip <prefix-ipv46> [gateway <gateway-ip>]
|