public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Kernel ethernet alias limit
@ 2002-02-19  9:38 Jim Roland
  2002-02-19 10:16 ` Luis Garces
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jim Roland @ 2002-02-19  9:38 UTC (permalink / raw)
  To: linux-kernel

I seem to remember back in either Kernel 2.0 or 2.2 there was a limit of 256
aliases within the ethX aliasing (eg, eth0, then eth0:0 thru eth0:255).

Has the limit on this been expanded with Kernel 2.4, is it stable and/or
advised?  I have a need to bind more than 256 addresses to a single
interface.  Without installing additional network cards.

Thanks,
Jim Roland, RHCE



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Kernel ethernet alias limit
  2002-02-19  9:38 Kernel ethernet alias limit Jim Roland
@ 2002-02-19 10:16 ` Luis Garces
  2002-02-19 12:11 ` bert hubert
  2002-02-19 18:03 ` David Ford
  2 siblings, 0 replies; 5+ messages in thread
From: Luis Garces @ 2002-02-19 10:16 UTC (permalink / raw)
  Cc: linux-kernel

Hi!

Don't know the exact figures, but I was recently able to create more 
than a thousand eth0:X interfaces in a single machine with 2.2.19 
kernels. And it worked perfectly (answer to ping from another host, etc)

Jim Roland wrote:

> I seem to remember back in either Kernel 2.0 or 2.2 there was a limit of 256
> aliases within the ethX aliasing (eg, eth0, then eth0:0 thru eth0:255).
> 
> Has the limit on this been expanded with Kernel 2.4, is it stable and/or
> advised?  I have a need to bind more than 256 addresses to a single
> interface.  Without installing additional network cards.
> 
> Thanks,
> Jim Roland, RHCE
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 
> 


-- 
Luis
****


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Kernel ethernet alias limit
  2002-02-19  9:38 Kernel ethernet alias limit Jim Roland
  2002-02-19 10:16 ` Luis Garces
@ 2002-02-19 12:11 ` bert hubert
  2002-02-19 18:18   ` David Lang
  2002-02-19 18:03 ` David Ford
  2 siblings, 1 reply; 5+ messages in thread
From: bert hubert @ 2002-02-19 12:11 UTC (permalink / raw)
  To: Jim Roland; +Cc: linux-kernel

On Tue, Feb 19, 2002 at 09:39:30AM +0000, Jim Roland wrote:
> I seem to remember back in either Kernel 2.0 or 2.2 there was a limit of 256
> aliases within the ethX aliasing (eg, eth0, then eth0:0 thru eth0:255).
> 
> Has the limit on this been expanded with Kernel 2.4, is it stable and/or
> advised?  I have a need to bind more than 256 addresses to a single
> interface.  Without installing additional network cards.

Use a loopback interface - you can easily bind to a /8 if you want this way.

I think this is documented in the 'ip' documentation in 'iproute2' from
Alexey. It has also been explained on list here.

Regards,

bert

-- 
http://www.PowerDNS.com          Versatile DNS Software & Services
http://www.tk                              the dot in .tk
Netherlabs BV / Rent-a-Nerd.nl           - Nerd Available -
Linux Advanced Routing & Traffic Control: http://ds9a.nl/lartc

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Kernel ethernet alias limit
  2002-02-19  9:38 Kernel ethernet alias limit Jim Roland
  2002-02-19 10:16 ` Luis Garces
  2002-02-19 12:11 ` bert hubert
@ 2002-02-19 18:03 ` David Ford
  2 siblings, 0 replies; 5+ messages in thread
From: David Ford @ 2002-02-19 18:03 UTC (permalink / raw)
  To: Jim Roland; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1056 bytes --]

You don't need dummy ethN:N interfaces.  Use the iproute2 tools, 'ip' 
specifically.

ip link set eth0 down
ip address flush eth0
ip address add 1.2.3.4/24 brd + dev eth0
ip address add 1.2.3.5/25 brd + dev eth0
ip address add ....to your heart's content
ip link set eth0 up
ip route add default via 2.3.8.9 via 5.4.3.2 dev eth0

See the scripts on http://blue-labs.org/ for some examples.

David

Jim Roland wrote:

>I seem to remember back in either Kernel 2.0 or 2.2 there was a limit of 256
>aliases within the ethX aliasing (eg, eth0, then eth0:0 thru eth0:255).
>
>Has the limit on this been expanded with Kernel 2.4, is it stable and/or
>advised?  I have a need to bind more than 256 addresses to a single
>interface.  Without installing additional network cards.
>
>Thanks,
>Jim Roland, RHCE
>
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/
>


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3254 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Kernel ethernet alias limit
  2002-02-19 12:11 ` bert hubert
@ 2002-02-19 18:18   ` David Lang
  0 siblings, 0 replies; 5+ messages in thread
From: David Lang @ 2002-02-19 18:18 UTC (permalink / raw)
  To: bert hubert; +Cc: Jim Roland, linux-kernel

if you use the new ip tools you can alias a large entblock in a single
command, but even with ifconfig you can do a lot (I have one machine with
>1770 ipaddresses assigned via ifconfig with no problem)

David Lang

 On Tue, 19 Feb 2002, bert hubert wrote:

> Date: Tue, 19 Feb 2002 13:11:21 +0100
> From: bert hubert <ahu@ds9a.nl>
> To: Jim Roland <jroland@roland.net>
> Cc: linux-kernel@vger.kernel.org
> Subject: Re: Kernel ethernet alias limit
>
> On Tue, Feb 19, 2002 at 09:39:30AM +0000, Jim Roland wrote:
> > I seem to remember back in either Kernel 2.0 or 2.2 there was a limit of 256
> > aliases within the ethX aliasing (eg, eth0, then eth0:0 thru eth0:255).
> >
> > Has the limit on this been expanded with Kernel 2.4, is it stable and/or
> > advised?  I have a need to bind more than 256 addresses to a single
> > interface.  Without installing additional network cards.
>
> Use a loopback interface - you can easily bind to a /8 if you want this way.
>
> I think this is documented in the 'ip' documentation in 'iproute2' from
> Alexey. It has also been explained on list here.
>
> Regards,
>
> bert
>
> --
> http://www.PowerDNS.com          Versatile DNS Software & Services
> http://www.tk                              the dot in .tk
> Netherlabs BV / Rent-a-Nerd.nl           - Nerd Available -
> Linux Advanced Routing & Traffic Control: http://ds9a.nl/lartc
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-02-19 18:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-19  9:38 Kernel ethernet alias limit Jim Roland
2002-02-19 10:16 ` Luis Garces
2002-02-19 12:11 ` bert hubert
2002-02-19 18:18   ` David Lang
2002-02-19 18:03 ` David Ford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox