Skip to content

Instantly share code, notes, and snippets.

@leveled
Created December 6, 2022 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leveled/7e5ad99e8b1d8c556013a1fe86ca921b to your computer and use it in GitHub Desktop.
Save leveled/7e5ad99e8b1d8c556013a1fe86ca921b to your computer and use it in GitHub Desktop.
Filter out ipv6 addresses on an interface and return
ip -f inet6 addr show eth0 | sed -En -e 's/.*inet6 ([0-9a-fA-F:]+).*/\1/p'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment