重启 AirDrop 无线接口 awdl0(ifconfig 命令)
AirDrop 搜不到附近设备时,用 ifconfig 把 awdl0 接口关闭再重新启用。
sudo ifconfig awdl0 down && sudo ifconfig awdl0 up
01命令
命令
$ sudo ifconfig awdl0 down && sudo ifconfig awdl0 up02作用说明
AirDrop 通过 awdl0(Apple Wireless Direct Link)接口传输数据。用 ifconfig 将接口标记为 down 会重置并停止该接口的收发,再执行 up 重新启用,可让 AirDrop 重新搜索附近设备。
03风险
!注意: 需要管理员密码(sudo),重启接口期间无线直连会短暂中断。
04撤销
撤销
$ The interface is brought back up by the same command; macOS normally reactivates awdl0 automatically when AirDrop is used again. If needed, run: sudo ifconfig awdl0 up05来源
- IFCONFIG Command: Configure a network interface in macOS依据: The ifconfig utility is used to assign an address to a network interface and/or configure network interface parameters.
最后验证: 2026-09-21 · 分类: 网络