Mac Networking from the Command Line
Table of Contents
List network services
> networksetup -listallnetworkservices An asterisk (*) denotes that a network service is disabled. Ethernet 10/100M LAN Thunderbolt Bridge Wi-Fi
Set a static IP
networksetup -setmanual Ethernet 192.168.0.102 255.255.255.0 192.168.0.1
Disable Wi-Fi
Find device:
josh@bun ~ % networksetup -listallhardwareports #... Hardware Port: Wi-Fi Device: en1 Ethernet Address: d0:11:e5:2c:b5:2d
Disable:
networksetup -setairportpower en1 off