Re: [newbie] Linux installation Router Advice

2002-12-16 Thread FemmeFatale
At 06:50 PM 12/15/2002 -0500, you wrote:

I never thought to go any further on my original answer, which might have
given you some peace of mind on this. I have had one of those weeks, and my
weekend was spent on my knees tearing my network apart and cleaning. (Yuck!
I hate cleaning!) Maybe this will put it all into perspective for you,
Femme...

If you install a client, adapter and the TCP/IP protocol in any version of
Windows 95 or newer, you technically the DHCP client already installed an
available for use. Many Linux distros make it appear that simple upon
installation. When you see that screen that asks you about how you want to
configure your network card, there's usually a radio button or check box
that you can click on to have the IP address automatically assigned (bootp
or dhcp, depending on the distro and its age). Once you check off that you
want to get your machine's IP automatically from an outside source, the
distro installs the DHCP client from the CD. If you installed with static
addressing in mind, and also asked for the ability to select what packages
you want to install, you could purposely uncheck the anything to do with
DHCP and therefore not have it on your system. I have no idea what Mandrake
would do if you went into MCC and tried to configure the NIC for DHCP
assigned IP addressing if the client wasn't on the system. Would it call for
your CD to install? If it's on your system, it will just make it happen.

The installation of the DHCP client in Linux is almost as automatic now as
it is in Windows. Keep in mind that OEM installations of Windows have all
the installation CABs on the hard drive, so every time you install a new
feature or driver, it looks pretty much like it is doing it all for you. If
you had the disk space and were so inclined, you could copy the contents of
all your distro CDs onto the hard drive and then update the location in
Package Manager. Not exactly as automatic, but a lot closer to being that
way.

Femme, if you installed telling Mandrake Linux that you wanted to see an
assigned IP address to your NIC on boot-up, the DHCP client was installed
then. Needing to statically address, or desiring to, just means something
has been added to the system that needs to see some control, or lack of it.
If it's just one box, statically addressing and doing the HOSTS stuff in no
big deal. If you want some help, write me off-server. Glad to help you
through, if you so desire.

T


Great.  Now I feel like a total idiot.  Heh, thx Slick :)  Your explanation 
makes more sense...and I suppose I'm just a bit frustrated its not working 
the way I expect it to. Sigh.  Sue me.  I've used winsux too long? :P
-
FemmeFatale

Good Decisions You boss Made:
We'll do as you suggest and go with Linux. I've always liked that
character from Peanuts.

- Source: Dilbert



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



Re: [newbie] Linux installation Router Advice

2002-12-16 Thread FemmeFatale
At 06:56 PM 12/15/2002 -0500, you wrote:

Femme,

I took a look at your latest post to Spence just before sending off my
response. I have been away from the list because of work, so my time here
has been spotty, at best.

You are right. If you asked for boot-up assigned IP addressing during the
installation part of the O/S, it 'should' have installed the DHCP client.
However, if you missed installing the client when you first installed MDK
(maybe, because you were using dial-up then), you could need to install it
manually. It would be the same with Windows, except as I mentioned in my
precious post, that Windows would automatically go and grab it from your CAB
files on your drive.

I am sure that you already told us here before, but if I might indulge you
further, could you tell me what the make and model is of your router? Maybe
I can explain what to check for in your router and system set-up to make
sure you covered all the should be done. It isn't difficult, but there are
some things that must be set-up in the device if you want it to DHCP to your
computer.

Thanks!

T


ah Slick its fine... Its working with a static IP... For now, i'll leave it 
alone.  It works  why screw with it?  I'll vent offlist if anything else 
comes to mind hows that? :P
-
FemmeFatale

Good Decisions You boss Made:
We'll do as you suggest and go with Linux. I've always liked that
character from Peanuts.

- Source: Dilbert



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



Re: [newbie] Linux installation Router Advice

2002-12-16 Thread FemmeFatale
At 06:10 PM 12/15/2002 -0600, you wrote:

I should mention that I didn't install dhcpcd as an add-on stand alone 
install.  I'm not sure which option I checked during the installation of 
Mandrake 9.0 that caused it to be installed but it was ready to go as soon 
as the OS installation finished.  I think it probably was the Network 
Computer (client) option but I'm not sure.

Also, I can't pretend to be an expert in this area and I'm happy to be 
corrected if proven wrong but I was under the impression that the name 
Linux primarily applies to the kernel and that pretty much 
__everything_else__ is GNU or some other 3rd party software.  In this 
case, the Mandrake 9.0 distribution packages everything you need in order 
to use dynamic IP's from your DHCP server.

Was it your contention that that functionality should be included in the 
kernel?

Regards,
Carl

My contention was that I was frustrated as hell, have made an ass of myself 
 am hereby shutting up Carl :P

