如何删除mtu表?

如何删除mtu表?

我正在尝试在我的 Linux 环境中重置 mtu 表。我正在尝试以下操作:

ip route flush cache

但它似乎不起作用。

有什么建议吗?谢谢。

答案1

MTU 是最大传输单元。它不是一个表,而是一个参数,用于指示从接口传输的最大数据包大小是多少。是不能冲掉的。

你想让我做什么 ?如果你想刷新你的路由表,你必须调用ip route flush手册页中提到的每个路由规则(man 8 ip-route

        ip route flush
          flush routing tables
          this command flushes routes selected by some criteria.

          The arguments have the same syntax and semantics as the arguments of ip route show, but routing tables are not listed but purged. The only difference is the default action:
          show dumps all the IP main routing table but flush prints the helper page.

          With the -statistics option, the command becomes verbose. It prints out the number of deleted routes and the number of rounds made to flush the routing table. If the option
          is given twice, ip route flush also dumps all the deleted routes in the format described in the previous subsection.

相关内容