Multiple entries in kernel rtable for a given source, destination pair ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When I display the routing cache in Linux, using route -C command, it shows me multiple entries for a given source & destination address pair.

Source Destination Gateway Flags Metric Ref Use Iface

172.29.5.150 107.108.204.227 172.29.4.1 0 1 0 eth0
172.29.5.150 107.108.204.227 172.29.4.1 0 0 7 eth0

The first entry has a use count of 0, the second entry has a usecount of 7 (the actual use count).
My question why does the kernel maintain multiple entries.

My understanding of the algo to update the rtable is ....
every time a packet can't be routed by the information in the rtable, it uses the Fib & adds this new entry in the rtable.

In my case the rtable already had the first entry,(the one with use count =0) so when I ping the Linux Mc, it should be able to route based on the existing information, why add another entry in rtable ?

Regards,
Hoobastang



-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux