Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save awsvpc/a92ba193b06e36d69336c87d2949f79f to your computer and use it in GitHub Desktop.
Save awsvpc/a92ba193b06e36d69336c87d2949f79f to your computer and use it in GitHub Desktop.
Linux IPv6 addresses
sudo ip addr show dev enp1s0f2 | sed -e's/^.*inet6 \([^ ]*\)\/.*$/\1/;t;d'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment