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 정보 보기

기본 라우팅 정보

 

all routing tables

 

Network utility commands

show all active network interfaces

 

print all network providers

 

See also