cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
487
Views
0
Helpful
1
Replies

DHCP Server - Router

Hi, which would be the best way of setting a DHCP server on my Cisco Router using:

Network (2 subnets)

10.95.1.0/24 to 10.95.2.0/24

Servers and Switches (I´d like to link MAC and IP)

10.95.1.1-70

Gateway

10.95.1.254

=========

I already tried something... but how to link MAC and IP in this configuration ?

ip dhcp excluded-address 10.95.1.1 10.95.1.70

ip dhcp excluded-address 10.95.1.254

!

ip dhcp pool my_test

network 10.95.1.0 255.255.255.0

domain-name my_domain

dns-server 10.95.1.1

default-router 10.95.1.254

lease 2

!

Thanks.

Andrei.

1 Accepted Solution

Accepted Solutions

Hello,

the way to configure manual bindings is as follows:

Step 1.

Router(config)# ip dhcp pool name

-->Creates a name for the a DHCP server address pool and places you in DHCP pool configuration mode—identified by the (config-dhcp)# prompt.

Step 2.

Router(config-dhcp)# host address [mask | /prefix-length]

-->Specifies the IP address and subnet mask of the client.

The prefix length specifies the number of bits that comprise the address prefix. The prefix is an alternative way of specifying the network mask of the client. The prefix length must be preceded by a forward slash (/).

Step 3.

Router(config-dhcp)# hardware-address hardware-address type

or

Router(config-dhcp)# client-identifier unique-identifier

-->Specifies a hardware address for the client.

Specifies the distinct identification of the client in dotted-hexadecimal notation, for example, 01b7.0813.8811.66, where 01 represents the Ethernet media type.

Step 4.

Router(config-dhcp)# client-name name (Optional)

-->Specifies the name of the client using any standard ASCII character. The client name should not include the domain name. For example, the name mars should not be specified as mars.cisco.com.

Your configuration would then look like this:

The following example creates a manual binding for a client named Mars.cisco.com. The MAC address of the client is 02c7.f800.0422 and the IP address of the client is 172.16.2.254.

ip dhcp pool Mars

host 172.16.2.254

hardware-address 02c7.f800.0422 ieee802

client-name Mars

Because attributes are inherited, the previous configuration is equivalent to the following:

ip dhcp pool Mars

host 172.16.2.254 mask 255.255.255.0

hardware-address 02c7.f800.0422 ieee802

client-name Mars

default-router 172.16.2.100 172.16.2.101

domain-name cisco.com

dns-server 172.16.1.102 172.16.2.102

netbios-name-server 172.16.1.103 172.16.2.103

netbios-node-type h-node

If you have a CCO logon check out the following link:

http://www.cisco.com/en/US/partner/products/sw/iosswrel/ps1830/products_feature_guide09186a008008743b.html

Regards,

Georg

View solution in original post

1 Reply 1

Hello,

the way to configure manual bindings is as follows:

Step 1.

Router(config)# ip dhcp pool name

-->Creates a name for the a DHCP server address pool and places you in DHCP pool configuration mode—identified by the (config-dhcp)# prompt.

Step 2.

Router(config-dhcp)# host address [mask | /prefix-length]

-->Specifies the IP address and subnet mask of the client.

The prefix length specifies the number of bits that comprise the address prefix. The prefix is an alternative way of specifying the network mask of the client. The prefix length must be preceded by a forward slash (/).

Step 3.

Router(config-dhcp)# hardware-address hardware-address type

or

Router(config-dhcp)# client-identifier unique-identifier

-->Specifies a hardware address for the client.

Specifies the distinct identification of the client in dotted-hexadecimal notation, for example, 01b7.0813.8811.66, where 01 represents the Ethernet media type.

Step 4.

Router(config-dhcp)# client-name name (Optional)

-->Specifies the name of the client using any standard ASCII character. The client name should not include the domain name. For example, the name mars should not be specified as mars.cisco.com.

Your configuration would then look like this:

The following example creates a manual binding for a client named Mars.cisco.com. The MAC address of the client is 02c7.f800.0422 and the IP address of the client is 172.16.2.254.

ip dhcp pool Mars

host 172.16.2.254

hardware-address 02c7.f800.0422 ieee802

client-name Mars

Because attributes are inherited, the previous configuration is equivalent to the following:

ip dhcp pool Mars

host 172.16.2.254 mask 255.255.255.0

hardware-address 02c7.f800.0422 ieee802

client-name Mars

default-router 172.16.2.100 172.16.2.101

domain-name cisco.com

dns-server 172.16.1.102 172.16.2.102

netbios-name-server 172.16.1.103 172.16.2.103

netbios-node-type h-node

If you have a CCO logon check out the following link:

http://www.cisco.com/en/US/partner/products/sw/iosswrel/ps1830/products_feature_guide09186a008008743b.html

Regards,

Georg