command networksetup -getinfo incorrect output
The following script return incorrect information for IPv6
NETSVCS=$(networksetup -listallnetworkservices | sed 1d )
for if in ${(f)NETSVCS}; do networksetup -getinfo $if; done
DHCP Configuration
Client ID:
IPv6: Automatic
IPv6 IP address: none
IPv6 Router: none
Ethernet Address: (null)
DHCP Configuration
IP address: 192.168.2.232
Subnet mask: 255.255.252.0
Router: 192.168.1.254
Client ID:
IPv6: Automatic
IPv6 IP address: none
IPv6 Router: none
Ethernet Address: a0:ce:c8:89:42:d1
DHCP Configuration
Client ID:
IPv6: Automatic
IPv6 IP address: none
IPv6 Router: none
DHCP Configuration
IP address: 192.168.3.189
Subnet mask: 255.255.252.0
Router: 192.168.1.254
Client ID:
IPv6: Automatic
IPv6 IP address: none
IPv6 Router: none
But the ifconfig command shows IPv6 addresses and other parameters assigned to each active interface.
MacBook Pro 15″, macOS 15.2