LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-17-2002, 10:55 AM   #1
padukes
LQ Newbie
 
Registered: Mar 2002
Posts: 4

Rep: Reputation: 0
Strange DHCPcd behavior


Hi all,

I'm running Redhat 7.2. If I run dhcpcd -n (renew license) I expect that I will send out a packet to my dhcp server and receive one back. However, if I run tcpdump and then run dhcpcd -n - I see:

[user]# tcpdump -n host yyy.yyy.yyy.yyy
tcpdump: listening on eth0
13:20:32.720462 xxx.xxx.xxx.xxx.bootpc > yyy.yyy.yyy.yyy.bootps: xid:0x54496739 secs:3 C:xxx.xxx.xxx.xxx [|bootp]
13:20:32.754394 yyy.yyy.yyy.yyy.bootps > xxx.xxx.xxx.xxx.bootpc: xid:0x54496739 C:xxx.xxx.xxx.xxx Y:xxx.xxx.xxx.xxx [|bootp] (DF)
13:20:32.754859 xxx.xxx.xxx.xxx > yyy.yyy.yyy.yyy: icmp: xxx.xxx.xxx.xxx udp port bootpc unreachable [tos 0xc0]

Which seems to show me sending one out, getting one back and then (unexpectedly) sending out an ICMP packet (which turns out to be port unreachable).

So my first issue is why am I sending out a port unreachable? Does this indicate a problem with dhcp?

Then, if I look at my iptables log all I see is:

[user]# tail /var/log/messages
Mar 15 13:20:32 pokey kernel: INPUT:IN=eth0 OUT= MAC=00:00:00:00:00:00:00:00:00:00:00:00:00:00 SRC=yyy.yyy.yyy.yyy DST=xxx.xxx.xxx.xxx LEN=359 TOS=0x00 PREC=0x00 TTL=253 ID=32883 DF PROTO=UDP SPT=67 DPT=68 LEN=339
Mar 15 13:20:32 pokey kernel: OUTPUT:IN= OUT=eth0 SRC=xxx.xxx.xxx.xxx DST=yyy.yyy.yyy.yyy LEN=387 TOS=0x00 PREC=0xC0 TTL=255 ID=1645 PROTO=ICMP TYPE=3 CODE=3 [SRC=yyy.yyy.yyy.yyy DST=xxx.xxx.xxx.xxx LEN=359 TOS=0x00 PREC=0x00 TTL=253 ID=32883 DF PROTO=UDP SPT=67 DPT=68 LEN=339 ]

Which seems to show me receiving a packet and sending out the port unreachable but never sending out the initial packet. Here are my rules:
#Log anything in other than loopback
$iptables -A INPUT -i ! lo -j LOG --log-prefix "INPUT:"

#Log anything in other than loopback
$iptables -A OUTPUT -o ! lo -j LOG --log-prefix "OUTPUT:"

So my second question is: why does iptables only show 2 of the 3 packets?

Thanks so much for any help,
P
 
  


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
Strange SAMBA behavior Daniboy Linux - Software 3 10-07-2005 10:19 AM
Very Strange Behavior raysr Mandriva 4 08-31-2004 03:06 PM
Strange RedHat behavior jimmmac Linux - Software 3 09-17-2003 04:03 AM
Strange Behavior andrewb758 Linux - Hardware 5 08-31-2003 03:42 PM
strange behavior abhijit Linux - General 3 07-10-2003 12:25 AM


All times are GMT -5. The time now is 05:52 PM.

Main Menu
Advertisement
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