08-03-2021 02:23 AM
Hi Everyone,
I have a simple requirement.
I just want to bind the one IP with MAC Address so that i could Allow the certain services in firewall against that IP.
No matter device connects to which port, it should always be getting the same IP based on the MAC Address Binding.
2960 switch is DHCP server which is connected to one Cisco SME switch and my device is connected to this SME switch.
so far i have done the following on cisco 2960 but it didn't seem to work.
ip dhcp exclude-address 192.168.10.10
ip dhcp pool test
host 192.168.10.10 255.255.255.0
client-identifier <macaddress>
Need your kind advise
Solved! Go to Solution.
08-03-2021 04:21 AM
you can use one of the options :
client-identifier 01XXXXXXXXXXXX - The client-identifier option prepends a 01 (for Ethernet) to the MAC address.
or
hardware-address xxxx.xxxx.xxxx
From Cisco Notes :
DHCP clients require client identifiers. You can specify the unique identifier for the client in either of the following ways:
08-03-2021 02:42 AM
ip dhcp pool test host 192.168.10.10 255.255.255.0 client-identifier <macaddress>
client-identifier 01aa.bbcc.0010.00 <-- this is very important default-router 192.168.10.X
more information can be find here :
https://www.theroutingtable.com/configuring-a-cisco-dhcp-ip-reservation/
08-03-2021 02:57 AM
Many thanks, i will try this now, from your post i came to know that i haven't added the dns and gateway into that pool, may be this is the reason that it wasn't working, will try adding the gateway and dns.
however i have one confusion, in my switch the mac address format is different, it is xxxx.xxxx.xxxx format not the format you have mentioned above should i follow your format or the format which my switch is showing me upon "sh mac address-table".
many thanks!
08-03-2021 04:21 AM
you can use one of the options :
client-identifier 01XXXXXXXXXXXX - The client-identifier option prepends a 01 (for Ethernet) to the MAC address.
or
hardware-address xxxx.xxxx.xxxx
From Cisco Notes :
DHCP clients require client identifiers. You can specify the unique identifier for the client in either of the following ways:
08-05-2021 12:35 AM
Hi Balaji,
below is the final config, i am going to make just one question left.
==================================
ip dhcp pool bind_host
host 192.168.10.10 255.255.255.0
client-identifier 01XXXXXXXXXXXX
OR
hardware-address xxxx.xxxx.xxxx
default-router 192.168.10.1
dns 8.8.8.8 8.8.4.4
==================================
MAIN Question
the above required binded IP i.e. "192.168.10.10" Do i need to exclude this address by ip dhcp exclude-address 192.168.10.10 ?
Below is the main DHCP pool for everyone one and no IP Addresses are excluded so far. because it was not required until the above one host that is needed to bind.
====================================
MAIN DHCP pool which is working fine.
ip dhcp pool net_10x
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
dns 8.8.8.8 8.8.4.4
====================================
08-05-2021 02:41 AM
MAIN Question the above required binded IP i.e. "192.168.10.10" Do i need to exclude this address by ip dhcp exclude-address 192.168.10.10 ? Below is the main DHCP pool for everyone one and no IP Addresses are excluded so far. because it was not required until the above one host that is needed to bind.
If you looking to static IP for the device, you need to exclude the IP range from the Pool. If not it may have conflict.
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