20: Configuring OSPF (Open Shortest Path First)
_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW1000 Series User Manual
Issue: 2.3
Page 183 of 463
option dead_interval '120'
option auth_mode 'md5'
option key_id '1'
option md5_auth_key 'test'
20.7
OSPF diagnostics
20.7.1
Route status
To show the current routing status, enter:
root@VA_router:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.206.4.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.206.4.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.206.4.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.101.1 11.11.11.1 255.255.255.255 UGH 11 0 0 gre-
GRE
192.168.104.1 11.11.11.4 255.255.255.255 UGH 20 0 0 gre-
GRE
Note: a route will only be displayed in the routing table when the interface is up.
20.7.2
Tracing OSPF packets
Typically, OSPF uses IP as its transport protocol. The well-known IP protocol type for
OSPF traffic is 0x59. To trace OSPF packets on any interface on the router, enter:
tcpdump -i any -n proto ospf &
root@VA_router:~# tcpdump -i any -n proto ospf &
root@VA_router:~# 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