Heh to be more to the point, I guess I was wondering why the DHCP client 
isn't installed when I asked for DHCP services.  I don't know it wasn't 
installed mind you either.  But figuring it wasn't working seemed to point 
to something being uninstalled or amiss at the least.
Anyway I'm leaving it alone... it works, so fook it. :)
-
FemmeFatale

Good Decisions You boss Made:
We'll do as you suggest and go with Linux. I've always liked that
character from Peanuts.

- Source: Dilbert



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



Re: [newbie] Linux installation Router Advice

2002-12-15 Thread Anne Wilson
On Saturday 14 Dec 2002 9:22 pm, FemmeFatale wrote:
 FWIW, I had installed 8.2 when we put a router in for the adsl.  The
 changeover from shared connection to PPPoE was painless, and I have seen
  no problems that relate to the router issue.  When I upgraded to 9.0 no
  problems emerged either.
 
 Maybe I'm missing something, but it seems on my experience to be a
  non-issue.
 
 HTH
 
 Anne

 Thx Anne.  However my experience has been... Odd.

 I went to install linux, everything went fine  I chose DHCP connection
 as I had always in the past.  The Router I use is acting as a DHCP Server
 after all, giving out addy's for our comps here.  Fine... Install went OK,
 it couldn't update packages but I expected that.  Rebooted into linux, it
 was fine.  No internet.  That was my first clue something was amiss.

 Fiddling with things with both the expert  novice controls I found out
 that I had to disable DHCP/Bootp  enable a static IP addy. WTH?  Makes
 no sense, and I had to put in gateway  DNS numbers (the routers IP
 sufficed here).  Yet in Winsucks it works fine as a DHCP Server!?  OK
 something is amiss... but what?

Maybe that's why my setup went so easily?  I do prefer static ips, and set up 
a table on the router.  The one laptop that connects does use dynamic, but 
it's windowsme, so anything goes there.  Perhaps Denis's idea is the answer 
to your problem.  Sorry I can't help more

Anne


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



Re: [newbie] Linux installation Router Advice

2002-12-15 Thread Anne Wilson
On Saturday 14 Dec 2002 11:21 pm, Dennis Myers wrote:


 Ok, sorry, like I said I was behind on the thread. What linux wants is the
 static IP of your computer the gateway address whether it is your gateway
 or the IPs gateway and the IPs DNS addresses.  So if you set up your
 internal computer with a 192.168.0.x type address then you should point it
 at the IP address such as 68.96.13.xxx and give it the IPs primary and
 secondary DNS numbers. Not real clear but the best explanation I can give.
 If you have that kind of configuration then I am at a loss as to the
 problem.

Perhaps it's worth giving us your configuration for the dhcp connection?  We 
may be able to track the problem down from that.

Anne


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



Re: [newbie] Linux installation Router Advice

2002-12-15 Thread Dennis Myers
On Sunday 15 December 2002 03:50 am, Anne Wilson wrote:
 On Saturday 14 Dec 2002 11:21 pm, Dennis Myers wrote:
  Ok, sorry, like I said I was behind on the thread. What linux wants is
  the static IP of your computer the gateway address whether it is your
  gateway or the IPs gateway and the IPs DNS addresses.  So if you set up
  your internal computer with a 192.168.0.x type address then you should
  point it at the IP address such as 68.96.13.xxx and give it the IPs
  primary and secondary DNS numbers. Not real clear but the best
  explanation I can give. If you have that kind of configuration then I am
  at a loss as to the problem.

 Perhaps it's worth giving us your configuration for the dhcp connection? 
 We may be able to track the problem down from that.

 Anne
Here is etc/resolve.conf

-- nameserver 68.13.16.30
nameserver 68.9.16.30
search om.cox.net
 Those are the DNS IPs from my service provider  Cox  Cable as you can see. 
My router/firewall has an internal LAN address of 192.168.0.6 but an external 
address given as static by the Service Provider of 68.96.17.xxx. So I set the 
gateway on my workstation as 192.168.0.6 and set for dhcp .  The 
firewall/router then provides the passthrough the internet and the DHCP 
addresses. I do this with the MCC and don't know which config file the info 
might be in to show in an orderly manner.  Somebody give me a hint, cause I 
am a gui kind of guy and the 10 zillion files are not real familiar to me. 
HTH
Dennis M.  linux user # 180842


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



Re: [newbie] Linux installation Router Advice

2002-12-15 Thread greg
You know, I recently had this problem on my LM9 installation, and never
managed to get my router working with it.  You probably will, but I
could not be buggered trying any more.  It beat me like a dog!  But this
is something I feel Mandrake need to really address, as my Red Hat
system configured automatically, be it with a dhcp setting on my router,
or using a static address.  Never phased it one bit.  I have never
needed to touch a setting in RH for the internet, and I think this is
were mandrake need to be with their install as well.  I am waiting and
hoping their next release has this all sorted, as I notice a number of
people having real difficulty with it, not just me.  

