Skip to content

Instantly share code, notes, and snippets.

@c2h2
Created June 10, 2023 17:02
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 c2h2/899f987961e241fa40218b57dc1e8ae4 to your computer and use it in GitHub Desktop.
Save c2h2/899f987961e241fa40218b57dc1e8ae4 to your computer and use it in GitHub Desktop.
get my ipv6 global address slaac
ip -6 addr | grep inet6 | grep global | grep -v "temp" | grep -v "mngtmpaddr" | grep -v "fd" | awk -F '[ \t]+|/' '{print $3}'
#set my addr example:
#ip -6 addr add 2001:19f0::00e3 dev eth0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment