cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1326
Views
0
Helpful
4
Replies

DHCP service on Cisco routers

johnlloyd_13
Level 9
Level 9

hi experts,

i've enabled DHCP service on a Cisco router with the following requirements:

10.0.0.0 /8 network with usable or lease IPs: 10.0.1.48 - 10.0.1.247

the config i did was below:

ip dhcp-excluded address 10.0.1.1 10.0.1.47

ip dhcp-excluded address 10.0.1.248 10.0.1.255

ip dhcp pool LAN

network 10.0.0.0 255.0.0.0

default-router 10.0.1.1

dns-server 192.169.x.x

i would appreciate if someone would advise if the config would meet the initial requirements or if i need to add more statements for the excluded addresses. i'm thinking that this config might lease an IP of 10.0.0.1 or on the other range not specified on the excluded addresses.

4 Replies 4

Jon Marshall
Hall of Fame
Hall of Fame

johnlloyd_13 wrote:

hi experts,

i've enabled DHCP service on a Cisco router with the following requirements:

10.0.0.0 /8 network with usable or lease IPs: 10.0.1.48 - 10.0.1.247

the config i did was below:

ip dhcp-excluded address 10.0.1.1 10.0.1.47

ip dhcp-excluded address 10.0.1.248 10.0.1.255

ip dhcp pool LAN

network 10.0.0.0 255.0.0.0

default-router 10.0.1.1

dns-server 192.169.x.x

i would appreciate if someone would advise if the config would meet the initial requirements or if i need to add more statements for the excluded addresses. i'm thinking that this config might lease an IP of 10.0.0.1 or on the other range not specified on the excluded addresses.

John

Yes it could lease out many other addresses.

Could you not just use

ip dhcp pool LAN

network 10.0.1.0 255.255.255.0

etc...

Jon

thank jon! that was my inital thoughts as well. i would need the SM to be a /8. any other work around? like adding statements on the excluded address just to "unlease" the other address range?

abersven
Level 1
Level 1

For 10.0.0.0 /8 network with usable or lease IPs: 10.0.1.48 - 10.0.1.247 you can use the following configuration:

!

ip dhcp-excluded address 10.0.0.0 10.0.1.47

ip dhcp-excluded  address 10.0.1.248 10.255.255.255

!

ip dhcp pool LAN

network 10.0.0.0  255.0.0.0

default-router 10.0.1.1

dns-server 192.169.x.x

!

The network statement is also used to map this dhcp pool to an interface. So I assume that you have an interface within this range. It’s a strange requirement you have when I do not have your whole configuration or the details because I believe that the broadcast address might be wrong on the client compared to what you have on your routers interface. Broadcast address will be 10.255.255.255.

/André

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello John,

in real world using a /8 would be insane, you should define multiple DHCP pools matching the real subnets on the different interfaces

Hope to help

Giuseppe

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: