home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

show ip route

[Please suggest content for the Short Description, to summarise and introduce this topic. What does the command do, and what does this topic show?]

Example: show ip route

$OS_PROMPT$ show ip route 10.10.10.1
Routing entry for 10.10.10.0/24
Known via "connected", distance 1, metric 0, tag 0, best
* via 10.10.10.4, dp0s8
$OS_PROMPT$ show ip route 192.168.99.9
Routing entry for 192.168.99.8/29
Known via "bgp", distance 20, metric 0, tag 65512, best
Last update 22:16:34 ago
* via 10.99.99.4, dp0bond0
$OS_PROMPT$ show ip route
Codes: K - kernel, C - connected, S - static, D - DHCP, R - RIP, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
L - LDP, V - RSVP-TE, I - IGP shortcut
> - selected route, * - FIB route, p - stale info
IP Route Table for Routing-instance "default"
C *> 10.10.10.0/24 is directly connected, dp0s8
C *> 10.99.99.0/24 is directly connected, dp0bond0
C *> 127.0.0.0/8 is directly connected, lo
B *> 192.168.99.8/29 [20/0] via 10.99.99.4, dp0bond0, 22:11:48

In this example we can see that:

  • The flow of traffic is from address 10.10.10.1 to 192.168.99.1
  • Traffic to address 10.10.10.1 should egress on interface dp0s8
  • Traffic to address 192.168.99.9 should egress on interface dp0bond0 — and that this is a route learned via Border Gateway Protocol (BGP)
Note: For more about this command see .