NSX CLI Guide
Associated Commands:
CLI Description | Command |
---|---|
Display all OSPF routes in RIBDisplay all OSPF routes in RIB. |
get logical-router <dpd-uuid-lrouter-arg> route ospf
|
Display multicast routesDisplay all the multicast learnt routes. |
get logical-router <uuid> mroute <ip-address>
|
Display detailed information of an IPv4 route in RIB of a tier 0 logical routerDisplay the routing table for the specified logical router. You must specify a tier 0 service router in this command. Use the get logical-routers command to get a
list of logical routers and their router types.
Optionally specify a prefix or IPv4 address to
display only the route used for that network.
|
get logical-router <uuid> route [<prefix>]
|
Display detailed information of an IPv6 route in RIB of a tier 0 logical routerDisplay the routing table for the specified logical router. You must specify a tier 0 service router in this command. Use the get logical-routers command to get a
list of logical routers and their router types.
Optionally specify a prefix or IPv6 address to
display only the route used for that network.
|
get logical-router <uuid> route [<prefix>]
|
Display IPv4 BGP routes for a specified prefix in RIBDisplay IPv4 BGP routes for a specified prefix in RIB. |
get logical-router <uuid> route bgp [<prefix>]
|
Display IPv4 Connected routes for a specified prefix in RIBDisplay IPv4 Connected routes for a specified prefix in RIB. |
get logical-router <uuid> route connected [<prefix>]
|
Display IPv4 OSPF routes for a specified prefix in RIBDisplay IPv4 OSPF routes for a specified prefix in RIB. |
get logical-router <uuid> route ospf [<prefix>]
|
Display IPv4 Static routes for a specified prefix in RIBDisplay IPv4 Static routes for a specified prefix in RIB.
|
get logical-router <uuid> route static [<prefix>]
|
Display the multicast HA role.Display the multicast HA role. Active - Multicast is running in Active mode. Standby - Multicast is running in Standby mode. None - Multicast is not running. |
get logical-router <uuid> route static [<prefix>]
|
Display specific IPv4 routes from all the logical routersDisplay specific IPv4 routes from all the logical routers. |
get logical-router routes <network-address>
(Deprecated)
|
Display multicast routesDisplay all the multicast learnt routes. |
get mroute <ip-address>
|
Display detailed information of an IPv6 route in RIBDisplay detailed information of an IPv6 route in RIB. Specify a prefix or IPv6 address to display only the route used for that network. |
get route [<prefix>]
|
Display detailed information of an IPv4 route in RIBDisplay detailed information of an IPv4 route in RIB. Specify a prefix or IPv4 address to display only the route used for that network. |
get route [<prefix>]
|
Display IPv4 BGP routes for a specified prefix in RIBDisplay IPv4 BGP routes for a specified prefix in RIB. |
get route bgp [<prefix>]
|
Display IPv4 Connected routes for a specified prefix in RIBDisplay IPv4 Connected routes for a specified prefix in RIB. |
get route connected [<prefix>]
|
Display all OSPF routes in RIBDisplay all OSPF routes in RIB. |
get route ospf
|
Display IPv4 OSPF routes for a specified prefix in RIBDisplay IPv4 OSPF routes for a specified prefix in RIB. |
get route ospf [<prefix>]
|
Display a specific IPv4 route or IPv6 routes for the prefixDisplay the specified IPv4 route or IPv6 routes for the prefix. |
get route prefix <cidr46-notation>
|
Display specific IPv4 or IPv6 routes for the prefixDisplay specific IPv4 or IPv6 routes for the prefix. |
get route prefix <cidr46-notation>
|
Display IPv4 Static routes for a specified prefix in RIBDisplay IPv4 Static routes for a specified prefix in RIB.
|
get route static [<prefix>]
|
Display routes across Tier0 and all its associated VRFsDisplay routes across Tier0 and all its associated VRFs. |
get route vrf all <ip-version>
|
Display IPv4 routesDisplay all configured IPv4 routes. |
get routes
|
Display IPv4 and IPv6 routesDisplay all configured IPv4 and IPv6 routes. |
get routes
|
Display IPv4 or IPv6 routesDisplay all configured IPv4 or IPv6 routes. |
get routes <ip-address-type>
|
Add IPv4 or IPv6 network routeAdd IPv4 or IPv6 network route. You can also just set a gateway by specifying a prefix value of 0.0.0.0/0 for Ipv4 and ::/0 for Ipv6. Default value for the IPv6 route metric is 1024. |
set route prefix <prefix> [gateway <gateway-ip>] [interface <interface-name>] [metric <ip-route-metric>]
|
Add IPv4 network routeAdd IPv4 network route. You can also just set a gateway by specifying a prefix value of 0.0.0.0/0. |
set route prefix <prefix> [gateway <gateway-ip>] [interface <interface-name>] [metric <ip-route-metric>]
|