Contributed by jose on from the dynamic-networks dept.
(Comments are closed)
OpenBSD Journal
Contributed by jose on from the dynamic-networks dept.
(Comments are closed)
Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original deadly.org with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]
By Anonymous Coward () on
i have a normal subnet 192.168.1.0/24 with 192.168.1.1 as router and dhcp/dns server. now i got an old laptop which i am using as wireless ap (in IBSS mode). Wireless subnet is 192.168.3.0/24. i set up "dhcrelay -i wi0 192.168.1.1". the dhcp-requests from the clients come in through wi0 but dhcrelay doesnt react in any way. nothing appropriate leaves through ep1 (the other interface). if i set up an ip-adress manually everything works fine.
Any ideas?
Comments
By Anonymous Coward () on
Comments
By Anonymous Coward () on
I have set up more than one central routers with wireless too. there i have the setup you described.
By Christopher Smith () drsmithy_ta@hotmail.com on mailto:drsmithy_ta@hotmail.com
This seems a bit counter-intuitive, but it is documented in the man page (at least, it is on my FreeBSD systems).
Comments
By Anonymous Coward () on
so the second iface is "to"?
Comments
By Anonymous Coward () on
By Christopher Smith () drsmithy_ta@hotmail.com on mailto:drsmithy_ta@hotmail.com
/usr/local/sbin/dhcrelay -a -A 1400 -i vlan0
-i vlan1 -i vlan2 -i vlan3 a.b.c.d w.x.y.z
vlan0 is the "external" interface through which the DHCP relay contacts the two servers a.b.c.d and w.x.y.z.
vlan[1-3] are the "internal" interfaces it listens for DHCP requests to relay on.
I don't believe the order is important.
The relevant extract from the man page is:
The -i flag can be used to specify the network interfaces on which the relay agent should listen. In general, it must listen not only on those network interfaces to which clients are attached, but also on those network interfaces to which the server (or the router that reaches the server) is attached .
Again, this is a FreeBSD (4.6.2) box. YMMV. Although as long as you have the same major DHCP release (we are using isc-dhcp3) it shouldn't matter.
Don't forget to make sure your firewall rules aren't blocking some aspect of the DHCP negotiation.