22: Configuring Routing Information Protocol (RIP)
_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW6600 Series User manual
Issue: 1.7
Page 232 of 519
22.5
RIP diagnostics
22.5.1
Route status
To show the current routing status, enter
route -n
:
root@VA_router:~#
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
0.0.0.0 10.205.154.65 0.0.0.0 UG 1 0 0 usb0
10.1.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
10.205.154.64 0.0.0.0 255.255.255.252 U 0 0 0 usb0
11.11.11.0 0.0.0.0 255.255.255.248 U 0 0 0 gre-
GRE
89.101.154.151 10.205.154.65 255.255.255.255 UGH 0 0 0 usb0
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.104.1 11.11.11.4 255.255.255.255 UGH 3 0 0 gre-
GRE
192.168.154.154 11.11.11.1 255.255.255.255 UGH 2 0 0 gre-
GRE
Note: a route will only be displayed in the routing table when the interface is up.
22.5.2
Tracing RIP packets
RIP uses UDP port 520. To trace RIP packets on any interface on the router, enter:
tcpdump -i any -n -p port 520 &
root@VA_router:~# tcpdump -i any -n -p port 520 &
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 65535
bytes
To stop tracing enter
fg
to bring tracing task to foreground, and then <CTRL-C> to stop
the trace.
root@VA_router:~# fg
tcpdump -i any -n -p port 67
^C
33 packets captured
33 packets received by filter
0 packets dropped by kernel