OSPF Archives - NIL - Network Information Library https://nil.uniza.sk/category/practical_-_cisco-en/routing-en-practical_-_cisco-en/ospf-en/ Knowledge portal - KIS FRI UNIZA Wed, 31 Oct 2018 23:43:21 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.4 https://nil.uniza.sk/wp-content/uploads/2018/11/1.png OSPF Archives - NIL - Network Information Library https://nil.uniza.sk/category/practical_-_cisco-en/routing-en-practical_-_cisco-en/ospf-en/ 32 32 Parsing OSPF packets using tcpdump https://nil.uniza.sk/parsing-ospf-packets-using-tcpdump/ https://nil.uniza.sk/parsing-ospf-packets-using-tcpdump/#respond Mon, 04 Feb 2013 11:01:02 +0000 Sometimes we need to capture and parse OSPF packets for next analysis and we have a comand line only, in my case on linux server with dynamips. We should use tcpdump tool for this purpose, of course, several ways are available.

Capturing OSPF packets on the fly

tcpdump -i eth0 ip[9] == 89

where OSPF ip protocol number is 89, and the protocol field is the 9th octet on the ip header.

Another way is:

tcpdump -i eth0 proto ospf

Writing captured packets to a file

The post Parsing OSPF packets using tcpdump appeared first on NIL - Network Information Library.

]]>
https://nil.uniza.sk/parsing-ospf-packets-using-tcpdump/feed/ 0