安装

  1. pacman -S iwd
  2. pacstrap /mount-root-dir iwd

在安装完iwd之后,就可以直接使用了(一般是在live中进行安装,亦或者是通过以太网卡进行连接后直接安装)。

配置

  1. [General]
  2. # 用 route_priority_offset 设置路由指标(route metric)
  3. route_priority_offset=300
  4. # 自 0.19 版本起,
  5. # iwd 可使用内置的 DHCP 客户端或静态配置来分配(多个)IP 地址并设置路由。
  6. # 它是 独立 DHCP 客户端 不错的替代品。
  7. EnableNetworkConfiguration=true
  8. [Network]
  9. # 要使用 systemd-resolved 作为 DNS 管理器
  10. NameResolvingService=systemd