iptables给网络流量打dscp
目录
概述
本文主要记录如何通过 iptables 命令给流量打上 dscp 的标记。
操作
|
|
下面是测试的过程,首先有两台服务器,IP 地址分别是 192.168.1.200 和 192.168.1.201,在没有配置 iptables 的时候,可以看到 PING 包是没有 tos 特殊标记的。

执行完上述的 iptables 命令之后,PING 包就带 tos 标记了。

下面在用 wireshark 观察一下。

警告
本文最后更新于 2024年5月1日,文中内容可能已过时,请谨慎参考。