Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

DHCP reservation

hello

could you pls tell me how can I create a DHCP reservation on 3750 or any other switches?

2 REPLIES
Purple

Re: DHCP reservation

Hi Ladan,

Here's a sample config of how to set up the 3750(or other IOS-based switch) as a DHCP server:

service dhcp

!

ip dhcp pool DCHPPool1

network 10.1.1.0 255.255.255.0

default-router 10.1.1.1

dns-server

!

ip dhcp excluded-address 10.1.1.1

(since you don't want it handing out addresses such as the router's address)

You can change the addresses to suit your needs.

Hope that helps - pls rate the post if it does.

Regards,

Paresh

Bronze

Re: DHCP reservation

Hi,

just in case you are looking for a MAC-to-IP address reservation, below is what the configuration would look like (IP and MAC addresses used are arbitrary). Watch out: Windows clients require the ´client-identifier´ option instead of the hardware-address. There is a difference between e.g. Linux clients and Windows clients: Linux clients will use just the MAC address without the client-id, while

Windows clients use the client-id in the DHCP request, which consists of the MAC-address prepended by a ´01´

Also keep in mind that for each client, you would need another dhcp pool.

ip dhcp pool reservation1

host 192.168.1.2 mask 255.255.255.0

hardware-address 08c5.d4500.0311

or

client-identifier 0108.c5d4.0003.11

client-name Computer1

default-router 192.168.1.1

domain-name yourdomain.com

dns-server 172.16.1.1

netbios-name-server 172.16.1.2

netbios-node-type h-node

Regards,

Nethelper

3912
Views
0
Helpful
2
Replies