networksetup -listallnetworkservices is the macOS command that I believe you are looking for.
Displays a list of all the network services on the server's hardware ports. An asterisk (*) denotes that a network service is disabled.
On my MacBook Air:
An asterisk (*) denotes that a network service is disabled.
ifconfig which will show you IP addresses and MAC addresses, if that is what you are looking for.