Hi,

I have an issue with routing that I just can't figure out.

What I have at the moment is a box set up with an IP and route as follows (some of the details have

route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
203.221.41.11 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
203.220.47.152 0.0.0.0 255.255.255.252 U 0 0 0 eth0
203.221.41.0 0.0.0.0 255.255.255.224 U 0 0 0 eth0
0.0.0.0 203.220.47.153 0.0.0.0 UG 0 0 0 eth0


eth0 Link encap:Ethernet HWaddr 00:05:1C:0B:48:A8
inet addr:203.221.41.11 Bcast:203.221.41.31 Mask:255.255.255.224



As can be seen from above the default route is set up to go to a gateway on a static route.


What I want to do is add an ip alias to eth0 with an ip address of 203.221.41.12 and have it route out through the same gateway.

If I simply do "ifconfig eth0:1 203.221.41.12 netmask 255.255.255.224 broadcast 203.221.41.3" I can ping the IP address from the machine that is on the same switch (e.g. from 203.221.41.1) but I can not ping or trace to the ip aliased interface. I have searched around on google but can't seem to find what I am doing wrong!

Thanks,


-- Lauchlin




Reply via email to