Greg
On Mon, 2002-12-16 at 03:04, Dennis Myers wrote:
 On Sunday 15 December 2002 03:50 am, Anne Wilson wrote:
  On Saturday 14 Dec 2002 11:21 pm, Dennis Myers wrote:
   Ok, sorry, like I said I was behind on the thread. What linux wants is
   the static IP of your computer the gateway address whether it is your
   gateway or the IPs gateway and the IPs DNS addresses.  So if you set up
   your internal computer with a 192.168.0.x type address then you should
   point it at the IP address such as 68.96.13.xxx and give it the IPs
   primary and secondary DNS numbers. Not real clear but the best
   explanation I can give. If you have that kind of configuration then I am
   at a loss as to the problem.
 
  Perhaps it's worth giving us your configuration for the dhcp connection? 
  We may be able to track the problem down from that.
 
  Anne
 Here is etc/resolve.conf
 
 -- nameserver 68.13.16.30
 nameserver 68.9.16.30
 search om.cox.net
  Those are the DNS IPs from my service provider  Cox  Cable as you can see. 
 My router/firewall has an internal LAN address of 192.168.0.6 but an external 
 address given as static by the Service Provider of 68.96.17.xxx. So I set the 
 gateway on my workstation as 192.168.0.6 and set for dhcp .  The 
 firewall/router then provides the passthrough the internet and the DHCP 
 addresses. I do this with the MCC and don't know which config file the info 
 might be in to show in an orderly manner.  Somebody give me a hint, cause I 
 am a gui kind of guy and the 10 zillion files are not real familiar to me. 
 HTH
 Dennis M.  linux user # 180842
 
 
 

 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: [newbie] Linux installation Router Advice

2002-12-15 Thread FemmeFatale
At 11:12 PM 12/14/2002 -0600, you wrote:

I know I'm coming into this thread a little late but I thought I'd throw 
my $.02 in anyway.  I'm running 9.0 behind a Linksys router that's 
operating as a DHCP server and I'm not having any problems accessing the 
internet at all.  But then, I also have  dhcpcd version 1.3.22pl1-3mdk 
installed.  The description from the rpm is as follows:

dhcpcd is an implementation of the DHCP client specified in 
draft-ietf-dhc-dhcp-09 (when -r option is not speci- fied) and RFC1541 
(when -r option is specified). It gets the host information (IP address, 
netmask, broad- cast address, etc.) from a DHCP server and configures the 
network interface of the machine on which it is running. It also tries to 
renew the lease time according to RFC1541 or draft-ietf-dhc-dhcp-09. 

From that description it seems clear that I need a DHCP client if I'm 
expecting to receive and use a dynamic IP from a DHCP server. Personally, 
I think you probably would too but it's up to you.  ;-)

Regards,
Carl

This is the part where I wonder why the hell I Need a DHCP Client in the 
first place!??? Linux was I thought meant to be a Network aware OS from the 
ground up?  so.. wtf?  Sigh ... sorry but the cynicism is slipping 
out.  This is still one aspect of Linux I'm not impressed with.  It was 
made to be network aware/workable from the get go, yet we still need to 
install 3rd party software to get basic functionality?

-
FemmeFatale

Good Decisions You boss Made:
We'll do as you suggest and go with Linux. I've always liked that
character from Peanuts.

- Source: Dilbert



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



Re: [newbie] Linux installation Router Advice

2002-12-15 Thread Spencer Anderson
On Sun, 15 Dec 2002 16:14:09 -0700
FemmeFatale [EMAIL PROTECTED] wrote:

 At 11:12 PM 12/14/2002 -0600, you wrote:
 I know I'm coming into this thread a little late but I thought I'd throw 
 my $.02 in anyway.  I'm running 9.0 behind a Linksys router that's 
 operating as a DHCP server and I'm not having any problems accessing the 
 internet at all.  But then, I also have  dhcpcd version 1.3.22pl1-3mdk 
 installed.  The description from the rpm is as follows:
 
 dhcpcd is an implementation of the DHCP client specified in 
 draft-ietf-dhc-dhcp-09 (when -r option is not speci- fied) and RFC1541 
 (when -r option is specified). It gets the host information (IP address, 
 netmask, broad- cast address, etc.) from a DHCP server and configures the 
 network interface of the machine on which it is running. It also tries to 
 renew the lease time according to RFC1541 or draft-ietf-dhc-dhcp-09. 
 
  From that description it seems clear that I need a DHCP client if I'm 
  expecting to receive and use a dynamic IP from a DHCP server. Personally, 
  I think you probably would too but it's up to you.  ;-)
 
 Regards,
 Carl
 
 This is the part where I wonder why the hell I Need a DHCP Client in the 
 first place!??? Linux was I thought meant to be a Network aware OS from the 
 ground up?  so.. wtf?  Sigh ... sorry but the cynicism is slipping 
 out.  This is still one aspect of Linux I'm not impressed with.  It was 
 made to be network aware/workable from the get go, yet we still need to 
 install 3rd party software to get basic functionality?
 
