Routing problem with interface aliasing (kernel 2.2.5)

Amitay B Isaacs (amitay@w-o-i.com)
Wed, 21 Apr 1999 16:48:10 +0530


Hi,

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 192.168.0.2
eth0:0 has IP address 192.168.0.220

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

Here is what the routing table looks like...

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
127.0.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 lo
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

Thank You.

Amitay.

-- 

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 majordomo@vger.rutgers.edu