news at pointerstop.ca
Wed Oct 5 16:42:27 UTC 2005
Matt Palmer wrote:
> On Wed, Oct 05, 2005 at 11:09:21AM +0800, Senectus . wrote:
>> Would it be difficult to build a script that when your do an
>> ifconfig $ifnum up
>> that it checks to see if the machine is setup to be static or DCHP and
>> if it's set to DHCP then it will automatically to a
>> dhclient $ifnum
>> This would be useful for my laptop and some of the network hopping I
>> do sometimes.
> It's called ifup. Less typing that ifconfig even. Just run
> ifup $ifnum
> And it'll do exactly what you're asking for.
Well, only after you've configured /etc/network/interfaces :-)
The other package mentioned was ifplugd which will ifup the interface when
an ethernet cable is plugged into it.
More information about the ubuntu-users