Re: [gentoo-user] dhcpcd is too noisy in syslog

2007-04-24 Thread William Kenworthy
On Mon, 2007-04-23 at 08:03 -0500, Fabio A Correa wrote:
> You can also try to add the following to your /etc/conf.d/net:
> 
> dhcpcd_eth0=( "-l 3600" )
> 
didnt work :(

Its an old dlink DSL-300 that has been running for years without
problems.  I suspect its always been giving out 60 second leases
(possibly via the ISP) - that in itself is not a problem.  But I would
certainly like to cut down on the logging.  Filtering without removing
wanted messages (like changes in IP - the ISP uses dynamic IP - prob why
its 60 second leases I guess)

There is still the question - why is the new dhcpcd so verbose.  What is
a better alternative (dhcpcd is a bit of a problem at times anyway -
refusing to work nicely with the DSL-300.  When this happens, a manual
configuration will work every time)

BillK

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] dhcpcd is too noisy in syslog

2007-04-23 Thread Fabio A Correa
You can also try to add the following to your /etc/conf.d/net:

dhcpcd_eth0=( "-l 3600" )

together with any previous flags you are using. With this, dhcpcd will 
recommend a lease time of
3600 seconds to the server.

-- 
Fabio A. Correa D.

Physics Dept, Universidad Nacional, Bogota, Colombia
[EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED]
My webpage and OpenPGP key at http://facorread.150m.com
[EMAIL PROTECTED] is not working anymore!!!
-- 
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] dhcpcd is too noisy in syslog

2007-04-22 Thread Iain Buchanan
On Sun, 2007-04-22 at 11:27 -0700, Bob Young wrote:
> 
> -Original Message-
> From: William Kenworthy [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, April 22, 2007 5:42 AM
> To: gentoo-user List
> Subject: [gentoo-user] dhcpcd is too noisy in syslog
> 
> Since a recent update to dhpcd, my logs are filling up with these
> messages (every 30 seconds).  The previous version wasnt so verbose, but
> I cant see where to modify the behaviour of the newer version - there
> seems like there is no quiet flag.  Any suggestions?
> 
> Apr 22 20:34:22 moriah dhcpcd[19738]: eth0: renewing lease of
> 203.59.216.218 
> Apr 22 20:34:22 moriah dhcpcd[19738]: eth0: leased xxx.xxx.xxx.xxx for
> 60 seconds 
> Apr 22 20:34:22 moriah dhcpcd[19738]: eth0: adding IP address
> xxx.xxx.xxx.xxx/24 
> Apr 22 20:34:22 moriah dhcpcd[19738]: eth0: adding default route via
> xxx.xxx.xxx.xxx metric 0
> 
> 
> 
> Maybe there is something I'm missing but the first line says that dhcpcd is
> *renewing* the lease on eth0.

that's how I read it...

>  If that's in fact what is happening every
> 30-60 seconds, then there is something wrong with what dhcpcd
> received/interpreted the lease duration to be.

or perhaps your dhcp server is giving out 60s leases?  I had a router do
that once.  I got onto the manuf. who released a firmware update to fix
it.

>  The second line seems to
> confirm this in that dhcpcd believes it leased the received address for 60
> seconds. It looks like either the dhcp server's lease duration is badly
> misconfigured, or dhcpcd is not interpreting the data it receives from the
> dhcp server correctly wrt lease duration.

I would guess that your dhcpcd is doing the right thing.  Who owns the
dhcp server?  Is it yours?  How is it set up?  Is it a PC or off the
shelf box?  I would be looking there for the answer.

HTH,
-- 
Iain Buchanan 

: The hierarchy is excessive.

So is the anarchy.  :-)
 -- Larry Wall in <[EMAIL PROTECTED]>

-- 
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] dhcpcd is too noisy in syslog

2007-04-22 Thread Bob Young


-Original Message-
From: William Kenworthy [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 22, 2007 5:42 AM
To: gentoo-user List
Subject: [gentoo-user] dhcpcd is too noisy in syslog

Since a recent update to dhpcd, my logs are filling up with these
messages (every 30 seconds).  The previous version wasnt so verbose, but
I cant see where to modify the behaviour of the newer version - there
seems like there is no quiet flag.  Any suggestions?

Apr 22 20:34:22 moriah dhcpcd[19738]: eth0: renewing lease of
203.59.216.218 
Apr 22 20:34:22 moriah dhcpcd[19738]: eth0: leased xxx.xxx.xxx.xxx for
60 seconds 
Apr 22 20:34:22 moriah dhcpcd[19738]: eth0: adding IP address
xxx.xxx.xxx.xxx/24 
Apr 22 20:34:22 moriah dhcpcd[19738]: eth0: adding default route via
xxx.xxx.xxx.xxx metric 0



Maybe there is something I'm missing but the first line says that dhcpcd is
*renewing* the lease on eth0. If that's in fact what is happening every
30-60 seconds, then there is something wrong with what dhcpcd
received/interpreted the lease duration to be. The second line seems to
confirm this in that dhcpcd believes it leased the received address for 60
seconds. It looks like either the dhcp server's lease duration is badly
misconfigured, or dhcpcd is not interpreting the data it receives from the
dhcp server correctly wrt lease duration.

Regards,
Bob Young

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] dhcpcd is too noisy in syslog

2007-04-22 Thread Dan Farrell
On Sun, 22 Apr 2007 20:41:41 +0800
William Kenworthy <[EMAIL PROTECTED]> wrote:

> Since a recent update to dhpcd, my logs are filling up with these
> messages (every 30 seconds).  The previous version wasnt so verbose,
> but I cant see where to modify the behaviour of the newer version -
> there seems like there is no quiet flag.  Any suggestions?
> 
> Apr 22 20:34:22 moriah dhcpcd[19738]: eth0: renewing lease of
> 203.59.216.218 
> Apr 22 20:34:22 moriah dhcpcd[19738]: eth0: leased xxx.xxx.xxx.xxx for
> 60 seconds 
> Apr 22 20:34:22 moriah dhcpcd[19738]: eth0: adding IP address
> xxx.xxx.xxx.xxx/24 
> Apr 22 20:34:22 moriah dhcpcd[19738]: eth0: adding default route via
> xxx.xxx.xxx.xxx metric 0
> 
> BillK
> 
> 
I couldn't see a 'quiet' mode for dhcpcd, but you could always try
filtering out dhcpcd messages from syslog.  Here's an example, but
don't hold it against me if you have to tweak it a bit.

# /etc/syslog-ng/syslog-ng.conf
# we will filter out dhcpcd messages
source src ( unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); };
destination messages { file("/var/log/messages");};
filter dhcpcd_filter { not program("dhcpcd"); };
log { source(src); filter(dhcpcd_filter); destination(messages); };

-- 
[EMAIL PROTECTED] mailing list