Where you have a limited number of network aware devices ( such as other computers, 
printers, etc ), it is not necessary to have DHCP as a server OR as a client. All 
devices can be configured with static internal IP addresses such as 192.168.x.x. Where 
DHCP really shines is when you have laptops or other devices coming and going on your 
home network. In the case of laptops, it allows them to get a local IP for whatever 
network they are plugged into. There is no need for any third party software needed 
when configuring a ML router/firewall.

Hope that helps;-)

Spence 


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



RE: [newbie] Linux installation Router Advice (a freebie script I wrote for connection monitoring.)

2002-12-14 Thread Franki
I had a problem where my pppoe connection was lost two or three times a
day..

Since I use it to host works stuff. I needed it to be able to reconnect
itself..

so I wrote this script.. it needs a few perl modules installed.. but it
works great..

Its rough, but it works..

It goes and checks if it can access both google and yahoo and if it can't
get one.. (it doesn't need to be able to get both.)
it will restart the connection and email you to tell you it did..

copy everything from the start to the end lines.. and put it in a file.. put
it in /usr/bin or similiar.. and make it executable.. then put an entry in
contab like this:

-0,10,20,30,40,50 * * * *   /usr/sbin/monitor_connection /dev/null


That will run the script every ten minutes., and fix the connection if it
goes down..
I have another version that monitors a dialup connection on another box..


###  START OF SCRIPT   
#!/usr/bin/perl

use LWP::UserAgent;
use HTTP::Request::Common qw(GET);
use MIME::Lite;

my $url = 'http://www.yahoo.com';
my $url2 = 'http://www.google.com';

my @email_address = ('[EMAIL PROTECTED]');

my $SMTP_server = '127.0.0.1';
my $response = LWP::UserAgent-new(env_proxy = 1)-simple_request(GET
$url);

unless ($response-is_success)
   sleep 15;
   my $response2 = LWP::UserAgent-new(env_proxy = 1)-simple_request(GET
$url2);
  Bunless ($response2-is_success)
  {
   our $date = get_date;
   my $message_txt = ADSL connection was down and was restarted at
$date;

system('/usr/sbin/adsl-stop');
sleep 5;
system('/usr/bin/killall -9 adsl-connect');
system('/usr/bin/killall -9 pppd');
sleep 5;
system('/usr/sbin/adsl-start');
foreach my $mailer (@email_address)
{
mail_data('[EMAIL PROTECTED]',$mailer, ADSL WARNING!
$date, $message
}
  }# end of unless2
} # end of unless1

#email and date subs follow.
sub mail_data
{
 #usage: mail_data(mail from address,Mail to address,
subject, message_txt);
my $from_address = shift;
my $to_address = shift;
my $subject = shift;
my $message_txt = shift;

 # Start the email body details.
 my $email_msg = MIME::Lite-new(
 From= $from_address,
 To  = $to_address,
 #Cc = '[EMAIL PROTECTED], [EMAIL PROTECTED]',
 Subject = $subject,
 Type='TEXT',
 Data= $message_txt
 );
  $email_msg-send('smtp', $SMTP_server);
} # end of mail_data;
sub get_date
{
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst,$date);
my @days = ('Sunday','Monday','Tuesday','Wednesday','Thursday',
'Friday','Saturday');
my @months =
('January','February','March','April','May','June','July','August','Septembe
r','Oc
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
if ($hour  10)
{
$hour = 0$hour;
}
if ($min  10)
{
$min = 0$min;
}
if ($sec  10)
{
$sec = 0$sec;
}
$year += 1900;
$date = $days[$wday], $months[$mon] $mday, $year at $hour\:$min\:$sec;
return $date;
}
exit(0);
 END OF SCRIPT ###


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Anne Wilson
Sent: Saturday, 14 December 2002 9:35 PM
To: [EMAIL PROTECTED]
Subject: Re: [newbie] Linux installation  Router Advice


On Friday 13 Dec 2002 10:18 pm, FemmeFatale wrote:
 All I'm asking is there any special things I need to know when installing
 linux behind a router?

 I bought one recently, works great with the windows installs... Took some
 fiddling but its all good now.

 So any special caveats, instructions, advice? warnings?

 Thx
 -
 FemmeFatale

 Good Decisions You boss Made:
 We'll do as you suggest and go with Linux. I've always liked that
 character from Peanuts.

 - Source: Dilbert

FWIW, I had installed 8.2 when we put a router in for the adsl.  The
changeover from shared connection to PPPoE was painless, and I have seen no
problems that relate to the router issue.  When I upgraded to 9.0 no
problems
emerged either.

Maybe I'm missing something, but it seems on my experience to be a
non-issue.

HTH

Anne




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



Re: [newbie] Linux installation Router Advice

2002-12-14 Thread FemmeFatale



