gpt4 book ai didi

routing - Unix 路由表中的 "proto kernel"是什么意思?

转载 作者:行者123 更新时间:2023-12-03 09:09:43 25 4
gpt4 key购买 nike

我一直在 linux-ip.net 和整个互联网上搜索它,但似乎什么也没有。
路由表中的“原型(prototype)内核”部分是什么意思?

只是一个例子:

[root@tristan]# ip route show table local
local 192.168.99.35 dev eth0 proto kernel scope host src 192.168.99.35
broadcast 127.255.255.255 dev lo proto kernel scope link src 127.0.0.1

最佳答案

摘自 man ip(8) :

  protocol RTPROTO
the routing protocol identifier of this route.
RTPROTO may be a number or a string from the
file /etc/iproute2/rt_protos. If the routing
protocol ID is not given, ip assumes protocol
boot (i.e. it assumes the route was added by
someone who doesn't understand what they are doing).
Several protocol values have a fixed interpretation.
Namely:

redirect - the route was installed due to an ICMP redirect.

kernel - the route was installed by the kernel during
autoconfiguration.

boot - the route was installed during the bootup sequence.
If a routing daemon starts, it will purge all of them.

static - the route was installed by the administrator to
override dynamic routing. Routing daemon will
respect them and, probably, even advertise them
to its peers.

ra - the route was installed by Router Discovery protocol.

The rest of the values are not reserved and the administrator is free
to assign (or not to assign) protocol tags.

关于routing - Unix 路由表中的 "proto kernel"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10259266/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com