On Thu, Oct 04, 2012 at 10:17:25PM +0200, Rainer Stratmann wrote: > > DHCP Client? or Server? > Client > Isn't it possible to make it easier? > Is it possible to let /etc/network/interfaces untouched?
Why don't you want to touch it? This is the file meant to be touched for network configuration. > > sudo cp -pi /etc/network/interfaces /etc/network/interfaces.dhcp > > sudo cp -pi /etc/network/interfaces /etc/network/interfaces.static1 Well, not the intended way, I'd say. You can do: ifup -i /etc/network/interfaces.dhcp eth0 ifup -i /etc/network/interfaces.static1 eth0 Alternatively you can name the interfaces, something like (typed by heart): iface static inet static address 10.2.16.6 netmask 255.255.255.252 broadcast 10.2.16.7 gateway 10.2.16.5 iface dhcp inet dhcp and then: ifup eth0=static or ifup eth0=dhcp Then again there are packages like 'guessnet' that select an appropriate interface configuration suitable for the network you are in. Regards, Adrian -- LiHAS - Adrian Reyer - Hessenwiesenstraße 10 - D-70565 Stuttgart Fon: +49 (7 11) 78 28 50 90 - Fax: +49 (7 11) 78 28 50 91 Mail: li...@lihas.de - Web: http://lihas.de Linux, Netzwerke, Consulting & Support - USt-ID: DE 227 816 626 Stuttgart _______________________________________________ Voyage-linux mailing list Voyage-linux@list.voyage.hk http://list.voyage.hk/mailman/listinfo/voyage-linux