FWIW, I had installed 8.2 when we put a router in for the adsl.  The
changeover from shared connection to PPPoE was painless, and I have seen no
problems that relate to the router issue.  When I upgraded to 9.0 no problems
emerged either.

Maybe I'm missing something, but it seems on my experience to be a non-issue.

HTH

Anne


Thx Anne.  However my experience has been... Odd.

I went to install linux, everything went fine  I chose DHCP connection 
as I had always in the past.  The Router I use is acting as a DHCP Server 
after all, giving out addy's for our comps here.  Fine... Install went OK, 
it couldn't update packages but I expected that.  Rebooted into linux, it 
was fine.  No internet.  That was my first clue something was amiss.

Fiddling with things with both the expert  novice controls I found out 
that I had to disable DHCP/Bootp  enable a static IP addy. WTH?  Makes 
no sense, and I had to put in gateway  DNS numbers (the routers IP 
sufficed here).  Yet in Winsucks it works fine as a DHCP Server!?  OK 
something is amiss... but what?

-
FemmeFatale

Good Decisions You boss Made:
We'll do as you suggest and go with Linux. I've always liked that
character from Peanuts.

- Source: Dilbert



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



RE: [newbie] Linux installation Router Advice (a freebie script I wrote for connection monitoring.)

2002-12-14 Thread FemmeFatale
At 02:39 AM 12/15/2002 +0800, you wrote:

I had a problem where my pppoe connection was lost two or three times a
day..

Since I use it to host works stuff. I needed it to be able to reconnect
itself..

so I wrote this script.. it needs a few perl modules installed.. but it
works great..

Its rough, but it works..

It goes and checks if it can access both google and yahoo and if it can't
get one.. (it doesn't need to be able to get both.)
it will restart the connection and email you to tell you it did..

copy everything from the start to the end lines.. and put it in a file.. put
it in /usr/bin or similiar.. and make it executable.. then put an entry in
contab like this:

-0,10,20,30,40,50 * * * *   /usr/sbin/monitor_connection /dev/null


That will run the script every ten minutes., and fix the connection if it
goes down..
I have another version that monitors a dialup connection on another box..


snip out (ir)relevant scripting :)

Thx Frank.  If I need it I'll use it. :)  You don't say which Perl libs 
though?  Care to enlighten us?

-
FemmeFatale

Good Decisions You boss Made:
We'll do as you suggest and go with Linux. I've always liked that
character from Peanuts.

- Source: Dilbert



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



Re: [newbie] Linux installation Router Advice

2002-12-14 Thread Dennis Myers
On Saturday 14 December 2002 03:22 pm, FemmeFatale wrote:
 FWIW, I had installed 8.2 when we put a router in for the adsl.  The
 changeover from shared connection to PPPoE was painless, and I have seen
  no problems that relate to the router issue.  When I upgraded to 9.0 no
  problems emerged either.
 
 Maybe I'm missing something, but it seems on my experience to be a
  non-issue.
 
 HTH
 
 Anne

 Thx Anne.  However my experience has been... Odd.

 I went to install linux, everything went fine  I chose DHCP connection
 as I had always in the past.  The Router I use is acting as a DHCP Server
 after all, giving out addy's for our comps here.  Fine... Install went OK,
 it couldn't update packages but I expected that.  Rebooted into linux, it
 was fine.  No internet.  That was my first clue something was amiss.

 Fiddling with things with both the expert  novice controls I found out
 that I had to disable DHCP/Bootp  enable a static IP addy. WTH?  Makes
 no sense, and I had to put in gateway  DNS numbers (the routers IP
 sufficed here).  Yet in Winsucks it works fine as a DHCP Server!?  OK
 something is amiss... but what?

 -
 FemmeFatale

 Good Decisions You boss Made:
 We'll do as you suggest and go with Linux. I've always liked that
 character from Peanuts.

 - Source: Dilbert

Sorry, I have lost track of this thread, but do you have both the DHCP server 
and client installed on your machine? Not sure but think you need both. (Oh, 
I get so confused, he,he.) Mostly it is somehymers. HTH
-- 
Dennis M.  linux user # 180842


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



RE: [newbie] Linux installation Router Advice (a freebie script I wrote for connection monitoring.)

2002-12-14 Thread Franki
sure,

This written at the top of the script.. sorry, should have been more
precise...

use LWP::UserAgent;
use HTTP::Request::Common qw(GET);
use MIME::Lite;


so just go to seach.cpan.org
and use the search facility to find:

LWP::UserAgent
MIME::Lite
HTTP::Request

the download links will be on the search results..

Though there are probably mandrake RPM's for this on the disks or
contribs...

MIME::Lite is for sending the email and
LWP::UserAgent and HTTP::Request are for getting the google/yahoo request...

Thats all you need..

I use variations of this script for monitoring our work servers and telling
me when they are down as well.
very handy..

rgds

