10-05-2011 07:13 AM - edited 03-04-2019 01:50 PM
Hi,
I am having a bit of difficulties to understand the following output of show ip cef internal command:
1) Can somebody explain me the meaning of the hash value and more important how it is used by cef to route packet when multiple interface are available.
2) Also would like to understand the meaning of the 0 packets, 0 bytes in red. Does that means that no packets has been routed? The packet column beside the point2point column is all zero, is there any special reason why?
3) Is there a command that would indicate where a packet would be routed based on the destination prefix for a case where the router is doing some load sharing.
Thanks for your help
Stephane
a1#show ip cef 192.168.0.0 internal
192.168.0.0/24, version 33, epoch 0, per-destination sharing
0 packets, 0 bytes
via 172.16.0.21, Serial0/0/0.100, 0 dependencies
traffic share 1
next hop 172.16.0.21, Serial0/0/0.100
valid adjacency
via 172.16.0.21, Serial0/0/0.200, 0 dependencies
traffic share 1
next hop 172.16.0.21, Serial0/0/0.200
valid adjacency
0 packets, 0 bytes switched through the prefix
tmstats: external 0 packets, 0 bytes
internal 0 packets, 0 bytes
Load distribution: 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 (refcount 1)
Hash OK Interface Address Packets
1 Y Serial0/0/0.100 point2point 0
2 Y Serial0/0/0.200 point2point 0
3 Y Serial0/0/0.100 point2point 0
4 Y Serial0/0/0.200 point2point 0
5 Y Serial0/0/0.100 point2point 0
6 Y Serial0/0/0.200 point2point 0
7 Y Serial0/0/0.100 point2point 0
8 Y Serial0/0/0.200 point2point 0
9 Y Serial0/0/0.100 point2point 0
10 Y Serial0/0/0.200 point2point 0
11 Y Serial0/0/0.100 point2point 0
12 Y Serial0/0/0.200 point2point 0
13 Y Serial0/0/0.100 point2point 0
14 Y Serial0/0/0.200 point2point 0
15 Y Serial0/0/0.100 point2point 0
16 Y Serial0/0/0.200 point2point 0
10-05-2011 07:42 AM
Hi,
ad 1) The hash function is applied on the IP source/destinatiom pair of the packet forwarded. Depending on the hash result, it takes the particular path.
See
Load distribution: 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 (refcount 1)
in your case: Packets with hash odd values are taking one path while packets with even hash values are taking the other path.
ad 2) I don't think 0 counters mean 0 packets routed here. But I don't know the correct answer.
ad 3) show ip cef exact-route source_ip dest_ip
is the command you are looking for.
HTH,
Milan
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide