Peter Memishian writes:
> 
>  > The problem: packets are leaving interface e1000g2 with the source IP
>  > of interface e1000g0. Is it ever possible?
> 
> Yes, completely -- outbound interface selection and source address
> selection are completely decoupled, and your netmask for e1000g2 causes it
> to overlap with e1000g0.  Perhaps you meant to configure e1000g2 with a
> /24?

Actually, no, they don't overlap:

>  >         inet 10.24.1.101 netmask ffffff00 broadcast 10.24.1.255
>  >         inet 10.21.3.101 netmask ffff0000 broadcast 10.21.255.255

24 != 21.

But the rest is true, and this is just normal IP operation.  We choose
a source address to use based on the output interface _only if_ the
sender doesn't already have a source address set because of a prior
bind() or connect(), or because of IP_PKTINFO use.

IP routes by destination address, not by source.

-- 
James Carlson, Solaris Networking              <[email protected]>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to