Re: Addendum:



On Mon, 13 Mar 2006 11:15:14 -0800, Merv wrote:

Packets generated on a router usually use the IP address oof the interface
"closest" to the destination (i.e the interface out of which the packet
will be routed

Generally speaking, unless explicitly overridden, packets originating from
a Cisco router will use as a source address the primary address of the
interface expected to be the interface used to reach the destination. This
results in some interesting source addresses at times...two specific cases
which I've seen in the wild:

1 - The primary IP on an interface with secondary IP's defined will be
used to send packets to a destination on a secondary subnetwork. If the
destination does not have an appropriate default gateway, you can ping the
router's secondary IP from the destination system, but can't ping the
destination system from the router.

2 - The interface actually used to send the packet is not the interface
assumed when assigning the source IP address. Fairly common for syslog
messages about links going up and down. The source IP may be down by
the time the packet is sent.

--
Vincent C Jones, Consultant Expert advice and a helping hand
Networking Unlimited, Inc. for those who want to manage and
Tenafly, NJ Phone: 201 568-7810 control their networking destiny
http://www.networkingunlimited.com

.



Relevant Pages

  • Re: site to site vpn with internal NAT
    ... :interface. ... :192.168.1.101 tries to contact a peer on the remote side, ... so the *destination* IP 192.168.49.x will be changed to the destination ... and since there is a match, the packet will go out over the VPN. ...
    (comp.dcom.sys.cisco)
  • [RFC][PATCH] Cross Memory Attach v2 (resend)
    ... The basic idea behind cross memory attach is to allow MPI programs doing ... destination process, given an address and size from a source process, to ... Doesn't allow for some future use of the interface we would like to consider ... many MPI tasks writing to one MPI task vmsplice serialises the ...
    (Linux-Kernel)
  • Re: Forcing a particular IP address out to an interface
    ... > lo device regardless of what is in the route table. ... pretend that the ppp0 interface on the 'left' box has IP ... the packet somewhere along its route. ... packet to alter the destination address to 192.168.1.23 ...
    (comp.os.linux.networking)
  • Re: Force an application to use the IP I want for outgoing packets
    ... transmit a packet has nothing whatsoever to do with the source address ... *destination*, not the source. ... it will use interface 'A' if the ... Because 'ping' has to use raw sockets, it can use its own algorithm to ...
    (comp.os.linux.networking)
  • ipt_ROUTE loopback
    ... the local routing table and have traffic destined for one interface go ... always has the destination MAC of the first interface when it reaches ...
    (Linux-Kernel)