You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Posted on Jan 22, 2025 2:45 PM

Reply

There are no replies.

command networksetup -getinfo incorrect output

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.