On Thu, 10 Oct 2002, Muhammad Wicaksono Mursid wrote:

> Just put your commands of ip aliasing like this on 
> /etc/init.d/bootmisc.sh :
> 
> ip a add 192.168.1.0/24 dev eth0
> ip a add 192.168.2.0/24 dev eth0

Putting network configuration commands in /etc/init.d/bootmisc.sh is a
good way to drive yourself batty when you later try to figure out how to
undo or fix your configuration, because that is not the logical place to
put it.

Use /etc/network/interfaces instead, with the "up" and "down" options as
brosky vaguely recalled below, or with separate interface
stanzas.  The stuff after the "up" and "down" options form the command
that should be executed when that interface goes up or down... the
commands above are possible candidates.

> 
> thank's
> 
> 
> --- [EMAIL PROTECTED] wrote:
> > 
> > Hi,
> > 
> > I've read something before about this, is 
> > was something like
> > 
> > up ip add addr dev eth0 <ip>
> > down ip add addr dev eth0 <ip> 
> > 
> > but i'm not sure.
> > 
> > Anyone can enlight me ?
> > 
> > I want to have several IP's on the same interface,
> > for routing purposes...
> > 
> > Like, now the external inteface is 194.176.188.5 and
> > i want to 
> > route some other ip-s to it, and i need to have the
> > same interface with
> > the ip 217.156.9.1/28
> > 
> > bye
> > 
> > 
> > 
> > 
> >
> -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> >
> ------------------------------------------------------------------------
> > leaf-user mailing list:
> > [EMAIL PROTECTED]
> >
> https://lists.sourceforge.net/lists/listinfo/leaf-user
> > SR FAQ:
> http://leaf-project.org/pub/doc/docmanager/docid_1891.html
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Faith Hill - Exclusive Performances, Videos & More
> http://faith.yahoo.com
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ------------------------------------------------------------------------
> leaf-user mailing list: [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/leaf-user
> SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
> 

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<[EMAIL PROTECTED]>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...2k
---------------------------------------------------------------------------



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to