Re: 2.2 source IP oddness

Matthew G. Marsh (mgm@paktronix.com)
Thu, 8 Apr 1999 10:47:46 -0500 (CDT)


On Wed, 7 Apr 1999, Clint Adams wrote:

> It seems that when binding multiple IPs to an interface,
> a packet's source address will be set to the lowest-numbered
> IP alias rather than the IP of the primary interface.
>
> i.e. if eth0 is 192.168.1.55, eth0:1 is 192.168.1.44, and eth0:2 is
> 192.168.1.66, all packets will originate from 192.168.1.44.

You need to use Alexey's IPROUTE2 package. It handles the aliasing and src
addressing much better.
IE: ip addr add 192.168.1.1/24 dev eth0 src 192.168.1.1
will give you an address and the source ip for the packets.

ftp://ftp.tux.org/pub/net/ip-routing

is the mirror site I get it from.

> Please cc me on all replies.

--------------------------------------------------
Matthew G. Marsh, President
Paktronix Systems LLC
1506 North 59th Street
Omaha NE 68104
Phone: (402) 932-7250
Email: mgm@paktronix.com
WWW: http://www.paktronix.com
--------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/