PR111234
PR111234
PRACTICAL: 11
The DHCP server assigns a client an IP address taken from a predefined scope for a given amount of
time. If an IP address is required for longer than the lease has been set for, the client must request an
extension before the lease expires. If the client has not requested an extension on the lease time, the
IP address will be considered free and can be assigned to another client. If the user wishes to change
IP address then they can do so by typing "ipconfig /release", followed by "ipconfig /renew" in the
command prompt. This will remove the current IP address and request a new one. Reservations can
be defined on the DHCP server to allow certain clients to have their own IP address (this will be
discussed a little later on). Addresses can be reserved for a MAC address or a host name so these
clients will have a fixed IP address that is configured automatically. Most Internet Service Providers
use DHCP to assign new IP addresses to client computers when a customer connects to the internet -
this simplifies things at user level.
The above diagram displays a simple structure consisting of a DHCP server and a number of client
computers on a network.
223
ENROLLMENT No : 21BEIT30122 NAME : MAITRI SHAH
The DHCP Server itself contains an IP Address Database which holds all the IP addresses available
for distribution. If the client (a member of the network with a Windows 2000 Professional/XP
operating system, for example) has "obtain an IP address automatically" enabled in TCP/IP settings,
then it is able to receive an IP address from the DHCP server.
• Dynamic allocation: A network administrator reserves a range of IP addresses for DHCP, and
each client computer on the LAN is configured to request an IP address from the DHCP
server during network initialization. The request-and-grant process uses a lease concept with a
controllable time period, allowing the DHCP server to reclaim (and then reallocate) IP
addresses that are not renewed.
• Automatic allocation: The DHCP server permanently assigns an IP address to a requesting
client from the range defined by the administrator. This is like dynamic allocation, but the
DHCP server keeps a table of past IP address assignments, so that it can preferentially assign
to a client the same IP address that the client previously had.
• Static allocation: The DHCP server allocates an IP address based on a preconfigured mapping
to each client's MAC address. This feature is variously called static DHCP assignment by DD-
WRT, fixed-address by the dhcp documentation, address reservation by Netgear, DHCP
reservation or static DHCP by Cisco and Linksys, and IP address reservation or MAC/IP
address binding by various other router manufacturers.
• Manual: where user or administrator have to insert IP address according to network range. It
is time consuming process.
224
ENROLLMENT No : 21BEIT30122 NAME : MAITRI SHAH
Steps:
1. Topology-1 Server Configuration Screen Shot (IP Assignment and DHCP Table)Topology-1
226
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
227
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
228
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-2 Screen
Shot
Steps:
229
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Router>enable
Router#configure terminal
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 10.10.10.1 255.0.0.0
Router(config-if)# no shut
Router(config-if)#exit
Router(config)#ip dhcp pool test1
Router(dhcp-config)#network 10.0.0.0 255.0.0.0
Router(dhcp-config)#default-router 10.0.0.1
Router(dhcp-config)#exit
Router(config)#ip dhcp excluded-address 10.10.10.1 10. 10.10.2
Router(config)#exit
230
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
231
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
232
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
information.
Topology-3 Server Configuration Screen Shot (IP Assignment and DHCP Table
233
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
234
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-3: Router-0 Configuration Screen Shot (IP Allocation to f0/0 & f1/0, CLI)
235
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
236
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
237
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
238
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
239
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Router 0
240
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-3: Router-0 Configuration Screen Shot (IP Allocation to f0/0 & f1/0, CLI)
241
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
242
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-3: Router-1 Configuration Screen Shot (IP Allocation to f0/0 & f1/0, CLI)
243
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
244
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
245
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
246
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Router 1
Router 2
Topology-5 Server Configuration Screen Shot (IP Assignment and DHCP Table)
247
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
248
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-5: Router-0 Configuration Screen Shot (IP Allocation to f0/0 & S3/0 & S2/0,RIP,CLI)
249
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
250
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-5: Router-1 Configuration Screen Shot (IP Allocation to f0/0 & S3/0 & S2/0,RIP,CLI)
251
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-5: Router-2 Configuration Screen Shot (IP Allocation to f0/0 & S2/0 & S3/0,RIP,CLI)
252
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
253
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
254
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
255
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
256
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Lab Exercise
1. What is scope?
3. What is IP reservation?
Sign of Faculty.
257