On Tue, 23 Jul 2002, Russ Price wrote:

> [EMAIL PROTECTED] wrote:
> > I am trying to add an IP alias for a network card in Bering 1.0-RC3.
> > I have tried to add the following lines to /etc/network/interfaces
> > 
> > auto eth1:0 
> > iface eth1:0 inet static 
> >   address 192.168.1.254
> >   masklen 25
> >   broadcast 192.168.1.255
> > 
> > When I boot I get this error
> > Configuring network interfaces: Cannot find device \"eth1:0\"
> 
> 
> Here's what I did for such a situation:
> 
>       auto eth3
>       iface eth3 inet static
>               address 192.168.100.10
>               masklen 24
>               broadcast 192.168.100.255
>               up ip addr add 192.168.101.10/24 dev eth3
>               up ip addr add 192.168.102.10/24 dev eth3
>               up ip addr add 192.168.103.10/24 dev eth3
>               down ip addr del 192.168.101.10/24 dev eth3
>               down ip addr del 192.168.102.10/24 dev eth3
>               down ip addr del 192.168.103.10/24 dev eth3
> 
> The "up" and "down" entries can also be used for other shell commands if 
> desired.  There might be other ways of doing it that I don't know about.
> 

If you intend to use static NAT, you can have Shorewall add these for you. 
Just set ADD_IP_ALIASES=Yes in /etc/shorewall/shorewall.conf and Shorewall 
will add an alias for each entry in /etc/shorewall/nat.

-Tom
-- 
Tom Eastep    \ Shorewall - iptables made easy
AIM: tmeastep  \ http://www.shorewall.net
ICQ: #60745924  \ [EMAIL PROTECTED]



-------------------------------------------------------
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