[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: binding 2 or more IP addresses to one interface?




Sorry, I forgot to add:
If you want the aliases to be loaded at boot - time, you have to add auto eth0:aliasnumber before each alias stanza into your
/etc/network/interfaces

e.g.:
auto eth0:0
iface eth0:0 inet static
       address 192.168.1.11
       netmask 255.255.255.0


Bye,
Andy



andreas.sumper@nimbus.at wrote on 16/11/2004 07:15:14 PM:

>
>
> Sergio Basurto Juarez <sbasurtoj@yahoo.com> wrote on 16/11/2004 06:17:44 PM:
>
> >
> > --- Ivan Wills <ivan@apollolifesciences.com> wrote:
> >
> > > Hi
> > > I want to set up apache with some virtual hosts with
> > > different IP
> > > addresses and only have one NIC in the machine. Does
> > > any know how to
> > > bind more than one IP address to a NIC?
> > >
> > > Thanks
> > > Ivan
> > >
> > With a bonding module in the kernel you can achieve this.
>
> Or just add an alias to your /etc/network/interfaces - file:
> e.g.:
> iface eth0 inet static
>         address 192.168.1.10
>         netmask 255.255.255.0
>         network 192.168.1.0
>         broadcast 192.168.1.254
>         gateway 192.168.1.1
>
> this is your default configuration. now add one or more aliases:
>
> iface eth0:0 inet static
>         address 192.168.1.11
>         netmask 255.255.255.0
>
> iface eth0:1 inet static
>         address 192.168.1.12
>         netmask 255.255.255.0
>
> and so on...
>
> after that, just do as root a
> /etc/init.d/networking restart
>
> and then you have three ip - addresses configured for one nic.
> this also works with "official" ips.
>
> hope that helps!
>
> Bye,
> Andy
>
> > =====
> > --
> > Sergio Basurto J.
> >
> > If I have seen further it is by standing on the
> > shoulders of giants. (Isaac Newton)
> > --
> >
> >
> >      
> > __________________________________
> > Do you Yahoo!?
> > Meet the all-new My Yahoo! - Try it today!
> > http://my.yahoo.com
> >  
> >
> >
> > --
> > To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> > with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> >
> ----------------------------------------------------------------------------
> | Andreas Sumper
> | Administration / Services / IT Security
> | nimbus Development IT Consulting GmbH
> | we unleash the power of domino
> |
> | Annenstrasse 30/1
> | 8020 Graz
> | Tel.: +43 (0) 316 714 255 -> DW 18
> | Fax: +43 (0) 316 714 255 -> DW 4
> | http://www.nimbus.at/
> ----------------------------------------------------------------------------
> | sent through Lotus Notes 6.5.1
> | using wine on a linux box
----------------------------------------------------------------------------
| Andreas Sumper
| Administration / Services / IT Security
| nimbus Development IT Consulting GmbH
| we unleash the power of domino
|
| Annenstrasse 30/1
| 8020 Graz
| Tel.: +43 (0) 316 714 255 -> DW 18
| Fax: +43 (0) 316 714 255 -> DW 4
| http://www.nimbus.at/
----------------------------------------------------------------------------
| sent through Lotus Notes 6.5.1
| using wine on a linux box


Reply to: