IP_ALIAS not working: ifconfig returns "SIOCAIFADDR: Invalid argument"

IP_ALIAS not working: ifconfig returns "SIOCAIFADDR: Invalid argument"

Post by Jason Vagne » Tue, 02 Apr 1996 04:00:00



I patched my linux 1.2.13 with the IP_ALIAS patch and upgraded both netstat and
ifconfig, but when I try to "ifconfig eth0 alias <ip.address>" it returns the line
I included in the subject.

Thanks in advance for any assistance.

Jason Vagner

 
 
 

IP_ALIAS not working: ifconfig returns "SIOCAIFADDR: Invalid argument"

Post by Jason Vagne » Wed, 03 Apr 1996 04:00:00


Quote:> >I patched my linux 1.2.13 with the IP_ALIAS patch and upgraded both netstat and
> >ifconfig, but when I try to "ifconfig eth0 alias <ip.address>" it returns the
> >line I included in the subject.

> I could not solve it myself, and I have tried a lot of different versions of
> patches and net-tools. But...here comes the good news...if you try the > following:

> ifconfig eth0:1 <ipalias>

Unfortunately this didn't work either. Same error... (but thanks).

Is there a patch specifically for 1.2.13 available? I got one little burp in the
patching process, but it seemed to complete fine. Compilation runs well with no
big errors that I could see.

Jason Vagner

 
 
 

IP_ALIAS not working: ifconfig returns "SIOCAIFADDR: Invalid argument"

Post by Berend_W_van_Bemm » Thu, 04 Apr 1996 04:00:00



>I patched my linux 1.2.13 with the IP_ALIAS patch and upgraded both netstat and
>ifconfig, but when I try to "ifconfig eth0 alias <ip.address>" it returns the line
>I included in the subject.
>Thanks in advance for any assistance.
>Jason Vagner

