Skip to main content

range in DHCP

More
16 years 5 months ago #26488 by omer84
range in DHCP was created by omer84
hi guyz,

I have the following case, i need to enable DHCP on a cisco router with the following ip range,
192.168.1.100 - (starting)
192.168.1.200 - (end)

check the folowing codes.

ip dhcp pool abc
network 192.168.1.100
default gateway 192.168.1.100
import all
lease time infinte


i knw i am wrong but where,
More
16 years 5 months ago #26489 by Chojin
Replied by Chojin on topic Re: range in DHCP
ip dhcp pool abc
network 192.168.1.0/24
default gateway 192.168.1.100
lease time infinte <-- sure about this?

ip dhcp excluded-address 192.168.1.1 192.168.1.100
ip dhcp excluded-address 192.168.1.201 192.168.1.255

not tested, just test and see if it is what you need

CCNA / CCNP / CCNA - Security / CCIP / Prince2 / Checkpoint CCSA
More
16 years 5 months ago #26493 by omer84
Replied by omer84 on topic Re: range in DHCP
It works thx,, but is there any other way that all the commands be inside the dhcp pool,, i mean not excluding the ips,
More
16 years 4 months ago #26706 by quinnyyy
Replied by quinnyyy on topic Re: range in DHCP
Your default gateway is not normally set up the way up there. Try just changing the DHCP range to star at 110 and see if the Default Gateway then changes to 110 after a restart, this will tell us if its your error or the routers/firewall.
Time to create page: 0.121 seconds