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

Russ



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