[ILUG] Ubuntu networking questions

Niall O Broin niall at linux.ie
Thu Feb 23 09:47:28 GMT 2006


On 22 Feb 2006, at 10:07, Colm MacCarthaigh wrote:

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

Thanks - be nice if that were documented in, say, the interfaces man 
page.

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

OK - I could have hazarded a guess at that one, but that will give me 
an ethX:1 interface, no? Whereas what I wanted to do was add another ip 
to ethX.


Niall




More information about the ILUG mailing list