Topology
http://imageshack.com/a/img674/6375/TEyY0l.jpg
ipv4 addressing uses router numbers in third octet, i.e. link between R1 and R2 is 10.0.12.0/24; between R2 and R6 10.0.26.0/24
All interfaces are running ospf in area 0; each router has lo0 i.e. 1.1.1.1/32 for R1
LDP is enabled on all interfaces and all neighbor sessions are up.
Am i missing something basic here? cef chooses fa0/1 as its egress interface for the flow to 7.7.7.7; I would have assumed it would have used the ip address on fa0/1 as its src ip, but it's actually using the ip from fa0/0. I reran the test without ldp and the behavior is the same.
R1#sh ip route 7.7.7.7
Routing entry for 7.7.7.7/32
Known via "ospf 1", distance 110, metric 31, type intra area
Last update from 10.0.15.5 on FastEthernet0/1, 01:40:42 ago
Routing Descriptor Blocks:
10.0.15.5, from 7.7.7.7, 01:40:42 ago, via FastEthernet0/1
Route metric is 31, traffic share count is 1
* 10.0.12.2, from 7.7.7.7, 01:40:42 ago, via FastEthernet0/0
Route metric is 31, traffic share count is 1
From the routing table above you would expect the flow to go via 10.0.12.2 on Fa0/0 due to the "*"
R1#sh ip cef 7.7.7.7
7.7.7.7/32, version 23, epoch 0, per-destination sharing
0 packets, 0 bytes
tag information set
local tag: 21
via 10.0.15.5, FastEthernet0/1, 0 dependencies
traffic share 1
next hop 10.0.15.5, FastEthernet0/1
valid adjacency
tag rewrite with Fa0/1, 10.0.15.5, tags imposed: {18}
via 10.0.12.2, FastEthernet0/0, 0 dependencies
traffic share 1
next hop 10.0.12.2, FastEthernet0/0
valid adjacency
tag rewrite with Fa0/0, 10.0.12.2, tags imposed: {24}
0 packets, 0 bytes switched through the prefix
tmstats: external 0 packets, 0 bytes
internal 0 packets, 0 bytes
Now i'll check the cef exact-path using both possible src addresses from int fa0/0 and fa0/1
R1#sh ip cef exact-route 10.0.12.1 7.7.7.7
10.0.12.1 -> 7.7.7.7 : FastEthernet0/1 (next hop 10.0.15.5)
R1#sh ip cef exact-route 10.0.15.1 7.7.7.7
10.0.15.1 -> 7.7.7.7 : FastEthernet0/1 (next hop 10.0.15.5)
Capture
http://imageshack.com/a/img911/3658/ypC6D7.png