Multiple IPs on an interface, modern thinking

Marius Gedminas marius at pov.lt
Mon Jul 16 19:25:48 UTC 2007


On Mon, Jul 16, 2007 at 03:20:39PM -0400, David Ford wrote:
> Marius Gedminas wrote:
> > iface eth0 inet static
...
> >     up ip address add ... dev eth0
> 
> Splendid.  Thank you.  Perhaps this could be added to the interfaces(5)
> man page.

It's there:

IFACE OPTIONS
       The following "command" options are  available  for  every  family  and
       method.   Each of these options can be given multiple times in a single
       stanza, in which case the commands are executed in the order  in  which
       they  appear  in  the stanza.  (You can ensure a command never fails by
       suffixing "|| true".)
[...]
       up command

       post-up command
              Run  command  after  bringing the interface up.  If this command
              fails then ifup aborts, refraining from marking the interface as
              configured  (even  though it has really been configured), prints
              an error message, and exits with status 0.   This  behavior  may
              change in the future.


Marius Gedminas
-- 
> find /lib/modules/2.4.17-expt/kernel/ -type f|while read i; do insmod $i; done
You're sick.  I like you.
	-- Andrew Morton on lkml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070716/e9af9219/attachment.sig>


More information about the ubuntu-users mailing list