LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-16-2007, 02:54 AM   #1
Amuro-Ray2020
Member
 
Registered: Aug 2004
Location: Arizona
Distribution: Linux Mint
Posts: 81

Rep: Reputation: 15
DHCP messages in bash


Okay, I'm probably going to feel really stupid after hearing the answer to this, because I know in my mind that this is probably a really easy fix, and I'm guessing it has something to do with syslog and some kind of debug option, but here goes.

I'm on Debian 3.1 and I have DHCPv2 installed, and basically every time a DHCP client does anything, the DHCP server dumps messages like this one to my bash, no matter who I'm logged into as.

Code:
Inbound IN=eth0 OUT= MAC=00:20:18:89:74:b4:00:18:de:d5:81:aa:08:00 SRC=192.168.1
.124 DST=192.168.1.129 LEN=330 TOS=0x00 PREC=0x00 TTL=128 ID=2104 PROTO=UDP SPT=
68 DPT=67 LEN=310
My question is, obviously, how do I just push this to a log instead of having it show up in bash when I'm trying to type commands?

Thanks for any help
 
Old 03-16-2007, 03:04 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
this isn't DHCP, it's netfilter / iptables. try running "dmesg -n0" (or -n1) to change what's shown on screen.
 
Old 03-16-2007, 03:50 AM   #3
Amuro-Ray2020
Member
 
Registered: Aug 2004
Location: Arizona
Distribution: Linux Mint
Posts: 81

Original Poster
Rep: Reputation: 15
Thanks

I knew I'd feel stupid after hearing the answer Yup, that worked. Thanks for the quick response!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix: User messages are okay; but error messages themselves seem to be bouncing jgombos Linux - Server 3 03-03-2007 02:21 PM
Bash scripting (hide sterr messages) Quantum0726 Programming 2 06-07-2005 08:05 PM
Redirecting the kernel messages to file other than /var/log/messages jyotika_b83 Linux - General 3 04-28-2005 06:39 PM
Redirecting error messages to stderr and file in Bash lowpro2k3 Programming 1 04-14-2005 06:47 PM
bash scripting - suppress error messages? brian0918 Programming 2 06-19-2003 11:16 AM


All times are GMT -5. The time now is 02:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration