[ILUG] Ubuntu networking questions

Colm MacCarthaigh colm at stdlib.net
Wed Feb 22 10:07:51 GMT 2006


On Wed, Feb 22, 2006 at 02:05:10AM +0000, Niall O Broin wrote:
> I'm curious as to when exactly the up and down commands are run. Surely 
> they must be synonymous with either pre-up/post-up   and  
> pre-down/post-down ?

up is synonymous with post-up and down is synonymous with pre-down :)

> And on that note, is there a kosher way of adding a secondary IP 
> address to an interface via the interfaces file, or is something like
> 
> post-up ip addr add a.b.c.d/n dev ethX
> 
> the only way to do it?

Use subinterfaces, ie:

iface ethX:1
	address a.b.c.d
	netmask 255.255.255.255

-- 
Colm MacCárthaigh                        Public Key: colm+pgp at stdlib.net



More information about the ILUG mailing list