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: 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)
  • Re: Priority of connection used to access Internet
    ... A packet's outgoing interface is determined by its destination and the cost ... of the destination specified by the entries in the routing table. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: 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 ... The packet will then go out, but when it will come back, ...
    (Linux-Kernel)