> On Thursday 18 Nov 2004 04:23, [EMAIL PROTECTED] wrote: >> > On Thursday 18 November 2004 03:30 am, [EMAIL PROTECTED] wrote: >> > >> > I have encountered this problem too. The network in my office and home >> is >> > different in respect of network class and thus subnet and default gw. >> So, >> > to >> > make things easier (rather than to change the config all the times) I >> > make 2 >> > config files for each location >> > (/etc/sysconfig/network-scripts/ifcfg-eth0, /etc/resolv.conf, >> > and /etc/sysconfig/network). >> > >> > Then, I make an alias in the bash profile such as: >> > netoffice and nethome >> > >> > Where those scripts consist this: (netoffice) >> > #!/bin/bash >> > cp -v /etc/resolv.conf-office /etc/resolv.conf >> > cp -v /etc/sysconfig/network-office /etc/sysconfig/network >> > cp >> > -v /etc/sysconfig/network-scripts/A-ifcfg-eth0.office >> > /etc/sysconfig/network-scripts/ifcfg-eth0 >> > service network restart >> > >> > I think you can use it modifying a little. >> > HTH, >> >> I like to use netprofiles for things like this. You just set up a >> profile >> for each one. You can then create LILO entries to select the profile on >> boot. You can also change the profile in use using MCC, or running >> set-netprofile as root. I have one profile for wireless, one for >> dialup, >> one for dynamic IP, and one for static IP. It works well for me. >> > Seems to me that this is a common-enough need. TWiki article? > > Anne > I guess this is a hint that I should to learn to write one. It will have to be based on 9.2, but it should work for 10.x as well.
Mikkel
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________
