Show & diagnostics

show ip route

Routing table. Codes: C=connected, S=static, O=OSPF, R=RIP, D=EIGRP. Default route shown last with *.

Works on: Router, FirewallMode: enable

Sample output

Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, 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, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

S  10.20.0.0/24 [1/0] via 172.16.0.2, Se0/0/0
C  10.10.0.0/24 is directly connected, Gi0/0
L  10.10.0.1/32 is directly connected, Gi0/0
C  172.16.0.0/30 is directly connected, Se0/0/0
L  172.16.0.1/32 is directly connected, Se0/0/0

Captured from the NetForge-AI simulator running a real topology.

Run this command live

Don't just read it — type show ip route in a real network simulator in your browser and watch it take effect. No install, no account needed to start.

Open the lab

Frequently asked

What does the "show ip route" command do?

Routing table. Codes: C=connected, S=static, O=OSPF, R=RIP, D=EIGRP. Default route shown last with *.

More Show & diagnostics commands

← Back to the full command reference