IP Aliasing with Linux 2.4
M. Scholz
msperrin at u.washington.edu
Mon Apr 9 19:58:38 PDT 2001
this could be an artifact of something else, too.
Have you checked your ipchains rules to make sure you're not arbitrarily
dropping the packet? Just a thought.
If you're happy and you know it....
-Matthew Scholz
On Mon, 9 Apr 2001, matt william barclay wrote:
> Hello,
>
> I am running linux 2.4.3 and trying to alias an IP on eth1. Here are the
> commands I've issued:
>
> $ ifconfig eth1:0 192.168.1.30
> $ route add -host 192.168.1.30 dev eth1:0
>
> So now ifconfig looks like:
> ...
> eth1:0 Link encap:Ethernet HWaddr 00:30:22:52:AF:AB
> inet addr:192.168.1.30 Bcast:192.168.1.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> Interrupt:11 Base address:0xd800
>
> And route -n looks like:
> ...
> 192.168.1.30 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
> 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
> ...
>
> But when I ping 192.168.1.30:
>
> PING 192.168.1.30 (192.168.1.30) from 192.168.1.30 : 56(84) bytes of data.
> ping: sendto: Operation not permitted
> ping: wrote 192.168.1.30 64 chars, ret=-1
> ping: sendto: Operation not permitted
> ping: wrote 192.168.1.30 64 chars, ret=-1
> ping: sendto: Operation not permitted
> ping: wrote 192.168.1.30 64 chars, ret=-1
>
> I don't understand why this doesn't work. It seems the only thing changed
> from 2.2 to 2.4 in the Aliasing code is the removal of the #ifdef
> CONFIG_IP_ALIAS statements.
>
> I'm not sure where to go from here. Has anyone had any luck with IP
> aliasing with the 2.4 kernel?
>
> Thanks,
> Matt
>
> ----------------------------------------------------------------
> PGP Fingerprint: 3A14 D2BB B693 72C9 8F19 C697 21A9 3865 C9BA C40E
> PGP Key: http://www.cs.washington.edu/homes/mbarclay/pgpkey.txt
> ----------------------------------------------------------------
>
>
>
More information about the Linux
mailing list