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

DHCP service on Cisco routers

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
Hall of Fame Super Blue

Re: DHCP service on Cisco routers

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

Re: DHCP service on Cisco routers

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?

New Member

Re: DHCP service on Cisco routers

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é

Hall of Fame Super Silver

Re: DHCP service on Cisco routers

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

1019
Views
0
Helpful
4
Replies
CreatePlease to create content