################################################################## # Searchable Keywords: route ip linux # ip help Usage: ip [ OPTIONS ] OBJECT { COMMAND | help } ip [ -force ] [-batch filename where OBJECT := { link | addr | addrlabel | route | rule | neigh | ntable | tunnel | maddr | mroute | monitor | xfrm } OPTIONS := { -V[ersion] | -s[tatistics] | -r[esolve] | -f[amily] { inet | inet6 | ipx | dnet | link } | -o[neline] | -t[imestamp] } -------------------- showe ip routes ------------------------ linux # ip route show 192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.8 192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 169.254.0.0/16 dev eth0 scope link default via 192.168.1.1 dev eth0 ----------------- show rules ??? ----------------- ]# ip rule show 0: from all lookup 255 32766: from all lookup main 32767: from all lookup default ----------------- Show ip neighbors -------------------- # ip -s neigh 192.168.1.33 dev eth0 lladdr 00:02:2a:bf:71:46 ref 2 used 42/37/37 REACHABLE 192.168.1.1 dev eth0 lladdr 00:06:5b:2d:25:11 ref 2 used 436/0/6840 REACHABLE 192.168.1.36 dev eth0 lladdr 00:22:3f:0e:fd:10 ref 2 used 309/0/20 REACHABLE 192.168.1.13 dev eth0 lladdr 08:00:20:9f:bc:12 ref 2 used 92/92/52 STALE 192.168.1.12 dev eth0 ref 2 used 33/99/33 FAILED 192.168.1.32 dev eth0 lladdr 08:00:20:9f:03:09 ref 1 used 5125/62720/251 STALE 192.168.1.5 dev eth0 lladdr 08:00:20:1a:26:30 ref 2 used 39/39/0 STALE 192.168.1.35 dev eth0 lladdr 00:00:39:82:91:17 ref 2 used 17/16/16 REACHABLE Route information displayed using the route cmd linux # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0 192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 default rtr.leftlogical 0.0.0.0 UG 0 0 0 eth0 See also the route_cmd and tc_cmd