Cisco - добавить фиксацию DHCP-аренды по MAC-адресу
dhcp pool
dhcp reservation
dhcp mac binding
Формат записи client-identifier для Unix/Linux и Windows хостов различается.
Пример записи для client-identifier:
Для Windows
client-identifier 0178.e7d1.aa8f.5d
Для Linux
client-identifier 0078.e7d1.aa8f.5d
Настройка привязки
Сначала выполним отвязку IP-адреса DHCP
clear ip dhcp binding 192.168.96.152
Например, нам надо создать резервацию для принтера на циске.
Зарезервируем за неким mac адресом (mac-ом принтера) ip адрес 192.168.0.100
ip dhcp pool PRINTER
host 192.168.0.100 255.255.255.0
client-identifier 0178.e7d1.aa8f.5d
default-router 192.168.0.1
dns-server 192.168.0.1
lease 60
!
Посмотреть выданные ip
router#show ip dhcp ?
binding DHCP address bindings
conflict DHCP address conflicts
database DHCP database agents
import Show Imported Parameters
pool DHCP pools information
relay Miscellaneous DHCP relay information
server Miscellaneous DHCP server information
router#show ip dhcp binding
Bindings from all pools not associated with VRF:
IP address Client-ID/ Lease expiration Type
Hardware address/
User name
192.168.0.100 0178.e7d1.aa8f.5d Infinite Manual
Если компьютер уже получил динамический IP, но нужно было назначить ему статический IP.
Т.к. MAC этого компьютера уже засветился в binding, то создать статическую привязку не получится:
router(dhcp-config)#client-identifier 0178.e7d1.aa8f.5d
% A binding for this client already exists.
Нужно отозвать выданный ip (удалить созданный автоматически биндинг).
router#clear ip dhcp binding ?
* Clear all automatic bindings
A.B.C.D Clear a specific binding
router#clear ip dhcp binding 192.168.0.100