All of lore.kernel.org
 help / color / mirror / Atom feed
* IP aliasing/Virtual IP's in 2.2.19 or 2.4.10
@ 2001-09-26  0:17 Steve Pirk
  0 siblings, 0 replies; 5+ messages in thread
From: Steve Pirk @ 2001-09-26  0:17 UTC (permalink / raw)
  To: linux-kernel

I remember a while back that there was an option in make menuconfig
to enable IP masquerading or IP aliasing - The last version I
remember seeing it in was 2.2.16. I am trying to enable virtual
addresses on my box (eth0 and eth0:0 eth0:1 etc), and I am
getting the following errors:
SIOCSIFADDR: No such device
SIOCSIFFLAGS: No such device
when I issue the command:
/sbin/ifconfig eth0:0 64.133.146.201 broadcast 64.133.146.255 \
netmask 255.255.255.224

In the 2.2.16 menuconfig there was the following option inside of
Network Options:
[*] IP: masquerading
Enabling this allow me to define virtual IP's. I cannot find the
same option in 2.2.19, 2.4.4, or in 2.4.10. 
Does anyone know where/how to enable this much needed fuctionality?

Thansk in advance.
-- 
Steve Pirk
orion@deathcon.com . deathcon.com . pirk.com . webops.com . t2servers.com 


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

* Re: IP aliasing/Virtual IP's in 2.2.19 or 2.4.10
@ 2001-09-26 18:53 Steve Pirk
  2001-09-26 19:09 ` J Sloan
  0 siblings, 1 reply; 5+ messages in thread
From: Steve Pirk @ 2001-09-26 18:53 UTC (permalink / raw)
  To: linux-kernel


This much I have found so far...
In /usr/src/linux-2.2.16/.config :
CONFIG_IP_MASQUERADE=y
CONFIG_IP_MASQUERADE_ICMP=y
CONFIG_IP_MASQUERADE_MOD=y
CONFIG_IP_MASQUERADE_IPAUTOFW=m
CONFIG_IP_MASQUERADE_IPPORTFW=m
CONFIG_IP_MASQUERADE_MFW=m

In /usr/src/linux-2.2.19/.config
no CONFIG_IP_MASQUERADE lines at all....

Would it be save to add them to a 2.2.19 or 2.4.10 .config file?
Is aliasing/masquerading enabled by default in kernel versions
above 2.2.19?

Steve
--
On Tue, 25 Sep 2001, J Sloan wrote:

  JS> Well now that you mention it I'm not sure
  JS> which option it is now - but rest assured
  JS> it works in e.g. the default Red Hat 7.x and
  JS> roswell kernels, and it works on my self
  JS> compiled kernels - I can send you my
  JS> .config if you want - or maybe someone
  JS> else on the list will fill in the blanks -
  JS> 
  JS> cu
  JS> 
  JS> jjs
  JS> 
  JS> Steve Pirk wrote:
  JS> 
  JS> > I remember a while back that there was an option in make menuconfig
  JS> > to enable IP masquerading or IP aliasing - The last version I
  JS> > remember seeing it in was 2.2.16. I am trying to enable virtual
  JS> > addresses on my box (eth0 and eth0:0 eth0:1 etc), and I am
  JS> > getting the following errors:
  JS> > SIOCSIFADDR: No such device
  JS> > SIOCSIFFLAGS: No such device
  JS> > when I issue the command:
  JS> > /sbin/ifconfig eth0:0 64.133.146.201 broadcast 64.133.146.255 \
  JS> > netmask 255.255.255.224
  JS> >
  JS> > In the 2.2.16 menuconfig there was the following option inside of
  JS> > Network Options:
  JS> > [*] IP: masquerading
  JS> > Enabling this allow me to define virtual IP's. I cannot find the
  JS> > same option in 2.2.19, 2.4.4, or in 2.4.10.
  JS> > Does anyone know where/how to enable this much needed fuctionality?
  JS> >
  JS> > Thansk in advance.
  JS> > --
  JS> > Steve Pirk
  JS> > orion@deathcon.com . deathcon.com . pirk.com . webops.com . t2servers.com
  JS> >
  JS> > -
  JS> > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
  JS> > the body of a message to majordomo@vger.kernel.org
  JS> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
  JS> > Please read the FAQ at  http://www.tux.org/lkml/
  JS> 

-- 
Steve Pirk
orion@deathcon.com . deathcon.com . pirk.com . webops.com . t2servers.com 



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

* Re: IP aliasing/Virtual IP's in 2.2.19 or 2.4.10
  2001-09-26 18:53 IP aliasing/Virtual IP's in 2.2.19 or 2.4.10 Steve Pirk
@ 2001-09-26 19:09 ` J Sloan
  2001-09-26 19:17   ` Steve Pirk
  0 siblings, 1 reply; 5+ messages in thread
From: J Sloan @ 2001-09-26 19:09 UTC (permalink / raw)
  To: Steve Pirk; +Cc: linux-kernel

Steve Pirk wrote:

> This much I have found so far...
> In /usr/src/linux-2.2.16/.config :
> CONFIG_IP_MASQUERADE=y
> CONFIG_IP_MASQUERADE_ICMP=y
> CONFIG_IP_MASQUERADE_MOD=y
> CONFIG_IP_MASQUERADE_IPAUTOFW=m
> CONFIG_IP_MASQUERADE_IPPORTFW=m
> CONFIG_IP_MASQUERADE_MFW=m
>
> In /usr/src/linux-2.2.19/.config
> no CONFIG_IP_MASQUERADE lines at all....
>
> Would it be save to add them to a 2.2.19 or 2.4.10 .config file?

bad idea -

>
> Is aliasing/masquerading enabled by default in kernel versions
> above 2.2.19?

I think it's a default feature in 2.4.x since I don't
see a config file option for it and it works fine on
all my boxen -

Let's check the docs:

Ah, here it is - and it matches my experience -

/usr/src/linux/Documentation/networking/alias.txt:
-----------------------------------------------------------------------------
IP-Aliasing:
============

IP-aliases are additional IP-adresses/masks hooked up to a base
interface by adding a colon and a string when running ifconfig.
This string is usually numeric, but this is not a must.

IP-Aliases are avail if CONFIG_INET (`standard' IPv4 networking)
is configured in the kernel.