Frank


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of FemmeFatale
Sent: Sunday, 15 December 2002 5:31 AM
To: [EMAIL PROTECTED]
Subject: RE: [newbie] Linux installation  Router Advice (a freebie
script I wrote for connection monitoring.)


At 02:39 AM 12/15/2002 +0800, you wrote:
I had a problem where my pppoe connection was lost two or three times a
day..

Since I use it to host works stuff. I needed it to be able to reconnect
itself..

so I wrote this script.. it needs a few perl modules installed.. but it
works great..

Its rough, but it works..

It goes and checks if it can access both google and yahoo and if it can't
get one.. (it doesn't need to be able to get both.)
it will restart the connection and email you to tell you it did..

copy everything from the start to the end lines.. and put it in a file..
put
it in /usr/bin or similiar.. and make it executable.. then put an entry in
contab like this:

-0,10,20,30,40,50 * * * *   /usr/sbin/monitor_connection /dev/null


That will run the script every ten minutes., and fix the connection if it
goes down..
I have another version that monitors a dialup connection on another box..

snip out (ir)relevant scripting :)

Thx Frank.  If I need it I'll use it. :)  You don't say which Perl libs
though?  Care to enlighten us?

-
FemmeFatale

Good Decisions You boss Made:
We'll do as you suggest and go with Linux. I've always liked that
character from Peanuts.

- Source: Dilbert






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



Re: [newbie] Linux installation Router Advice

2002-12-14 Thread FemmeFatale
At 03:33 PM 12/14/2002 -0600, you wrote:



 Thx Anne.  However my experience has been... Odd.

 I went to install linux, everything went fine  I chose DHCP connection
 as I had always in the past.  The Router I use is acting as a DHCP Server
 after all, giving out addy's for our comps here.  Fine... Install went OK,
 it couldn't update packages but I expected that.  Rebooted into linux, it
 was fine.  No internet.  That was my first clue something was amiss.

 Fiddling with things with both the expert  novice controls I found out
 that I had to disable DHCP/Bootp  enable a static IP addy. WTH?  Makes
 no sense, and I had to put in gateway  DNS numbers (the routers IP
 sufficed here).  Yet in Winsucks it works fine as a DHCP Server!?  OK
 something is amiss... but what?

 -
 FemmeFatale

 Good Decisions You boss Made:
 We'll do as you suggest and go with Linux. I've always liked that
 character from Peanuts.

 - Source: Dilbert

Sorry, I have lost track of this thread, but do you have both the DHCP server
and client installed on your machine? Not sure but think you need both. (Oh,
I get so confused, he,he.) Mostly it is somehymers. HTH
--
Dennis M.  linux user # 180842


Sweety:

I've never needed a DHCP CLient before... why the hell would I need one now?

The router itself acts as the DHCP server so it serves up address like: 
192.168.1.100 or ... 1.101, etc...

What I don't understand is why in winsux, it operates correctly as that 
DHCP server, yet Linux demands a static address from me, gateway  DNS 
numbers...?


-
FemmeFatale

Good Decisions You boss Made:
We'll do as you suggest and go with Linux. I've always liked that
character from Peanuts.

- Source: Dilbert



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



Re: [newbie] Linux installation Router Advice

2002-12-14 Thread Technoslick
Femme,

For the longest time, I was letting my Lynksys router/firewall/gateway do
the DHCP for my mixed O/S network. During that time, my NT 4.0 Server was
acting as a Primary Domain Control (PDC) and a secured resource center file
sharing between my business and family needs. I had no problems with this
set-up, letting my MDK 8.2, 9.0 and RH systems acting as DHCP clients. All
that was necessary was to make sure that my router/firewall.gateway was set
up correctly to assign addresses as I wanted them to be.

Once I set-up the RH 8.0 file sharing server (I had already removed the NT
server from the network long before), I had some issues with this set-up
using Samba. Instead of playing to much with this, I just went to static
addressing all around, making sure that my HOSTS and LMHOSTS files were
proper and synchronized. It's been this way since and I have had no problems
or complaints to share. With my own network, being down is really difficult
for me to accept. Sometimes, it causes me to take the shortest means to my
goal and I lose the chance to learn how to get what I want done my way.
Sorry, I can't give you any ideas at to why the static addressing was the
way that worked for me.

However, you can mix and match. Keep the router DHCP server, Windows boxes
as clients and make the Linux boxes static. You will need to set-up
HOSTS/LMHOSTS files on every machine for the static addressed machines to be
seeable by the DHCP clients by their netbios name, and you will need to
make sure you set-up the router as your gateway for the Linux machines and
your ISP DNS server(s) for DNS. HOSTS and LMHOSTS files only need to be
created once and then copied to all machines as needed, so this isn't as
messy as it sounds for a small network.

Does this help any?

T



