Instructions
1) Open Terminal.
2) Run the following command in Terminal:
networksetup -listallhardwareports
Outcome
The results will be displayed showing each of your network interfaces on the Mac and the associated interface code (for example, en0).