In article <ghr9eu$p9g$>,
(Igor Mamuzic aka Pseto) writes:
| ok I discovered that it always uses IP address of the interface with default
| route as source IP address for locally generated packets

Until now I
| thought that router will always use IP address of egress interface as a
| source ip until configured to not do so. Is there any logical explanation
| about this?
I believe the router typically uses as a source address the primary address
of the interface that would hypothetically be the egress interface under
normal routing rules. It does not "pre run" any other code (e.g., route
maps) that could result in a different egress interface. Even in some
simple cases you can get undesirable effects. For example, if the interface
is chosen because of the route installed for a secondary address the router
still uses the primary address as source. In many cases where it matters
at all this is not the address you want...
Dan Lanciani
ddl@danlan.*com