CEF Load balancing
When 2 destination networks have the same AD and metric, load-balancing will be done. In CEF per-destination mode or per-packet mode, which interface does CEF choose to send the first flow? Is it by interface number; the highest or lowest is chosen?
Example:
R2#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/11] via 192.168.1.1, 00:29:21, FastEthernet0/1
[110/11] via 192.168.0.1, 00:30:04, FastEthernet0/0
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
C 192.168.0.0/24 is directly connected, FastEthernet0/0
C 192.168.1.0/24 is directly connected, FastEthernet0/1
R2#sh ip cef 1.1.1.1
1.1.1.1/32, version 29, epoch 0, per-destination sharing
0 packets, 0 bytes
via 192.168.1.1, FastEthernet0/1, 0 dependencies
traffic share 1
next hop 192.168.1.1, FastEthernet0/1
valid adjacency
via 192.168.0.1, FastEthernet0/0, 0 dependencies
traffic share 1
next hop 192.168.0.1, FastEthernet0/0
valid adjacency
0 packets, 0 bytes switched through the prefix
tmstats: external 0 packets, 0 bytes
internal 0 packets, 0 bytes
Thank you