Yep, I know that one :-(

I could not solve it myself, and I have tried a lot of different versions of
patches and net-tools. But...here comes the good news...if you try the following:

ifconfig eth0:1 <ipalias>

You will have yourself an alias adress on your machine! You will have to apply the
ALIAS patch to your kernel first (but I bet you already did) and the 'right'
version of ifconfig (that's the one that should have done the alias command but
complained)

You can add multiple aliases by useing eth0:<number> (I do not know what is max.)

Good luck,

Berend W. van Bemmel
AKRIS B.V.
--
+ Berend W. van Bemmel +----( this space is not for rent!   )-----+

+ www: http://www.xs4all.nl/~bemmel + home phone:(+31)(20)6257390 +

 
 
 

IP_ALIAS not working: ifconfig returns "SIOCAIFADDR: Invalid argument"

Post by Eric Lyo » Fri, 12 Apr 1996 04:00:00



>> >I patched my linux 1.2.13 with the IP_ALIAS patch and upgraded both netstat and
>> >ifconfig, but when I try to "ifconfig eth0 alias <ip.address>" it returns the
>> >line I included in the subject.

>> I could not solve it myself, and I have tried a lot of different versions of
>> patches and net-tools. But...here comes the good news...if you try the > following:

>> ifconfig eth0:1 <ipalias>
>Unfortunately this didn't work either. Same error... (but thanks).

I'm in exactly the same position. I was unable to build the new,
improved ifconfig because of some library problem, but I'm using the
binary from the new, "alias" version. Nothing seems to work.

Brain now melting...

Eric.

 
 
 

IP_ALIAS not working: ifconfig returns "SIOCAIFADDR: Invalid argument"

Post by Berend_W_van_Bemm » Fri, 12 Apr 1996 04:00:00




>>> >I patched my linux 1.2.13 with the IP_ALIAS patch and upgraded both netstat and
>>> >ifconfig, but when I try to "ifconfig eth0 alias <ip.address>" it returns the
>>> >line I included in the subject.

>>> I could not solve it myself, and I have tried a lot of different versions of
>>> patches and net-tools. But...here comes the good news...if you try the > following:

>>> ifconfig eth0:1 <ipalias>
>>Unfortunately this didn't work either. Same error... (but thanks).
>I'm in exactly the same position. I was unable to build the new,
>improved ifconfig because of some library problem, but I'm using the
>binary from the new, "alias" version. Nothing seems to work.
>Brain now melting...
>Eric.

Hmmm, this is strange... because eventually the ifconfig eth0:x <ipalias>
worked for me. Let me explain how I got to it: I first got the appropriate
kernel patch (don;t ask me where I got it, but I guess you already have it)
I then applied the patch with no hickups at all...just as promised ;-)
After that I fiddled aroud with a couple of net-tools packages; some have the
'ipalias' command in ifconfig, others have not (why? I dunno.)
Eventually 1 of the ifconfigs that gave the error that is in the subject line
(I can't see it from here) worked for me as follows:
ifconfig eth0:1 <ipalias>
Sounds strange, but works.
Anyhow, if all this fails you can also try to do it by configuring the
dummy device. This will only give you 1 extra ip-adres, but it's a start.

Good luck, (maybe a more knowledgable person than me will also post ;-),

Berend W. van Bemmel
--
+ Berend W. van Bemmel +----( this space is not for rent!   )-----+

+ www: http://www.xs4all.nl/~bemmel + home phone:(+31)(20)6257390 +

 
 
 

IP_ALIAS not working: ifconfig returns "SIOCAIFADDR: Invalid argument"

Post by Eric Lyo » Sat, 13 Apr 1996 04:00:00



>Hmmm, this is strange... because eventually the ifconfig eth0:x <ipalias>
>worked for me. Let me explain how I got to it: I first got the appropriate
>kernel patch (don;t ask me where I got it, but I guess you already have it)
>I then applied the patch with no hickups at all...just as promised ;-)
>After that I fiddled aroud with a couple of net-tools packages; some have the
>'ipalias' command in ifconfig, others have not (why? I dunno.)
>Eventually 1 of the ifconfigs that gave the error that is in the subject line
>(I can't see it from here) worked for me as follows:
>ifconfig eth0:1 <ipalias>
>Sounds strange, but works.
>Anyhow, if all this fails you can also try to do it by configuring the
>dummy device. This will only give you 1 extra ip-adres, but it's a start.

Hmm.  Are you using kernel v 1.2.x?  I was using 1.2.8, then upgraded
to 1.2.13.  The alias patch I got came from mindspring.com, and came
with ifconfig and netstat.

I *do* know that the "ifconfig eth0:1 ..." syntax is what they're
(apparently) moving toward in kernel 1.3.x.  Could it be that you're
actually running 1.3?  If not, perhaps you can remember one or two of
the sites from which you got net-tools; I'll go grab them and try it
as well.

Quote:>Good luck, (maybe a more knowledgable person than me will also post ;-),

Thanks.  Seems like I'm almost there...

Eric.

 
 
 

1. Local forwarding with "iptables" gives "invalid arguments"

Dear all,

while trying to set up a reverse proxy I ran into serious trouble with
iptables.

I'm trying to forward locally generated traffic to a remote machine.
But a command like

# iptables -A OUTPUT -t nat -p tcp -d 192.168.1.154 -j DNAT
--to-destination 192.168.1.250

fails with the laconic message "iptables: Invalid argument" which is
not helpful in any way.

I' running SuSE Linux Enterprise Server (last try was with their kernel
2.6.5-7.191-default)
and, YES, I have already rebuilt the kernel after setting
CONFIG_IP_NF_NAT_LOCAL=y.

Actually I built several kernel by now, the last one with all netfilter
stuff compiled in (not as modules).

However, the result stays the same whatever I try, that damn "Invalid
argument".

How can I find out what is the reason for that, how can I debug this
kind of stuff in a way that enables me to find what "argument" is
"invalid" here for what reason.

Benno

2. Print Driver for Lexmark 2030

3. Route returns "invalid argument" error

4. Distributing processes on Solaris 2.5.1

5. kernel does not find PS/2 mouse, gpm says "Invalid argument"

6. Nested directory structure problem

7. Cygwin bash "id -un" returns "Administrator" when I'm not

8. PS2 mouse port???

9. startx returns errors "Not a declared device" or "Chipset string expected"

10. GETSERVBYNAME()????????????????????"""""""""""""

11. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

12. "ifconfig de0 media 10baseT/UTP" does NOT work

13. "ifconfig de0 media 10baseT/UTP" not working