S
S
Semen553382016-08-09 16:43:30
macOS
Semen55338, 2016-08-09 16:43:30

How to remap a network interface in OS X?

On a MacBook Air with Wi-Fi, the BSD Name is always en0. Thunderbolt-to-Ethernet has always been en3. After Wi-Fi broke down, the en0 interface disappeared, at the same time Apple services (App Store, iMessage, etc.) stopped working, as it turned out, for some reason they require it to be active. While I'm waiting with aliexpress for a new wifi, I would like to use these services.
Removed all network services from System Preferences. Removed network settings files:

sudo rm /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist
sudo rm /Library/Preferences/SystemConfiguration/preferences.plist
sudo rm /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist
sudo shutdown -r now

In foreign forums, this solves this problem; interfaces are reassigned Ethernet is hung up on en0. But in my case, Ethernet is hung on en1, because wifi works through thunderbolt.
[[email protected]:~$] networksetup -listallhardwareports

Hardware Port: Thunderbolt Ethernet
Device: en1
Ethernet Address: a8:20:66:43:58:36

Hardware Port: Bluetooth PAN
Device: en2
Ethernet Address: 84:38:35:64:bd:83

Hardware Port: Thunderbolt 1
Device: en0
Ethernet Address: 32:00:17:e6:00:00

Hardware Port: Thunderbolt Bridge
Device: bridge0
Ethernet Address: 32:00:17:6e:00:00

VLAN Configurations
===================

[[email protected]:~$] ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
  options=3<RXCSUM,TXCSUM>
  inet6 ::1 prefixlen 128 
  inet 127.0.0.1 netmask 0xff000000 
  inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 
  nd6 options=1<PERFORMNUD>
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX> mtu 1500
  options=60<TSO4,TSO6>
  ether 32:00:17:e6:00:00 
  media: autoselect <full-duplex>
  status: inactive
bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
  options=63<RXCSUM,TXCSUM,TSO4,TSO6>
  ether 32:00:17:6e:00:00 
  Configuration:
    id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
    maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
    root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
    ipfilter disabled flags 0x2
  member: en0 flags=3<LEARNING,DISCOVER>
          ifmaxaddr 0 port 4 priority 0 path cost 0
  nd6 options=1<PERFORMNUD>
  media: <unknown type>
  status: inactive
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
  options=10b<RXCSUM,TXCSUM,VLAN_HWTAGGING,AV>
  ether a8:20:66:43:58:36 
  inet6 fe80::aa20:66ff:fe43:5836%en1 prefixlen 64 scopeid 0x5 
  inet6 fd4f:3daf:118d::aa20:66ff:fe43:5836 prefixlen 64 autoconf 
  inet6 fd4f:3daf:118d::3002:e22:415e:f491 prefixlen 64 autoconf temporary 
  inet 192.168.1.36 netmask 0xffffff00 broadcast 192.168.1.255
  nd6 options=1<PERFORMNUD>
  media: autoselect (100baseTX <full-duplex,flow-control>)
  status: active

I manually tried to change /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist to en0, after which everything completely broke

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question