I have tried various permutations of options for dhcrelay (-a, -D, -m).
On the other hand, looking at the debug logs (loglevel 7) of odhcpd:
Tue Mar 24 07:38:36 2020 daemon.debug odhcpd[22376]: Received 300 Bytes from 10.1.2.2%DOMAIN@br-DOMAIN
Tue Mar 24 07:38:36 2020 daemon.debug odhcpd[22376]: Got DHCPv4 request on DOMAIN
Tue Mar 24 07:38:36 2020 daemon.debug odhcpd[22376]: Assigning static IP: 10.1.2.118
Tue Mar 24 07:38:36 2020 daemon.info odhcpd[22376]: Received DHCPV4_MSG_DISCOVER from MAC3 on DOMAIN
Tue Mar 24 07:38:36 2020 daemon.debug odhcpd[22376]: Sent DHCPV4_MSG_OFFER to MAC3 - 10.1.2.42
Tue Mar 24 07:38:39 2020 daemon.debug odhcpd[22376]: Received 300 Bytes from 10.1.2.2%DOMAIN@br-DOMAIN
Tue Mar 24 07:38:39 2020 daemon.debug odhcpd[22376]: Got DHCPv4 request on DOMAIN
Tue Mar 24 07:38:39 2020 daemon.info odhcpd[22376]: Received DHCPV4_MSG_REQUEST from MAC3 on DOMAIN
Tue Mar 24 07:38:39 2020 daemon.debug odhcpd[22376]: Sent DHCPV4_MSG_NAK to MAC3 - 10.1.2.42
Tue Mar 24 07:38:40 2020 daemon.debug odhcpd[22376]: Received 300 Bytes from 10.1.2.2%DOMAIN@br-DOMAIN
Here, 10.1.2.42 is the IP of the interface if 2, facing 3, and 10.1.2.118 is the IP supposed to be assigned to 3.
I have the following setup:
isc-dhcp-relay
odhcpd
is serving request to directly connected clients just fine.isc-dhcp-relay
is running with:(where
enp2s0
is connected to1
,enp3s0
is connected to2
and10.1.2.1
is IP of1
)The
dhcrelay
log shows requests being forwarded:Using
tcpdump
on2
, request apckets are going out but no responses are coming back:Same on
1
:I have tried various permutations of options for
dhcrelay
(-a
,-D
,-m
).On the other hand, looking at the debug logs (loglevel
7
) ofodhcpd
:Here,
10.1.2.42
is the IP of the interface if2
, facing3
, and10.1.2.118
is the IP supposed to be assigned to3
.