cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5052
Views
5
Helpful
15
Replies

9300 DHCP static binding not working

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?

 

15 Replies 15

Hello
Can you reset the camera and also clear any dhcp bindings referencing its mac- address and test again?


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

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.

let first refresh the DHCP static by 
no service dhcp
then 
service dhcp

I always do that when applying a new configuration.

can I see the config file ?

I attached the startup conf and the static-binding file. I also attach a screenshot of the dhcp bindings:

AlexanderBaumann_0-1664869691415.png

As already mentioned, the .35 is the one not working.

last thing share the below 
debug ip dhcp server events

NOTE:- disable debug after finish

 

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. 

I corrected the typo, the problem still persists.

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 

Yes, it does still read the text file:

 

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.


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

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.