I have a topology that runs a DHCP Server, Relay, and Client. im using isc-dhcp-server & isc-dhcp-relay.
Im using Debian 11 Bullseye on every server, I configure the service on each server. But when im trying to test it. the DHCP Relay says
dhcrelay[1019]: Discarding packet received on ens37 interface that has no IPv4 address assigned.
Here's the all configuration.
DHCP Server Interfaces & Configuration
auto ens36.20
iface ens36.20 inet static
address 10.2.2.10/24
gateway 10.2.2.254
broadcast 10.2.2.255
option domain-name "example.org";
option domain-name-servers ns1.example.org, ns2.example.org;
default-lease-time 600;
max-lease-time 7200;
ddns-update-style none;
subnet 10.2.2.0 netmask 255.255.255.0 {
}
subnet 10.2.3.0 netmask 255.255.255.0 {
range 10.2.3.100 10.2.3.200;
option domain-name-servers 10.1.1.10;
option domain-name "itnsaskills.cloud";
option routers 10.2.3.254;
option broadcast-address 10.2.3.255;
default-lease-time 600;
max-lease-time 7200;
}
DHCP Relay Interfaces & Configuration
allow-hotplug ens37.20
iface ens37.20 inet static
address 10.2.2.254/24
allow-hotplug ens37.30
iface ens37.30 inet static
address 10.2.3.254/24
# sourced by /etc/init.d/isc-dhcp-relay
# installed at /etc/default/isc-dhcp-relay by the maintainer scripts
#
# This is a POSIX shell fragment
#
# What servers should the DHCP relay forward requests to?
SERVERS="10.2.2.10"
# On what interfaces should the DHCP relay (dhrelay) serve DHCP requests?
INTERFACES="ens37.30"
# Additional options that are passed to the DHCP relay daemon?
OPTIONS=""
DHCP Client /etc/network/interfaces
auto ens33.30
iface ens33.30 inet dhcp
Please help me solve this error
Ps: sorry for my bad english
tcpdump -l -n -s0 -e -i ens37 not vlan
).