dhcrelay does not work

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

dhcrelay does not work

ali reza zareian

dhcrelay does not work with this scenario

       A                                   B
 ---------------                          -----------------
| dhcp server      |               | dhcrelay          |
 |client     |
| FreeBSD 11.0  |<--------->| FreeBSD 11.0 |<-------------->|windows|
 -------------------- em7         em0-------------- em1

 ----------------------- DHCP server configuration ---
    /usr/local/sbin/dhcpd -user dhcpd -group dhcpd -chroot /var/dhcpd -cf
/etc/dhcpd.conf -pf      /var/run/dhcpd.pid em7

    dnsmasq is enable

option domain-name "localdomain";
option ldap-server code 95 = text;
option domain-search-list code 119 = text;
option arch code 93 = unsigned integer 16; # RFC4578

default-lease-time 7200;
max-lease-time 86400;
log-facility local7;
one-lease-per-client true;
deny duplicates;
ping-check true;
update-conflict-detection false;
subnet netmask {
  pool {

  option routers;
  option domain-name-servers;

on device B:
dhcrelay  -i em0 -i em1
when i test this scenario DHCP packets arrive to DHCP server but they can
not return to device B where my dhcrelay is running.
if i connect device C to DHCP server directly ,It takes ip fast so i think
my DHCP server config is working fine

What caused the problem?
What's wrong here??
[hidden email] mailing list
To unsubscribe, send any mail to "[hidden email]"