LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   DHCP messages in bash (http://www.linuxquestions.org/questions/linux-server-73/dhcp-messages-in-bash-537943/)

Amuro-Ray2020 03-16-2007 03:54 AM

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 :confused:

acid_kewpie 03-16-2007 04:04 AM

this isn't DHCP, it's netfilter / iptables. try running "dmesg -n0" (or -n1) to change what's shown on screen.

Amuro-Ray2020 03-16-2007 04:50 AM

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


All times are GMT -5. The time now is 06:57 AM.