ipv6 tips & tricks

Date:2013-09-25

Tcpdump’ing

IPv6 and TCP

tcpdump -nr ipv6_traffic.pcap ip6 proto 6
tcpdump -nr ipv6_traffic.pcap ip6 protochain 6

IPv6 and UDP

tcpdump -nr ipv6_traffic.pcap ip6 proto 17
tcpdump -nr ipv6_traffic.pcap ip6 and udp

IPv6, hostIPv6 and host fec0:0:0:beef::2

tcpdump -nr ipv6_traffic.pcap ip6 host fec0:0:0:beef::2

IPv6, host fec0:0:0:beef::2 and TCP port 22

tcpdump -nr ipv6_traffic.pcap ip6 host fec0:0:0:beef::2 and tcp port 22

IPv6, host fec0:0:0:beef::2 and everything except TCP port 22

tcpdump -nr ipv6_traffic.pcap ip6 host fec0:0:0:beef::2 and not tcp port 22
tcpdump -nr ipv6_traffic.pcap ip6 host fec0:0:0:beef::2 and protochain 6 and not tcp port 22

IPv6, host fec0:0:0:beef::2, and all traffic to destination port TCP 22

tcpdump -nr ipv6_traffic.pcap ip6 host fec0:0:0:beef::2 and tcp dst port 22

IPv6, host fec0:0:0:beef::2, and all traffic from source port TCP 22

tcpdump -nr ipv6_traffic.pcap ip6 host fec0:0:0:beef::2 and tcp src port 22

Radvd debugging

radvddump

Show all neighbors (“arp -a”)

ip -6 neigh show [dev if]