09-29-2022 03:09 AM
Hello
I am trying to get a DHCP static binding with a binding file to work. I already managed to connect multiple clients with the switch and they recieve the correct IP Address assigned in the DHCP static binding file. There is one client, where it does not seem to work. I already tried it with 01 prefix and without. The bindings look like this:
IP address Client-ID/ Lease expiration Type State Interface
192.168.2.6 0030.5336.a7fe Sep 30 2022 11:52 AM Automatic Active Vlan1
192.168.2.35/24 0100.3053.36a7.fe Infinite Static Active Unknown
192.168.2.36/24 0030.5336.a7fe Infinite Static Active Unknown
My dhcp pools look like this:
!
ip dhcp pool static-bus
origin file flash:/static-binding.txt
default-router 192.168.2.5
dns-server 192.168.2.5
!
ip dhcp pool dynamic-bus
network 192.168.2.0 255.255.255.0
default-router 192.168.2.5
dns-server 192.168.2.5
So the client recieves an IP from the dynamic address pool, but it should recieve one from the static binding.
The difference between this client and all my other clients is, that this client uses PoE. Does this affect the hardware type in the static binding file?
Are there any suggestions why the binding is not working?
09-29-2022 03:36 AM
Hello
Can you reset the camera and also clear any dhcp bindings referencing its mac- address and test again?
09-30-2022 12:56 AM - edited 09-30-2022 01:15 AM
I have reset everything and I'm using just the one static binding now that i want to apply, it still doesnt work.
!IP address Type Hardware address Lease expiration
192.168.2.36 01 0030.5336.a7fe Infinit
*end*
Without the dynamic DHCP active, the camera recieves 169.254.75.51 now as an IP.
This is the Output of the Syslog if it helps to resolve the issue:
*Sep 30 10:04:30.526: DHCPD: DHCPDISCOVER received from client 0030.5336.a7fe on interface Vlan1.
09-29-2022 03:43 AM
let first refresh the DHCP static by
no service dhcp
then
service dhcp
09-30-2022 12:53 AM
I always do that when applying a new configuration.
09-30-2022 03:25 AM
can I see the config file ?
10-04-2022 12:48 AM - edited 10-04-2022 12:49 AM
10-04-2022 03:25 AM
last thing share the below
debug ip dhcp server events
NOTE:- disable debug after finish
10-04-2022 05:27 AM
10-04-2022 12:00 PM
I check and check,
first think
the debug not see SW read infinite word, I return to your text
you typo write infinit not infinite
can you please edit this word and check again.
10-06-2022 05:51 AM
10-06-2022 07:38 AM
no service dhcp
then
service dhcp
then check debug see if the SW read the text file, your previous (last) debug dont show that SW read text file
10-10-2022 01:52 AM
10-10-2022 04:20 AM
Hello
You have L2 security on the switch( dhcp snooping/IPSG ) but also DHCP service active which seems counter-intuitive!
Is vlan 1 the only vlan being serviced with dhcp ?
Can you try enabling ip routing on the switch then fresh the dhcp service and test again.
10-10-2022 07:32 AM
Hello,
im new to the networking world, so i dont really know what dhcp snooping/L2 Security is about.
Yes, Vlan1 is the only existing Vlan and therefore the only Vlan being serviced with DHCP.
I did enable IP routing, but still get the same results. Logs and current config are attached.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide