Date: Mon, 5 Feb 2018 11:46:34 +0330 From: ali reza zareian <zareian.a.r@gmail.com> To: freebsd-hackers@freebsd.org Subject: dhcrelay does not work Message-ID: <CAOpWh0bqpc08c6WK8nLKevszp%2BA9t_zcRKYBLSO9rtK%2BHj_x1Q@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
hello 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 dhcpd.conf: 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; authoritative; subnet 100.100.10.0 netmask 255.255.255.0 { pool { range 100.100.10.1 100.100.10.50; } option routers 100.100.10.10; option domain-name-servers 100.100.10.10; } -------------------------------------------------------- on device B: dhcrelay -i em0 -i em1 100.100.10.10 em1:192.168.1.10/24 em0:100.100.10.100 -------------------------------------------------------- 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??
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOpWh0bqpc08c6WK8nLKevszp%2BA9t_zcRKYBLSO9rtK%2BHj_x1Q>