2001-04-24 18:34:09

by mshiju

[permalink] [raw]
Subject: Problem with DHCP when using tokenring on 2.4.x



Hello,
I have a problem with DHCP when using tokenring card on 2.4.x
kernel . When I am using IBM tokenring adapter( all) and trying to hook on
to the lan n/w using DHCP ,I get an error message "operation failed " from
the dhcp client . The dhcp server is getting the broadcast message when the
dhcp client is run. I am using pump that comes with 6.2 redhat
distribution . There is no problem when using static IP. I could
experience this problem only on 2.4.x . I am able to get a valid IP
address on 2.2.x kernel when using tokenring adapter. And also there is no
problem when using ethernet adapter on 2.4.x . . Has anyone experienced
this problem on 2.4.x . Can any one help me to resolve this problem.

Thanks & Regards
Shiju



2001-04-25 09:55:33

by Mulder, Tjeerd

[permalink] [raw]
Subject: Re: Problem with DHCP when using tokenring on 2.4.x

The problem is probably caused by a change that was made around
kernel 2.3.29. The hardware type of a tokenring adapter was changed
from ARPHRD_IEEE802 to ARPHRD_IEEE802_TR. That breaks pump and the
ISC dhcp package. So pump from RH6.2 certainly won't work.

Fixing the ISC dhcp package is easy. Maybe it has been fixed
on the ISC site by now. Don't know about pump.


Patch for the ISC package:

--- dhcp-3.0b2pl11/common/discover.c.org Mon Jan 8 17:38:18 2001
+++ dhcp-3.0b2pl11/common/discover.c Mon Jan 8 17:23:56 2001
@@ -407,7 +407,11 @@
#ifndef HAVE_ARPHRD_IEEE802
# define ARPHRD_IEEE802 HTYPE_IEEE802
#endif
+#ifdef ARPHRD_IEEE802_TR
+ case ARPHRD_IEEE802_TR:
+#else
case ARPHRD_IEEE802:
+#endif
tmp -> hw_address.hlen = 7;
tmp -> hw_address.hbuf [0] = ARPHRD_IEEE802;
memcpy (&tmp -> hw_address.hbuf [1], sa.sa_data, 6);



--
======================================================================
Tjeerd Mulder ! mailto:[email protected]
Fujitsu Siemens Computers !
FSC PO PC RD MDE !
Buergermeister Ulrichstr 100 ! Phone: +49 821 804 3549
86199 Augsburg ! Fax : +49 821 804 3934
======================================================================