Command map

show route lookup

Look up which route the kernel would use for a given IP.

Ze command

Registry path
show route lookup
Usage
show route lookup <ip>
Mode
Read-only
Wire method
ze-show:route-lookup
Backends
any backend
Task support
optional: the MCP call is synchronous, which is the default
Subcommands
none: this command takes no subcommand
Pipes, always
json, ndjson, table, text, yaml, raw, no-more, save
Pipes, when the answer has rows
match, count, first, last, display, fill
Pipes, while streaming
log
Pipes, local process only
save

Description

Performs a longest-prefix-match and returns the
matching route with gateway, interface, protocol, and metric.

Arguments

NameTypeRequiredValues
ipstringyesany value of this type

Mapping intents

Route lookup for a prefix or address

Category: Routing

Juniper Junos MX

Route lookup for a prefix or address

show route <prefix> verified source: show route family

Cisco IOS XR

No equivalent is listed for this vendor yet.

Nokia SR OS

No equivalent is listed for this vendor yet.