I have some rules in my routing tables that the kernel automatically adds when I configure an interface on my host.$ ip route show table localbroadcast 10.0.0.0 dev eth1 proto kernel scope link src 10.0.0.3local 10.0.0.3 dev eth1 proto kernel scope host src 10.0.0.3broadcast 10.0.0.255 dev eth1 proto kernel scope link src 10.0.0.3$ ip route show table maindefault via 10.0.0.3 dev eth110.0.0.0/24 dev eth1 proto kernel scope link src 10.0.0.3I'm trying to understand how Linux routing works, and I cannot figure out the purpose of the two broadcast entries in the local routing table. For instance, in my understanding, a packet directed to 10.0.0.5 is routed according to the second rule in the main routing table, and not accordingto rules in the local table.Then, what packets are actually routed according to those broadcast rules? When these two rules are used? Moreover, are the two broadcast rules in the local table /32?
Local and main routing table rules
networking;routing