DHCP Static Binding on Cisco IOS

(Rene Molenaar) #1

This topic is to discuss the following lesson:

(Rene Molenaar) #2

Thanks for the info Rene
As always complete posts!

(system) #3

how to reserve a single ip for pc in router ? ?

(Rene Molenaar) #4

That is exactly what this lesson is about…

(system) #5

Hi Rene

I have some challenges with CCNA R&S lab about DHCP/DHCP relay.The lab number is 10.1.3.3 assuming that you have access to the new CCNA R&S oficial course…
The lab has two clients, two intermediary routers and another router connected to the intermediary routers via serials.
Intermediary router are R1 and R3, the central router is R2.
To R2 are connected via Ethernet GIgabit interfaces a DNS Seriver and the ISP
The lab tell me to do the R2 a dhcp server for the two PC’s connected to the intermediary routers R1 and R2 so they receive an IP…
The challenge is i just can’t get the “ip helper addresses” correct for R1 and R3 to relay the DHCP ip allocation from R2…Neither here or in your book i found what i am looking for…

Thank you

(Rene Molenaar) #6

Hi Catalin,

Your message wasn’t deleted but not approeved before, I do this manually because of spam. I think this example should help you:

If not, let me know.

Rene

(Jose L R) #7

Awesome Post!!!

(Rene Molenaar) #8

Thanks Jose!

(Don D) #9

Hello Rene,

Is the client-identifier configured on the dhcp server is not the mac address of the dhcp client? Is it a different value?(real world)

I tried to configure the “ip address dhcp client-id fa0/0” on the dhcp client but it’s not getting the correct ip im expecting. I already have a dhcp pool for it on the dhcp server.:

DHCP SERVER:

R1#SHOW RUN | sec ip dhcp
no ip dhcp use vrf connected
ip dhcp pool DONDRUJA
   network 192.168.1.0 255.255.255.0
   default-router 192.168.1.1
   option 150 ip 192.168.1.1
   dns-server 8.8.8.8
   lease 2
ip dhcp pool PC2
   host 192.168.1.100 255.255.255.0
   client-identifier 2222.2222.2222
ip dhcp pool R3
   host 192.168.1.200 255.255.255.0
   hardware-address 4444.4444.4444

R2:

R2#SHOW RUN INT FA0/0
Building configuration...

Current configuration : 136 bytes
!
interface FastEthernet0/0
 mac-address 2222.2222.2222
 ip address dhcp client-id FastEthernet0/0
 no ip route-cache
 duplex half
end
(Rene Molenaar) #10

Hi Don,

It’s probably the DHCP client that is bugging you. Take a look here:

Rene

(Davis W) #11

Hi Rene,

For the DHCP client in cisco router, there’s option to put the hostname. What the purpose to put the hostname?

R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address dhcp client-id fastEthernet 0/0 hostname R1

Davis

(Rene Molenaar) #12

Hi Davis,

You could use this as an identifier. The DHCP server could be configured to assign an IP address based on the hostname.

Rene

(Chris N) #13

Can you configure multiple static bindings in the same pool?

(Lazaros Agapides) #14

Hello Chris

Yes you can. Just add additional host commands within the DHCP pool.

I hope this has been helpful!

Laz

(Chris N) #15

Something else I just noticed - it seems Windows 7 will prepend “01” on to the start of the MAC as the client identifier

(Lazaros Agapides) #16

Hello Chris.

Yes, this is the case. Windows 7 as well as other operating systems as well as firmwares of network devices will implement a client identifier based on RFC4361.

I hope this has been helpful!

Laz