You can try the following:

# Configure Interface
auto eth1
iface eth1 inet static
      address 192.168.1.155
      netmask 255.255.255.0
      broadcast 192.168.1.0
      gateway 192.168.1.1
      up ip addr add 192.168.2.155/24 dev eth1



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ALParada
Sent: Tuesday, January 18, 2005 5:48 PM
To: leaf-user@lists.sourceforge.net
Subject: [leaf-user] multiple addresses

Hello,

Exactly how do you add mutiple ip addresses to the same interface? I tried
adding this under network config/interfaces:

# Configure Interface
auto eth1
iface eth1 inet static
      address 192.168.1.155
      netmask 255.255.255.0
      broadcast 192.168.1.0
      gateway 192.168.1.1

auto eth1:0
iface eth1 inet static
      address 192.168.2.155
      netmask 255.255.255.0
      broadcast 192.168.2.0

When I restarted networking I had lost all my addresses. I did an "ip addr"
and they were all gone. I commented the second address and did a:

ip addr add 192.168.2.155/24 brd 192.168.1.255 dev eth0 label eth0:0

and it worked. Since I don't want to do this everytime I reboot what am I
doing wrong and how do I fix it?

TIA.






-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to