Hi prg
> Thanks for the correction 
Thanks for replying
> So, you've successfully associated jack's MAC with a 192.168.2.z IP
> address. The server has noted this in its dhcpd.leases file. Ted will
> not be a happy camper seeing this MAC trying to get an address on
> another subnet (most likely).
Ok I've removed all evidence of any previous history from client and server.
> But what response(s), if any, does it get. Sniffed the wire on jack?
Nothing except "Timed out waiting for a valid DHCP server response"
Although you have focussed me in on the word "valid".
Does tcpdump not show _everything_ appearing on the cable?
Is packet sniffing more than tcpdump -vvv ?
> etc.s may be useful -- or maybe not. DHCP can be tricky to diagnose
> and I almost always inspect the entire packet sequence/exhange _with_
> payload. Ethereal very hand if available.
I'll start having a play with ethereal (not used it before)
> Assume you have Windows boxes on the network.
No Windows anywhere in sight.
>> (but why is arp asking across subnets?)
>
> (several reasons these might show up, not least that 192.168.1.254 is
> the IP of the relay agent.)
Ah, I've always assumed that arp _only_ deals with same subnet and ip
routing get to that subnet. OK so I won't worry about that then.
> mrsdoyle is not relaying on eth0. Any traffic at all from the relay
> agent to the server?
The only traffic (from tcpdump) is a who-has/is-at back and forth
between dhcp server and gateway/relay. I don't know if this has been
triggered by any dhcp relaying or if it is general curiosity from the
two boxes on the network. (I've unplugged everything else just while I
get to the bottom of this problem)
> Which options are you using with dhcrelay?
> Especially which -m option. forward?
dhcrelay -d -m forward 192.168.2.102
(but I have tried every option just to see if there is any difference)
I'm a little shakey as to which port to run it on since using the -i
eth0 option says it is listening and sending on eth0. I need it to
listen and send on both, so I leave it blank.
Also route add -host 255.255.255.255 dev eth0 or eth1?
Since I had to use this all-ones host at the dhcp server to get it to
work, I've assumed that on the gateway, this should be on eth1 (the one
pointing at the client) though I have tried both.
> I don't think ip_forward or route table is your problem. What about a
> firewall and UDP port 67?
Now you've got me thinking. The thing I'm treating as a dumb hub on the
server side, is actually a Belkin ADSL firewall/modem/router with dhcp
and firwall turned off. I'm just of to get myself a crossover cable to
take that out of the equation too. So I will end up with 3 boxes,
gateway in the middle, all connected with null-modem/crossover cables.
> Then there is the problem of arp caches that have jack's MAC/old IP
> entries that do/will conflict with jack's MAC/new IP assignment.
> Windows makes cleaning this up a pain sometimes. Try removing the
> faulty arp entries from ted and mrsdoyle at least.
I don't seem to get much info from arp cache.
arp -a usually only shows a one or two line (correct) entry of the
other box(es) it has to deal with.
> http://www.faqs.org/rfcs/rfc951.html
> http://www.faqs.org/rfcs/rfc2131.html
> http://www.faqs.org/rfcs/rfc2132.html
0ne down , two to go :-)
> Since pinging and other goodies seem to work OK, I would look for a
> firewall/port problem and sniff the wire at _every_ nic along the
> pathway.
OK so I'm off to
1)get a crossover cable,
2)make my first venture into iptables/chains
3)find out about packet sniffing
I'm going through the LPIC 202 syllabus to see if it's worth my
attempting. I'm learning lots but it get rather disheartening when I
struggle over such a tiny part of the exam.
Thank you so much for your help.
--
Andy Richardson
We need Linux, like dolphins need a hole in the head.