[vox-tech] binding multi ip's to single iface in debian

vox-tech@lists.lugod.org vox-tech@lists.lugod.org
Sun, 10 Mar 2002 21:53:16 +0000


ah ha...
it seems that it has been "built in" to CONFIG_INET.
After renaming my interfaces in /etc/network/interfaces
it's working... 

thanks for the help
-Doug
> On Sun, 10 Mar 2002 mrdoug@attbi.com wrote:
> > Ok, didn't realize it was a kernel option... but it makes
> > sense. I should have said that I'm using 2.4.18 kernel. I
> > can't find an option for CONFIG_IP_ALIAS and the
> > Configure.help for this version doesn't have this entry.
> > What version of the kernel did you find this?
> 
> v2.2.
> 
> It is possible that this feature has just been enabled and forced "on" in
> 2.4 series kernels. What happens when you try to configure an interface
> called eth0:0 instead of eth0 (or whatever interface you want to bind
> multiple IP addresses to ?
> 
> -ME
> 
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.12
> GCS/CM$/IT$/LS$/S/O$ !d--(++) !s !a+++(-----) C++$(++++) U++++$(+$) P+$>+++ 
> L+++$(++) E W+++$(+) N+ o K w+$>++>+++ O-@ M+$ V-$>- !PS !PE Y+ !PGP
> t@-(++) 5+@ X@ R- tv- b++ DI+++ D+ G--@ e+>++>++++ h(++)>+ r*>? z?
> ------END GEEK CODE BLOCK------
> decode: http://www.ebb.org/ungeek/ about: http://www.geekcode.com/geek.html
>      Systems Department Operating Systems Analyst for the SSU Library
> 
> > > Kernel compile/config option:
> > > 
> > > CONFIG_IP_ALIAS
> > > 
> > > (linux kernel src path)/Documentation/Configure.help )
> > > ---
> > > CONFIG_IP_ALIAS
> > >   Sometimes it is useful to give several IP addresses to a single
> > >   physical network interface (serial port or Ethernet card). The most
> > >   common case is that you want to serve different WWW or ftp documents
> > >   to the outside depending on which of your host names was used to
> > >   connect to you. This is called "multihosting" or "virtual domains"
> > >   or "virtual hosting services" and is explained in detail on the WWW
> > >   at http://www.thesphere.com/~dlp/TwoServers/ (to browse the WWW, you
> > >   need to have access to a machine on the Internet that has a program
> > >   like lynx or netscape) and also in the Virtual-Services-HOWTO,
> > >   available via FTP (user: anonymous) from
> > >   ftp://metalab.unc.edu/pub/Linux/docs/HOWTO.
> > > 
> > >   Another scenario would be that there are two logical networks living
> > >   on your local Ethernet and you want to access them both with the
> > >   same Ethernet card. This can also be done if you say Y here.
> > > 
> > >   The configuration of these alias addresses is done with a special
> > >   name syntax explained in Documentation/networking/alias.txt and in
> > >   the IP-Alias mini-HOWTO. If you want this, say Y. Most people don't
> > >   need it and say N.
> > > 
> > > ---
> > > 
> > > After you have this enables, you can ifconfig the interface with
> > > ifconfig eth0:0 blah
> > > and
> > > ifconfig eth0:1 blah
> > > etc...
> > > 
> > > Check ut the readmes they ref in the kernel doc, they explain more than my
> > > "blah" :-)
> > > 
> > > -ME
> > > 
> > > -----BEGIN GEEK CODE BLOCK-----
> > > Version: 3.12
> > > GCS/CM$/IT$/LS$/S/O$ !d--(++) !s !a+++(-----) C++$(++++) U++++$(+$) P+$>+++ 
> > > L+++$(++) E W+++$(+) N+ o K w+$>++>+++ O-@ M+$ V-$>- !PS !PE Y+ !PGP
> > > t@-(++) 5+@ X@ R- tv- b++ DI+++ D+ G--@ e+>++>++++ h(++)>+ r*>? z?
> > > ------END GEEK CODE BLOCK------
> > > decode: http://www.ebb.org/ungeek/ about: http://www.geekcode.com/geek.html
> > >      Systems Department Operating Systems Analyst for the SSU Library
> > > 
> > > On Sun, 10 Mar 2002 mrdoug@attbi.com wrote:
> > > > Can anybody point me towards a doc on binding 2 ip's to a
> > > > single interface under debian?
> > > > 
> > > > It seems to me that it has something to do with
> > > > /etc/network/interfaces but I can't seem to figure out
> > > > the syntax
> > > > 
> > > > -Doug