lkml.org 
[lkml]   [1999]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: 2.2 source IP oddness
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:51    [W:3.159 / U:0.464 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site