[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: whereami: setting ip address?



Hi All !

Is there any documentation about the usage of the (new)
subdirectories in `/etc/network' ?

Thanks in advance,
Jerome

Chris Halls wrote:
Hi Martin,

On Tue, Oct 15, 2002 at 11:18:41AM +0200, martin f krafft wrote:

whereami is called from /etc/network/if-pre-up.d/whereami, and it
works like a charm. but no matter whether it detects the lan with
a static ip, wireless, dhcp, or offline, the interface brought up is
still controlled by /etc/network/interfaces.

do i need to use mapping in this file, should i call ifup with
a mapped name from whereami.conf, should i call ifconfig from there,
or am i doing something completely wrong?


You are right, the integration with ifupdown is not yet perfect, and there
isn't good support for using network mappings; it is on the todo list.  I
use ipconfig calls from within whereami.conf for the network where an ip
address is not assigned automatically:

+home ifconfig eth0 192.168.10.7
+home route del default
+home route add default gw 192.168.10.1

Chris




Reply to: