Created
June 10, 2023 17:02
-
-
Save c2h2/899f987961e241fa40218b57dc1e8ae4 to your computer and use it in GitHub Desktop.
get my ipv6 global address slaac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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