NSX CLI Guide
Associated Commands:
CLI Description | Command |
---|---|
Delete IPv4 network routeDelete the specified network IPv4 network route. |
del route prefix <prefix> [gateway <gateway-ip>] [interface <interface-name>] [metric <ip-route-metric>]
|
Delete IPv4 or IPv6 network routeDelete the specified network IPv4 or IPv6 route. Default value for the IPv6 route metric is 1024. |
del route prefix <prefix> [gateway <gateway-ip>] [interface <interface-name>] [metric <ip-route-metric>]
|
Show system ARP or neighbour address tableDisplay the ARP or neighbour address table. |
get arp-table
|
nslookupDisplay nslookup information. |
nslookup <hostname-arg>
|
nslookupGet DNS lookup information. Note that when run on an NSX Manager, the responding server is reported as 127.0.0.1 instead of the configured name server. |
nslookup <hostname-or-ip-address>
|
Ping hostPing an IP address. Use Control-C to stop the ping command. |
ping <hostname-or-ip-address>
|
Ping hostPing a host or IP address. Use Control-C to stop the command. Optionally use the repeat argument to specify how many packets to transmit. |
ping <hostname-or-ip-address> [repeat <number>]
|
Ping hostPing an IP address. Use Control-C to stop the ping command. The repeat argument specifies how many ping
packets to transmit.
The size argument specifies the size of the ping
packet. The dfbit argument specifies whether to
set the "don't fragment" bit in the ping packet. If enabled, the
packet will not be fragmented.
The |
ping <hostname-or-ip-address> [repeat <number>] [size <number>] [source <hostname-or-ip-address>] [dfbit enable]
|
Ping hostPing an IP address. Use Control-C to stop the ping command. The repeat argument specifies how many ping
packets to transmit. The vrf argument
specifies which VRF to send the pings from. You can get a list of
available VRFs with the get logical-routers command.
The size argument specifies the size of the ping
packet. The dfbit argument specifies whether to
set the "don't fragment" bit in the ping packet. If enabled, the
packet will not be fragmented.
The |
ping <hostname-or-ip-address> [repeat <number>] [size <number>] [source <hostname-or-ip-address>] [dfbit enable] [vrfid <vrf-id>]
|
Ping IPv6 hostPing an IPv6 address. Use Control-C to stop the ping command. |
ping6 <ip6-address>
|
Ping IPv6 hostIssue a ping command for IPv6 host. The |
ping6 <ip6-address> [egress <dpd-uuid-lrouter-port-arg>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The |
ping6 <ip6-address> [repeat <number>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The |
ping6 <ip6-address> [repeat <number>] [egress <dpd-uuid-lrouter-port-arg>]
|
Ping IPv6 hostPing an IPv6 address. Use Control-C to stop the ping command. The |
ping6 <ip6-address> [size <number>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The |
ping6 <ip6-address> [size <number>] [egress <dpd-uuid-lrouter-port-arg>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The |
ping6 <ip6-address> [size <number>] [repeat <number>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The The |
ping6 <ip6-address> [size <number>] [repeat <number>] [egress <dpd-uuid-lrouter-port-arg>]
|
Ping IPv6 hostPing an IPv6 address. Use Control-C to stop the ping command. The |
ping6 <ip6-address> [source <ip6-address>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The |
ping6 <ip6-address> [source <ip6-address>] [egress <dpd-uuid-lrouter-port-arg>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The The |
ping6 <ip6-address> [source <ip6-address>] [repeat <number>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The The |
ping6 <ip6-address> [source <ip6-address>] [repeat <number>] [egress <dpd-uuid-lrouter-port-arg>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The The |
ping6 <ip6-address> [source <ip6-address>] [size <number>] [egress <dpd-uuid-lrouter-port-arg>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The The |
ping6 <ip6-address> [source <ip6-address>] [size <number>] [repeat <number>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The The The |
ping6 <ip6-address> [source <ip6-address>] [size <number>] [repeat <number>] [egress <dpd-uuid-lrouter-port-arg>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The |
ping6 <ip6-address> [source <ip6-address>] [vrfid <vrf-id>]
|
Ping IPv6 hostPing an IPv6 address. Use Control-C to stop the ping command. The |
ping6 <ip6-address> [vrfid <vrf-id>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The |
ping6 <ip6-address> [vrfid <vrf-id>] [egress <dpd-uuid-lrouter-port-arg>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The |
ping6 <ip6-address> [vrfid <vrf-id>] [repeat <number>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The The The |
ping6 <ip6-address> [vrfid <vrf-id>] [repeat <number>] [egress <dpd-uuid-lrouter-port-arg>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The |
ping6 <ip6-address> [vrfid <vrf-id>] [size <number>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The The |
ping6 <ip6-address> [vrfid <vrf-id>] [size <number>] [egress <dpd-uuid-lrouter-port-arg>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The The |
ping6 <ip6-address> [vrfid <vrf-id>] [size <number>] [repeat <number>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The The The |
ping6 <ip6-address> [vrfid <vrf-id>] [size <number>] [repeat <number>] [egress <dpd-uuid-lrouter-port-arg>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The |
ping6 <ip6-address> [vrfid <vrf-id>] [source <ip6-address>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The The |
ping6 <ip6-address> [vrfid <vrf-id>] [source <ip6-address>] [egress <dpd-uuid-lrouter-port-arg>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The The The |
ping6 <ip6-address> [vrfid <vrf-id>] [source <ip6-address>] [repeat <number>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The The The |
ping6 <ip6-address> [vrfid <vrf-id>] [source <ip6-address>] [repeat <number>] [egress <dpd-uuid-lrouter-port-arg>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The The |
ping6 <ip6-address> [vrfid <vrf-id>] [source <ip6-address>] [size <number>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The The The |
ping6 <ip6-address> [vrfid <vrf-id>] [source <ip6-address>] [size <number>] [egress <dpd-uuid-lrouter-port-arg>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. Ping an IPv6 address. Use Control-C to stop the ping command. The The The The |
ping6 <ip6-address> [vrfid <vrf-id>] [source <ip6-address>] [size <number>] [repeat <number>]
|
Ping IPv6 hostIssue a ping command for IPv6 host. The The The The |
ping6 <ip6-address> [vrfid <vrf-id>] [source <ip6-address>] [size <number>] [repeat <number>] [egress <dpd-uuid-lrouter-port-arg>]
|
Configure the specified interface to use DHCPConfigure the specified interface to use DHCP. You cannot configure DHCP for NSX Manager or a controller because both must have a static IP address. |
set interface <configurable-interface-name> dhcp
|
Configure the specified interface to use DHCPConfigure the specified interface to use DHCP. |
set interface <configurable-interface-name> dhcp plane <interface-plane-arg> mode <bond-mode-arg> members <bond-slaves-arg> primary <bond-primary-arg>
|
Configure a bond interface and set the interface plane modeCreate bond interface and set the plane property of the interface and config the IP address. If plane is set to mgmt , it is reported as such to the management plane (MP) via MPA, and the slave devices are not consumed by dataplane for dataplane operations. You can configure the bond interface with a DHCP or static IP address. If you configure a static IP address, make sure an appropriate network route is also configured. |
set interface <configurable-interface-name> ip <cidr46-notation> gateway <gateway-ip46-address-arg> plane <interface-plane-arg> mode <bond-mode-arg> members <bond-slaves-arg> primary <bond-primary-arg>
|
Create VLAN network interfaceCreate a VLAN network interface from the specified parent interface and VLAN id. The new vlan network interface name will be of format interface. and the interface's plane property will be set to mgmt . Any existing configuration on the parent interface will be deleted. Users must use the newly created VLAN network interface for configuration. |
set interface <configurable-interface-name> vlan <vlan-id> plane mgmt
|
Set the IPv6 interfaceSet IPv6 static interface. If IPv6 interface already configured then user cannot configure it again. |
set interface <interface-name> ipv6 <prefix-ipv6> [gateway <gateway-ipv6>]
|
Create an in-band VLAN network interfaceCreate an in-band VLAN network interface from the physical interface identified by the mac. If the physical interface is not already owned by the edge dataplane, the dataplane service will be restarted in order to claim the physical interface. The new inband vlan network interface name will be of format ethX.vlan and the interface's plane property will be set to mgmt . Users must use the newly created in-band VLAN network interface for configuration. |
set interface mac <configurable-mac-address> vlan <vlan-id> in-band plane mgmt
|
tracerouteTrace the route to the specified IPv4 address or host. |
traceroute <hostname-or-ip-address>
|
tracerouteTrace the route to the specified IPv4 address or host. |
traceroute <ip-address>
|
tracerouteTrace the route to the specified IP address. The The |
traceroute <ip-address> [source <ip-address>] [maxttl <number>]
|
tracerouteTrace the route to the specified IP address. The maxttl specifies the maximum time-to-live, or
maximum number of routers the traceroute packet will traverse.
The The |
traceroute <ip-address> [source <ip-address>] [maxttl <number>] [vrfid <vrf-id>]
|
traceroute6Trace the route to target IPv6 address. |
traceroute6 <ip6-address>
|
traceroute6Trace the route to the specified IPv6 address. The maxttl specifies the maximum time-to-live, or maximum number of routers the traceroute packet will traverse. |
traceroute6 <ip6-address> [maxttl <number>]
|
traceroute6Trace the route to the specified IPv6 address. The |
traceroute6 <ip6-address> [source <ip6-address>]
|
traceroute6Trace the route to the specified IPv6 address. The The |
traceroute6 <ip6-address> [source <ip6-address>] [maxttl <number>]
|
traceroute6Trace the route to the specified IPv6 address. The |
traceroute6 <ip6-address> [vrfid <vrf-id>]
|
traceroute6Trace the route to the specified IPv6 address. The maxttl specifies the maximum time-to-live, or maximum number of routers the traceroute packet will traverse. The |
traceroute6 <ip6-address> [vrfid <vrf-id>] [maxttl <number>]
|
traceroute6Trace the route to the specified IPv6 address. The The |
traceroute6 <ip6-address> [vrfid <vrf-id>] [source <ip6-address>]
|
traceroute6Trace the route to the specified IPv6 address. The The The |
traceroute6 <ip6-address> [vrfid <vrf-id>] [source <ip6-address>] [maxttl <number>]
|