cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
822
Views
0
Helpful
6
Replies

ASR 1000 - DHCP server on interface with only static IP

dominiaz
Level 1
Level 1

How to make DHCP server on ASR 1000 with only static IP - IP binded with mac?

6 Replies 6

M02@rt37
VIP
VIP

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.

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

(dhcp-config)#host 0011.2233.4455 192.168.1.10
^
% Invalid input detected at '^' marker.

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

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

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?

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