Re: [expert] Is it meant to be hard or easy to change network settings?

2003-01-23 Thread Mark Alexander
On Wed, Jan 22, 2003 at 02:39:02PM +, David Robertson wrote:
> Every time I move my laptop from one location to the other, I
> have to set up the network connection from scratch.

I had this problem with my laptop (running MDK 8.1, now 9.0).  It gets
used at the following locations:

* at work on LAN
* at home connected to an ISP with a modem (and a private two-host LAN)_
* at home connected to my employer's modem pool
* at a friend's house on a LAN connected to DSL

I eventually solved the problem by having separate versions of the
following files for each location, with a "location" suffix appended
to each filename:

  /etc/postfix/main.cf
  /etc/sysconfig/network
  /etc/sysconfig/network-scripts/ifcfg-eth0
  /etc/resolv.conf

Then I wrote a shell script that, given a location name argument,
creates symbolic links for the above files that point to the
location-specific versions of the files.

The script brings down eth0 before the tweaking the symlinks ("ifdown
eth0") and brings it back up again afterwards ("ifup eth0").  It also
restarts postfix after tweaking main.cf ("postfix reload"); otherwise
postfix will refuse to send mail if it's moved from one network to
another.

MacOS has a feature called "location manager" that does this sort
of thing with a GUI.  I think it would be very useful on Linux, too.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Is it meant to be hard or easy to change network settings?

2003-01-22 Thread H.J.Bathoorn
On Wednesday 22 January 2003 14:39, David Robertson wrote:

>
> I have to admit that I have always had problems with this. At home I
> have adsl and at work a small, fixed-IP mixed lan, with dial-up internet
> connection.Every time I move my laptop from one location to the other, I
> have to set up the network connection from scratch.And even then I have
> great difficulty in dialling out: it seems to connect OK according to
> the log in kppp but nothing happens and my browser, for example, can't
> access its home page.If I reconfigure the modem 2-3 times from scratch,
> eventually it is OK, though the settings are always the same. Setting up
> two profiles makes no difference. So at work I just set up the lan
> manually then use wvdial for dialling out.
>
> David

Well if you dont't want keep on reconfiguring the lan and don't want to keep 
on remembering the (CM)Lines to configure the lans you could just put 'm in a 
text file and run that. that way you can keep different confs and change 'm 
on the fly.
 
It would work thus:
Make a normal textfile and use your favoutrite editor to put the 3 nescessary 
commands in there. Each command it's own line, and call it something like 
worklan.txt  and homelan.txt or whatever you want.

To run it just type (as su/root in this case) on the CML:"source 
/path-to/worklan.txt" without the quotes at work and you're done.
That way you can keep your dial out (needs loopback) configured i.e. don't 
have to reconfigure it all the time.

Good Luck,
HarM




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Is it meant to be hard or easy to change network settings?

2003-01-22 Thread tarvid
The easiest way to handle portable devices is with DHCP and assigned addresses 
by MAC. That way you can provide reverse DNS as appropriate.

Jim Tarvid

On Wednesday 22 January 2003 09:39 am, David Robertson wrote:
> On Tue, 2003-01-21 at 21:44, Damon Lynch wrote:
> > Hi,
> >
> > Are the GUI network tools supposed to take care of all changes needed to
> > connect through KPPP instead of through an already configured ethernet
> > adapter?  That is, change the default gateway, change shorewall
> > configuration, and make sure that DNS is ok?  And do all of this with
> > the ethernet adapter still present?  I recently had to change the way
> > Mandrake connects to the Internet, from cable to regular modem.  I tried
> > the GUI tool without success, but was able to figure it out manually
> > after a little research and changes in /etc/sysconfig/network
> >
> > If the network GUI tools are supposed to do this automatically (with the
> > different profiles), then I suppose there is a bug in them. Or else it
> > is a missing feature?  Can someone replicate this in the 9.1 beta?
> >
> > Thanks,
> > Damon
>
> I have to admit that I have always had problems with this. At home I
> have adsl and at work a small, fixed-IP mixed lan, with dial-up internet
> connection.Every time I move my laptop from one location to the other, I
> have to set up the network connection from scratch.And even then I have
> great difficulty in dialling out: it seems to connect OK according to
> the log in kppp but nothing happens and my browser, for example, can't
> access its home page.If I reconfigure the modem 2-3 times from scratch,
> eventually it is OK, though the settings are always the same. Setting up
> two profiles makes no difference. So at work I just set up the lan
> manually then use wvdial for dialling out.
>
> David




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Is it meant to be hard or easy to change network settings?

2003-01-22 Thread H.J.Bathoorn
On Wednesday 22 January 2003 01:19, Damon Lynch wrote:
> On Wed, 2003-01-22 at 14:20, H.J.Bathoorn wrote:
> > As to the gui tool; guuhhh!! I hate it and never use it nor the
> > profiles. Much too slow to startup and clunky=:o(
>
> I agree that once you have learned and the commands, with appropriate
> options, and put them into a script or memorized them, the command line
> can be extremely efficient.  But for newbies Mandrake's tools are
> essential should handle these complexities :-)  I'm wondering if the
> network configuration tool is designed to handle these scenarios (and
> thus has a bug that may have ramifications for 9.1) or whether it is a
> known missing feature.
>
> Damon

I'm not quite aware what feature (or bug) you're actually referring to.

Like I stated, I don't need to change any settings except the smtp-host 
.which could also be avoided by using sendmail.

Shorewall might be the culprit that's making things hard.
Personally I don't use any firewall utility's for my laptop's on the road.
It's a sure way of getting extremely frustrated and not much use anyway if 
you're inside LAN's (i.e. behind their firewall).

IMHO the greatest risk for a laptop is getting stolen (physically) so I don't 
put critical data on it anyway.

Good Luck,
HarM







Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Is it meant to be hard or easy to change network settings?

2003-01-21 Thread H.J.Bathoorn
On Tuesday 21 January 2003 22:47, Damon Lynch wrote:

>
> Are you using DHCP for both networks, or does one of them have a static
> IP?  On my (old) cable connection, I had a static IP address (with fixed
> gateway and DNS too of course).
>
> Do you use the profiles in the network GUI tool?
>
> thanks,
> Damon

Well the home-lan (and the other one) has a static IP and thus a fixed gateway 
and the kppp dial-in ISP naturally has dhcp.

As to the gui tool; guuhhh!! I hate it and never use it nor the profiles.
Much too slow to startup and clunky=:o(

I just do "ifconfig eth0 xx.xx.xx.xx up" to navigate the lan
and "route add default gw xx.xx.xx.xx" to set the gateway out.
All this is as su/root and without the quotes=:o)
Then lastly: "echo nameserver xx.xx.xx.xx >/etc/resolv.conf" 
(where xx.xx... is the same as the gw) if /etc/resolv.conf isn't appropiately 
set.

All this takes about 5 - 10 seconds, noway you can beat that with the gui via 
MCC.

Good Luck,
HarM




>
> > Good luck,
> > HarM
> >
> >
> >
> > __
> >
> > Want to buy your Pack or Services from MandrakeSoft?
> > Go to http://www.mandrakestore.com




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Is it meant to be hard or easy to change network settings?

2003-01-21 Thread H.J.Bathoorn
On Tuesday 21 January 2003 21:44, Damon Lynch wrote:
> Hi,
>
> Are the GUI network tools supposed to take care of all changes needed to
> connect through KPPP instead of through an already configured ethernet
> adapter?  That is, change the default gateway, change shorewall
> configuration, and make sure that DNS is ok?  And do all of this with
> the ethernet adapter still present?  I recently had to change the way
> Mandrake connects to the Internet, from cable to regular modem.  I tried
> the GUI tool without success, but was able to figure it out manually
> after a little research and changes in /etc/sysconfig/network
>
> If the network GUI tools are supposed to do this automatically (with the
> different profiles), then I suppose there is a bug in them. Or else it
> is a missing feature?  Can someone replicate this in the 9.1 beta?
>
> Thanks,
> Damon

Hmmm, my laptop changes from modem (gsm) to cable (the home-lan) quite a lot 
without any problems what so ever.

Just hitting kppp and connecting to an ISP is enough to get going.
only thing I have to change is the smtp server (in my mailer) so it 
corresponds with the dialled ISP.

Good luck,
HarM



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



[expert] Is it meant to be hard or easy to change network settings?

2003-01-21 Thread Damon Lynch
Hi,

Are the GUI network tools supposed to take care of all changes needed to
connect through KPPP instead of through an already configured ethernet
adapter?  That is, change the default gateway, change shorewall
configuration, and make sure that DNS is ok?  And do all of this with
the ethernet adapter still present?  I recently had to change the way
Mandrake connects to the Internet, from cable to regular modem.  I tried
the GUI tool without success, but was able to figure it out manually
after a little research and changes in /etc/sysconfig/network

If the network GUI tools are supposed to do this automatically (with the
different profiles), then I suppose there is a bug in them. Or else it
is a missing feature?  Can someone replicate this in the 9.1 beta?

Thanks,
Damon
-- 
Damon Lynch <[EMAIL PROTECTED]>



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com