Routing problem with interface aliasing (kernel 2.2.5)

Amitay B Isaacs (
Wed, 21 Apr 1999 16:48:10 +0530


I have been faced with a very peculiar problem. With kernel 2.2.5 when I
define the interface aliases having IP addresses in the same network as the
original interface, all the packets to that network are routed via the
alias and not the original interface.

eth0 has IP address
eth0:0 has IP address

Now all the packets on network have the source IP
set as Can anyone explain why this is happening? Is there
any way I can change the source to which is the interface IP

Here is what the routing table looks like...

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface UH 0 0 0 eth0 UH 0 0 0 lo U 0 0 0 eth0

Thank You.



No legacy is so rich as honesty. - William Shakespeare - To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to