Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-17-2002, 09:55 AM   #1
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 > yyy.yyy.yyy.yyy.bootps: xid:0x54496739 secs:3 [|bootp]
13:20:32.754394 yyy.yyy.yyy.yyy.bootps > xid:0x54496739 [|bootp] (DF)
13:20:32.754859 > yyy.yyy.yyy.yyy: icmp: 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 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 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 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,


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

All times are GMT -5. The time now is 08:58 PM.

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