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

ME vox-tech@lists.lugod.org
Sun, 10 Mar 2002 12:06:04 -0800 (PST)


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
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech
>