o Alias creation.
  Alias creation is done by 'magic' interface naming: eg. to create a
  200.1.1.1 alias for eth0 ...

    # ifconfig eth0:0 200.1.1.1  etc,etc....
                   ~~ -> request alias #0 creation (if not yet exists) for eth0

    The corresponding route is also set up by this command.
    Please note: The route always points to the base interface.




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

* Re: IP aliasing/Virtual IP's in 2.2.19 or 2.4.10
  2001-09-26 19:09 ` J Sloan
@ 2001-09-26 19:17   ` Steve Pirk
  2001-09-26 19:30     ` J Sloan
  0 siblings, 1 reply; 5+ messages in thread
From: Steve Pirk @ 2001-09-26 19:17 UTC (permalink / raw)
  To: J Sloan; +Cc: linux-kernel

This makes sense now... The version I am having trouble with
is 2.2.19. I think I will grab 2.4.4 and try that...

Thanks for all the help!

Steve
--
On Wed, 26 Sep 2001, J Sloan wrote:

  JS> Steve Pirk wrote:
  JS> 
  JS> > This much I have found so far...
  JS> > In /usr/src/linux-2.2.16/.config :
  JS> > CONFIG_IP_MASQUERADE=y
  JS> >
  JS> > In /usr/src/linux-2.2.19/.config
  JS> > no CONFIG_IP_MASQUERADE lines at all....
  JS> >
  JS> > Would it be save to add them to a 2.2.19 or 2.4.10 .config file?
  JS> 
  JS> bad idea -
agreed :-)

  JS> 
  JS> >
  JS> > Is aliasing/masquerading enabled by default in kernel versions
  JS> > above 2.2.19?
  JS> 
  JS> I think it's a default feature in 2.4.x since I don't
  JS> see a config file option for it and it works fine on
  JS> all my boxen -
  JS> 
  JS> Let's check the docs:
  JS> 

I know... I should have checked the 2.4.x docs. 

  JS> Ah, here it is - and it matches my experience -
  JS> 
  JS> /usr/src/linux/Documentation/networking/alias.txt:
  JS> -----------------------------------------------------------------------------
  JS> IP-Aliasing:
  JS> ============
  JS> 
  JS> IP-aliases are additional IP-adresses/masks hooked up to a base
  JS> interface by adding a colon and a string when running ifconfig.
  JS> This string is usually numeric, but this is not a must.
  JS> 
  JS> IP-Aliases are avail if CONFIG_INET (`standard' IPv4 networking)
  JS> is configured in the kernel.
  JS> 
  JS> 
  JS> o Alias creation.
  JS>   Alias creation is done by 'magic' interface naming: eg. to create a
  JS>   200.1.1.1 alias for eth0 ...
  JS> 
  JS>     # ifconfig eth0:0 200.1.1.1  etc,etc....
  JS>                    ~~ -> request alias #0 creation (if not yet exists) for eth0
  JS> 
  JS>     The corresponding route is also set up by this command.
  JS>     Please note: The route always points to the base interface.

-- 
Steve Pirk
orion@deathcon.com . deathcon.com . pirk.com . webops.com . t2servers.com 


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

* Re: IP aliasing/Virtual IP's in 2.2.19 or 2.4.10
  2001-09-26 19:17   ` Steve Pirk
@ 2001-09-26 19:30     ` J Sloan
  0 siblings, 0 replies; 5+ messages in thread
From: J Sloan @ 2001-09-26 19:30 UTC (permalink / raw)
  To: Steve Pirk; +Cc: J Sloan, linux-kernel

Steve Pirk wrote:

> This makes sense now... The version I am having trouble with
> is 2.2.19. I think I will grab 2.4.4 and try that...
>

Well, if you're going to compile a kernel from
scratch, why not get the benefit of all the
bug fixes and enhancements of the last
6 months and start with 2.4.10?

(or a 2.4.9-ac if you prefer)

cu

jjs


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

end of thread, other threads:[~2001-09-26 19:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-26 18:53 IP aliasing/Virtual IP's in 2.2.19 or 2.4.10 Steve Pirk
2001-09-26 19:09 ` J Sloan
2001-09-26 19:17   ` Steve Pirk
2001-09-26 19:30     ` J Sloan
  -- strict thread matches above, loose matches on Subject: below --
2001-09-26  0:17 Steve Pirk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.