ipv6 邻居条目失败

发布于 2024-11-17 13:25:22 字数 432 浏览 6 评论 0原文

我有一堆失败的 ipv6 neigh 条目:

6000::2828:2802 dev eth2 lladdr 00:1f:a0:02:0e:b2 STALE
7000::1e1e:1e01 dev eth1  FAILED
8000::1e1e:1e01 dev eth1  FAILED
4000::1414:149e dev eth2 lladdr 00:03:00:04:00:09 PERMANENT
5000::1e1e:1e01 dev eth1  FAILED
3000::a0a:a3a dev eth1 lladdr 00:03:00:03:00:09 PERMANENT

现在,当我使用flush 删除这些条目时,它没有说什么要刷新。你们知道如何刷新或删除这些条目吗?如果我删除该条目,它就会进入失败状态。我可以更改这些值的时间,以便它在 10 秒后自动删除吗?

I have bunch of ipv6 neigh entries which are failed:

6000::2828:2802 dev eth2 lladdr 00:1f:a0:02:0e:b2 STALE
7000::1e1e:1e01 dev eth1  FAILED
8000::1e1e:1e01 dev eth1  FAILED
4000::1414:149e dev eth2 lladdr 00:03:00:04:00:09 PERMANENT
5000::1e1e:1e01 dev eth1  FAILED
3000::a0a:a3a dev eth1 lladdr 00:03:00:03:00:09 PERMANENT

Now, When I use flush to remove these entries, it says nothing to flush. Do you guys know how to flush or remove these entries, If I delete the entry, it goes in the failed state. Can I change the time for these values, so it automatically gets removed in say 10 seconds.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

酒中人 2024-11-24 13:25:22

当您执行类似的操作时,它们应该完全消失,

ip -6 neigh del 3000::a0a:a3a dev eth1

但更重要的是:这些地址是虚假的。它们不应该在任何地方使用...在邻居发现表中看到它们意味着您的系统认为它们处于链接状态,但事实不应该如此。

我建议你先看看你的网络配置。您的接口可能配置了错误的前缀长度前缀...

They should completely disappear when you do something like

ip -6 neigh del 3000::a0a:a3a dev eth1

But much more important: those addresses are bogons. They should never be in use anywhere... Seeing them in your neighbor discovery tables means that your system thinks they are on-link, and that should not be the case.

I suggest you look at your network configuration first. Your interfaces might have the wrong prefixes of prefix-lengths configured...

沉默的熊 2024-11-24 13:25:22

是的,您可以在 10 秒或其他时间内将它们移除。

$ sysctl net.ipv6.neigh.default
...
net.ipv6.neigh.default.gc_interval = 30
net.ipv6.neigh.default.gc_stale_time = 60
...

gc_interval 是几秒后开始清理以删除陈旧条目的时间。

gc_stale_time 是条目被标记为过时的秒数。

您可以将这两个值设置为 10。您可以专门为 net.ipv6.neigh.eth1 下的 eth1 覆盖这些值。

$ sysctl -w net.ipv6.neigh.eth1.gc_interval=10
$ sysctl -w net.ipv6.neigh.eth1.gc_stale_time=10

Yes you can have them removed in 10 secs or whatever.

$ sysctl net.ipv6.neigh.default
...
net.ipv6.neigh.default.gc_interval = 30
net.ipv6.neigh.default.gc_stale_time = 60
...

gc_interval is seconds after which the clean-up kicks in to remove stale entries.

gc_stale_time is seconds after which the entries are marked to be stale.

You can set both these values to 10. You can override these values exclusively for eth1 under net.ipv6.neigh.eth1.

$ sysctl -w net.ipv6.neigh.eth1.gc_interval=10
$ sysctl -w net.ipv6.neigh.eth1.gc_stale_time=10
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文