11-28-2023 03:12 AM
How to make DHCP server on ASR 1000 with only static IP - IP binded with mac?
11-28-2023 03:25 AM
Sincr asr1k use ios xe then
Use static map for this case.
MHM
11-28-2023 03:39 AM
Hello @dominiaz
You can configure a DHCP server to assign IP addresses to clients based on their MAC addresses. This is known as DHCP address binding or DHCP reservations.
As example:
ip dhcp pool MY_POOL
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 8.8.8.8
ip dhcp pool MY_POOL
host 0011.2233.4455 192.168.1.10
host 00AA.BBCC.DD22 192.168.1.20
This example assumes a subnet of 192.168.1.0/24, a default gateway of 192.168.1.1, and DNS server 8.8.8.8. The two hosts with MAC addresses 0011.2233.4455 and 00AA.BBCC.DD22 will be assigned static IP addresses 192.168.1.10 and 192.168.1.20, respectively.
11-28-2023 04:09 AM
(dhcp-config)#host 0011.2233.4455 192.168.1.10
^
% Invalid input detected at '^' marker.
11-28-2023 04:27 AM
Ok @dominiaz
separate like this:
ip dhcp pool CLIENT_10
host 192.168.1.10 255.255.255.0
client-identifier 0011.2233.4455
!
ip dhcp pool CLIENT_11
host 192.168.1.11 255.255.255.0
client-identifier xxxxx
!
ip dhcp pool CLIENT_12
host 192.168.1.12 255.255.255.0
client-identifier yyyyy
11-28-2023 05:04 AM
Working:
ip dhcp pool CLIENT_10
host 192.168.1.10 255.255.255.0
client-identifier 013e.f86b.b174.f5
Not working:
ip dhcp pool CLIENT_10
host 192.168.1.10 255.255.255.0
hardware-address 3ef8.6bb1.74f5
Why?
11-28-2023 06:00 AM
https://mrncciew.com/2013/06/10/ios-dhcp-add-reservation/
Both must be work but some time device send different mac that it appear in show interface' so we use cleint id option which can not modify or change.
MHM
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