iproute2:Linux 上用于配置与查看网络子系统的一组命令行工具集合,常用于管理网络接口、IP 地址、路由、策略路由、隧道等;核心命令包括 ip、ss、tc 等。(也常被用来泛指“用 ip 命令做网络配置”的工具体系。)
/ˌaɪpiːˈruːt tuː/
I used iproute2 to add an IP address to the interface.
我用 iproute2 给这个网卡接口添加了一个 IP 地址。
After the migration, we used iproute2 policy routing rules to send traffic from specific subnets through a VPN tunnel while keeping the default route unchanged.
迁移之后,我们用 iproute2 的策略路由规则把来自特定子网的流量引到 VPN 隧道里,同时保持默认路由不变。
iproute2 由 IP(Internet Protocol,互联网协议)+ route(路由)+ 2(第二代/新一代工具集)构成。它是 Linux 上较早的网络工具(如 net-tools 里的 ifconfig、route)之后,更现代的一套网络配置工具,主要通过内核的 netlink 接口进行管理与查询。
ip/tc 作为网络配置与排障工具)ip 等现代网络相关命令的语境中常会提到 iproute2 工具集)