Sample Header Ad - 728x90

How to get the status of ipv6 off/on using networksetup?

0 votes
1 answer
38 views
Based on previous research, I created the following two Bash aliases to turn ipv6 off and on:
alias ipv6off="networksetup -setv6off 'USB 10/100/1000 LAN'"
alias ipv6on="networksetup -setv6automatic 'USB 10/100/1000 LAN'"
The question now is how to **get** the current state of my IPv6, whether it's on or off. The manual of networksetup doesn't mention such an option that I found. Is there a trick to get this information from the command line? The context of this is that the VPN provider I use doesn't support IPv6 so I need to turn it off when I use it.
Asked by Capt. Crunch (243 rep)
Sep 28, 2024, 07:29 AM
Last activity: Sep 29, 2024, 06:07 AM