Am Friday 05 October 2012 16:34:35 schrieben Sie: > On Fri, Oct 05, 2012 at 12:56:06PM +0200, Rainer Stratmann wrote: > > It works. The compuer ist now booting immediately without waiting for an > > ipadress from the dhcp router. > > But how can I now (easily) get a dynamic ipadress if my application wants > > it? > > if you have a line > iface eth0 inet dhcp > in /etc/network/interfaces, you can just issue > ifup eth0 > from command line if you are in a dhcp-mood and > ifdown eth0 > if you no longer want the dhcp. Again, you can mix this with interface > aliases as described earlier.
Ok I tried already with it a little bit. Then I have to put /sbin/ifup and /sbin/ifdown to the sudoers list. And I will create the file (parameter -i) in the /temp directory. That will work without remountrw and remountro. My next question is how and where to disable ifup at boot time? Or maybe I delete the '/etc/network/interfaces' file (or comment everything) to cancel network setting at boot time. The application should do the configuration of the network interface with ifup. > > Regards, > Adrian _______________________________________________ Voyage-linux mailing list [email protected] http://list.voyage.hk/mailman/listinfo/voyage-linux