- Original Message -
From: FemmeFatale [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, December 14, 2002 4:22 PM
Subject: Re: [newbie] Linux installation  Router Advice




FWIW, I had installed 8.2 when we put a router in for the adsl.  The
changeover from shared connection to PPPoE was painless, and I have seen no
problems that relate to the router issue.  When I upgraded to 9.0 no
problems
emerged either.

Maybe I'm missing something, but it seems on my experience to be a
non-issue.

HTH

Anne

Thx Anne.  However my experience has been... Odd.

I went to install linux, everything went fine  I chose DHCP connection
as I had always in the past.  The Router I use is acting as a DHCP Server
after all, giving out addy's for our comps here.  Fine... Install went OK,
it couldn't update packages but I expected that.  Rebooted into linux, it
was fine.  No internet.  That was my first clue something was amiss.

Fiddling with things with both the expert  novice controls I found out
that I had to disable DHCP/Bootp  enable a static IP addy. WTH?  Makes
no sense, and I had to put in gateway  DNS numbers (the routers IP
sufficed here).  Yet in Winsucks it works fine as a DHCP Server!?  OK
something is amiss... but what?

-
FemmeFatale

Good Decisions You boss Made:
We'll do as you suggest and go with Linux. I've always liked that
character from Peanuts.

- Source: Dilbert










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: [newbie] Linux installation Router Advice

2002-12-14 Thread FemmeFatale
At 05:46 PM 12/14/2002 -0500, you wrote:

Femme,

For the longest time, I was letting my Lynksys router/firewall/gateway do
the DHCP for my mixed O/S network. During that time, my NT 4.0 Server was
acting as a Primary Domain Control (PDC) and a secured resource center file
sharing between my business and family needs. I had no problems with this
set-up, letting my MDK 8.2, 9.0 and RH systems acting as DHCP clients. All
that was necessary was to make sure that my router/firewall.gateway was set
up correctly to assign addresses as I wanted them to be.

Once I set-up the RH 8.0 file sharing server (I had already removed the NT
server from the network long before), I had some issues with this set-up
using Samba. Instead of playing to much with this, I just went to static
addressing all around, making sure that my HOSTS and LMHOSTS files were
proper and synchronized. It's been this way since and I have had no problems
or complaints to share. With my own network, being down is really difficult
for me to accept. Sometimes, it causes me to take the shortest means to my
goal and I lose the chance to learn how to get what I want done my way.
Sorry, I can't give you any ideas at to why the static addressing was the
way that worked for me.

However, you can mix and match. Keep the router DHCP server, Windows boxes
as clients and make the Linux boxes static. You will need to set-up
HOSTS/LMHOSTS files on every machine for the static addressed machines to be
seeable by the DHCP clients by their netbios name, and you will need to
make sure you set-up the router as your gateway for the Linux machines and
your ISP DNS server(s) for DNS. HOSTS and LMHOSTS files only need to be
created once and then copied to all machines as needed, so this isn't as
messy as it sounds for a small network.

Does this help any?

T



Well honestly theres just me using linux.  Its a dualboot machine.  Yes I 
see what you're getting at Slick, and I'm not sure it would be overkill to 
follow your advice.

Using a static address for now works so I'll see what happens  If/when I 
find another answer as to why this is the way it is, I shall post it.  Ty 
for the reply, quite an interesting way to do things.

-
FemmeFatale

Good Decisions You boss Made:
We'll do as you suggest and go with Linux. I've always liked that
character from Peanuts.

- Source: Dilbert



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



Re: [newbie] Linux installation Router Advice

2002-12-14 Thread Dennis Myers
On Saturday 14 December 2002 04:40 pm, FemmeFatale wrote:
 At 03:33 PM 12/14/2002 -0600, you wrote:
   Thx Anne.  However my experience has been... Odd.
  
   I went to install linux, everything went fine  I chose DHCP
   connection as I had always in the past.  The Router I use is acting as
   a DHCP Server after all, giving out addy's for our comps here.  Fine...
   Install went OK, it couldn't update packages but I expected that. 
   Rebooted into linux, it was fine.  No internet.  That was my first clue
   something was amiss.
  
   Fiddling with things with both the expert  novice controls I found out
   that I had to disable DHCP/Bootp  enable a static IP addy. WTH? 
   Makes no sense, and I had to put in gateway  DNS numbers (the routers
   IP sufficed here).  Yet in Winsucks it works fine as a DHCP Server!? 
   OK something is amiss... but what?
  
   -
   FemmeFatale
  
   Good Decisions You boss Made:
   We'll do as you suggest and go with Linux. I've always liked that
   character from Peanuts.
  
   - Source: Dilbert
 
 Sorry, I have lost track of this thread, but do you have both the DHCP
  server and client installed on your machine? Not sure but think you need
  both. (Oh, I get so confused, he,he.) Mostly it is somehymers. HTH
 --
 Dennis M.  linux user # 180842

 Sweety:

 I've never needed a DHCP CLient before... why the hell would I need one
 now?

 The router itself acts as the DHCP server so it serves up address like:
 192.168.1.100 or ... 1.101, etc...

 What I don't understand is why in winsux, it operates correctly as that
 DHCP server, yet Linux demands a static address from me, gateway  DNS
 numbers...?


 -
 FemmeFatale

 Good Decisions You boss Made:
 We'll do as you suggest and go with Linux. I've always liked that
 character from Peanuts.

 - Source: Dilbert
Ok, sorry, like I said I was behind on the thread. What linux wants is the 
static IP of your computer the gateway address whether it is your gateway or 
the IPs gateway and the IPs DNS addresses.  So if you set up your internal 
computer with a 192.168.0.x type address then you should point it at the IP 
address such as 68.96.13.xxx and give it the IPs primary and secondary DNS 
numbers. Not real clear but the best explanation I can give. If you have that 
kind of configuration then I am at a loss as to the problem.
-- 
Dennis M.  linux user # 180842


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



Re: [newbie] Linux installation Router Advice

2002-12-14 Thread Carl J. Bauman
I know I'm coming into this thread a little late but I thought I'd throw 
my $.02 in anyway.  I'm running 9.0 behind a Linksys router that's 
operating as a DHCP server and I'm not having any problems accessing the 
internet at all.  But then, I also have  dhcpcd version 1.3.22pl1-3mdk 
installed.  The description from the rpm is as follows:

dhcpcd is an implementation of the DHCP client specified in 
draft-ietf-dhc-dhcp-09 (when -r option is not speci- fied) and RFC1541 
(when -r option is specified). It gets the host information (IP address, 
netmask, broad- cast address, etc.) from a DHCP server and configures 
the network interface of the machine on which it is running. It also 
tries to renew the lease time according to RFC1541 or 
draft-ietf-dhc-dhcp-09. 

From that description it seems clear that I need a DHCP client if I'm 
expecting to receive and use a dynamic IP from a DHCP server. 
Personally, I think you probably would too but it's up to you.  ;-)

Regards,
Carl

FemmeFatale wrote:


I've never needed a DHCP CLient before... why the hell would I need 
one now?

The router itself acts as the DHCP server so it serves up address 
like: 192.168.1.100 or ... 1.101, etc...





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



[newbie] Linux installation Router Advice

2002-12-13 Thread FemmeFatale



All I'm asking is there any special things I need to know when installing 
linux behind a router?

I bought one recently, works great with the windows installs... Took some 
fiddling but its all good now.

So any special caveats, instructions, advice? warnings?

Thx
-
FemmeFatale

Good Decisions You boss Made:
We'll do as you suggest and go with Linux. I've always liked that
character from Peanuts.

- Source: Dilbert



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



Re: [newbie] Linux installation Router Advice

2002-12-13 Thread Rog
On Fri, 13 Dec 2002 15:18:11 -0700, you wrote:




All I'm asking is there any special things I need to know when installing 
linux behind a router?

I bought one recently, works great with the windows installs... Took some 
fiddling but its all good now.

So any special caveats, instructions, advice? warnings?

Mandrake-linux, for me, is actually easier to get going when behind a
router. I don't think you should have any problems.



Thx
-
FemmeFatale

Good Decisions You boss Made:
We'll do as you suggest and go with Linux. I've always liked that
character from Peanuts.

- Source: Dilbert




peace,

Rog

The very purpose of existence is to reconcile the glowing opinion 
we have of ourselves with the appalling things 
that other people think about us. 


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



Re: [newbie] Linux installation Router Advice

2002-12-13 Thread Stephen Kuhn
On Sat, 2002-12-14 at 09:18, FemmeFatale wrote:
 
 All I'm asking is there any special things I need to know when installing 
 linux behind a router?
 
 I bought one recently, works great with the windows installs... Took some 
 fiddling but its all good now.
 
 So any special caveats, instructions, advice? warnings?
 
 Thx
 -
 FemmeFatale

Shouldn't be...unless you're accessing your linbox from the outside
world...

-- 
Sat Dec 14 10:15:01 EST 2002
 10:15am  up 3 days,  2:37,  5 users,  load average: 1.79, 0.67, 0.39

   .o0 linux user:267497 0o.

|____  | kühn media australia
|   /  \ /| |'-.   | http://kma.0catch.com
|  .\__/ || |   |  | 
|   _ /  `._ \|_|_.-'  | stephen kühn
|  | /  \__.`=._) (_   |  email: [EMAIL PROTECTED]
|  |/ ._/  || |  email: [EMAIL PROTECTED]
|  |'.  `\ | | |icq: 5483808
|  ;/ / | | |
|  smk  ) /_/| |.---.| | mobile: 0410-728-389
|  '  `-`'   | Berkeley, New South Wales, AU

Coralament*Best Grötens*Liebe Grüße*Best Regards*Elkorajn Salutojn

What happened last night can happen again.


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