OSX Network command

 

networksetup commands

print all network providers & status

networksetup -listnetworkserviceorder

 

Turn off specific interface(USB wired network)

networksetup -setnetworkserviceenabled "USB 10/100/1000 LAN" off

Turn on

networksetup -setnetworkserviceenabled "USB 10/100/1000 LAN" on

route 정보 보기

기본 라우팅 정보

route -n get default

 

all routing tables

netstat -nr

 

Network utility commands

show all active network interfaces

scutil --nwi

 

print all network providers

networksetup -listnetworkserviceorder

 

See also

Related content