5.9 C
New York
Wednesday, April 2, 2025

The right way to do away with phantom, orphan community interfaces on macOS 15?


I’ve some ghost/orphan community interfaces on my Mac Mini M1 2020 (macOS 15.1) that I want to clear up. They seem in a number of locations, resembling within the Web Sharing System Settings pane, in addition to within the Terminal output of networksetup -listallhardwareports.

internet sharing

Operating the command under reveals these community interfaces, a number of of which not bodily exist:

networksetup -listallhardwareports | awk '
/^{Hardware}/{sub("{Hardware} Port: ","",$0); n=$0}
/^Gadget/{sub("Gadget: ","",$0); d=$0}
/^Ethernet/{sub("Ethernet Tackle: ","",$0); m=$0}
/^$/ && n!="" && m!="" && d!="" {
  printf "%stpercentstpercentsn",d,m,n
  n=m=d=""
}' | kind

Output

en0 14:98:77:64:11:0d   Ethernet
en1 14:98:77:5a:8b:1b   Wi-Fi
en2 36:32:32:20:15:00   Thunderbolt 1
en3 36:32:32:20:15:04   Thunderbolt 2
en4 82:03:9a:33:94:72   Ethernet Adapter (en4)
en5 82:03:9a:33:94:73   Ethernet Adapter (en5)
en9 00:e0:4c:68:13:10   USB 10/100/1000 LAN

In my case, en2, en3, en4, en5 and en9 don’t exist. I want to purge them. I’ve tried deleting the NetworkInterfaces.plist plist utilizing

sudo rm /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist

Nevertheless that doesn’t make them go away. Associated query with no reply: How do I do away with previous, orphaned community {hardware} ports underneath macOS?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles