Skip to content

Instantly share code, notes, and snippets.

@chriselgee
Last active July 16, 2024 20:18
Show Gist options
  • Save chriselgee/c1c69756e527f649d0a95b6f20337c2f to your computer and use it in GitHub Desktop.
Save chriselgee/c1c69756e527f649d0a95b6f20337c2f to your computer and use it in GitHub Desktop.
Tool Syntax with IPv6

Some tools allow or even require -6 as a command line option, and curl requires an IPv6 address to be in [] (square brackets). Also, for link local addresses, you usually have to specify the local interface you want to use.

  • ping 2001:7b8:666:ffff::1:42 -I eth0
  • nmap -6 2001:7b8:666:ffff::1:42%eth0
  • curl http://[2001:7b8:666:ffff::1:42]:8080/ --interface eth0
  • wget http://[2001:7b8:666:ffff::1:42]:8080/
  • telnet -6 2001:7b8:666:ffff::1:42
  • nc -6 2001:7b8:666:ffff::1:42%eth0 23

Want to find link local addresses for systems in your network segment? Try hitting local hosts and routers with these multicast addresses:

  • ping6 ff02::1 -c2
  • ping6 ff02::2 -c2

Then see what's in your ARP cache NDISC cache list:

  • ip neigh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment