Dhcp scope
tsftsf
Member Posts: 7 ■□□□□□□□□□
in CCNA & CCENT
Hi all,
i'm preparing for CCNA ICND1 exam.
I read about configuring the router to provide DHCP IP Address to clients, DNS Server, Def Gateway & Excluding add on the ROUTER
Is there any way to define scope on the router
e.g. DHCP SCope = 192.168.1.20 - 192.168.1.100
Excluded Range is 192.168.1.1 - 192.168.1.10
DNS Server = 192.168.1.5
Default Gateway = 192.168.1.1
I'm not finding a way to add a scope in the router
Using Cisco packet tracer for lab.
i'm preparing for CCNA ICND1 exam.
I read about configuring the router to provide DHCP IP Address to clients, DNS Server, Def Gateway & Excluding add on the ROUTER
Is there any way to define scope on the router
e.g. DHCP SCope = 192.168.1.20 - 192.168.1.100
Excluded Range is 192.168.1.1 - 192.168.1.10
DNS Server = 192.168.1.5
Default Gateway = 192.168.1.1
I'm not finding a way to add a scope in the router
Using Cisco packet tracer for lab.
Comments
-
powmia Users Awaiting Email Confirmation Posts: 322
-
oli356 Member Posts: 364You will do this using excluded-addresses.
ip dhcp excluded-address .............
Think that is the syntax.Lab:
Combination of GNS3 and Cisco equipment if required. -
SharkDiver Member Posts: 844Does this help at all?
ip dhcp excluded-address 10.10.10.1 10.10.10.200
ip dhcp excluded-address 10.10.10.240 10.10.10.255
!
ip dhcp pool dhcppool
network 10.10.10.0 255.255.255.0
domain-name mydomain.com
default-router 10.10.10.254
dns-server 10.10.10.253
The entire scope is set with the network command.
Then anything you don't want in the scope must be excluded.
So anything that begins with 10.10.10 is set to be given out because of the 255.255.255.0 mask, and everything from 1 to 200 and 240 to 255 are excluded, so it will hand out 10.10.10.201 to 10.10.10.239.