cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5890
Views
0
Helpful
2
Replies

DHCP reservation

ladan.eftetahi
Level 1
Level 1

hello

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

2 Replies 2

pkhatri
Level 11
Level 11

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

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card