Network-Interface

macOS 上的這些 ifconfig 介面是什麼

  • August 16, 2020

我有一台 MacBook Pro 15" 2018 (Touch Bar)。我看到它有很多網路介面。我想知道它們是什麼/它們做什麼。我做了一些研究,但我無法真正弄清楚所有他們,這是SCNetworkInterfaceInfo.UserDefinedName我從這個答案中找到的資訊:

  • ap1:?
  • awdl0:?
  • 誓言:?
  • utun0:?
  • utun1:?
  • lo0:環回(本地主機)
  • gif0:軟體網路介面
  • stf0:6to4隧道介面
  • en0:物理無線
  • en1: 雷電 1
  • en2: 雷電 2
  • en3: 雷電 3
  • en4: 雷電 4
  • en5: iBridge / Apple T2 控制器
  • en6: 藍牙 PAN
  • en8: iPhone USB
  • en9: 虛擬機網路介面
  • en10: iPad
  • bridge0:雷電橋

在我發布此問題時,Unix 和 Linux StackExchange 的搜尋引擎處於離線狀態。提前致謝。

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en5: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
   status: active
ap1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
   status: inactive
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
   status: active
en3: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
   status: inactive
en4: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
   status: inactive
en1: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
   status: inactive
en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
   status: inactive
bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
   options=63<RXCSUM,TXCSUM,TSO4,TSO6>
   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 0x0
   member: en1 flags=3<LEARNING,DISCOVER>
           ifmaxaddr 0 port 9 priority 0 path cost 0
   member: en2 flags=3<LEARNING,DISCOVER>
           ifmaxaddr 0 port 10 priority 0 path cost 0
   member: en3 flags=3<LEARNING,DISCOVER>
           ifmaxaddr 0 port 7 priority 0 path cost 0
   member: en4 flags=3<LEARNING,DISCOVER>
           ifmaxaddr 0 port 8 priority 0 path cost 0
   nd6 options=201<PERFORMNUD,DAD>
   status: inactive
awdl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
   status: active
llw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
   status: active
utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380
utun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 2000
en10: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
   status: active
en8: flags=8822<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 1500
   status: inactive

對於那些你沒有的:

  • ap1: 切入點。如果您將 MacBook 用作共享其連接的無線主機,則使用此選項。
  • awdl0:Apple 無線直連。WIFI p2p 連接,用於 AirDrop、Airplay 等。也用於藍牙。
  • llw0:低延遲WLAN介面。由 Skywalk 系統使用。
  • utun0:隧道介面。用於隧道流量的 VPN 連接或 Back To My Mack 等軟體。
  • utun1: 同 utun01

引用自:https://unix.stackexchange.com/questions/603506