重启 AirDrop 无线接口 awdl0(ifconfig 命令)

AirDrop 搜不到附近设备时,用 ifconfig 把 awdl0 接口关闭再重新启用。

macOS网络Wi-Fi终端诊断中风险
sudo ifconfig awdl0 down && sudo ifconfig awdl0 up

01命令

命令
$ sudo ifconfig awdl0 down && sudo ifconfig awdl0 up

02作用说明

AirDrop 通过 awdl0(Apple Wireless Direct Link)接口传输数据。用 ifconfig 将接口标记为 down 会重置并停止该接口的收发,再执行 up 重新启用,可让 AirDrop 重新搜索附近设备。

03风险

风险中风险
使用条件Administrator (sudo) password required.
!注意: 需要管理员密码(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 up

05来源

最后验证: 2026-09-21 · 分类: 网络

06相关方案