EXPERIMENT No-12
OBJECT: Simulation of DHCP Configuration in Cisco Router
REQUIRED SOFTWARE: Cisco Packet Tracer 8.1.1
Network Diagram
Setup this network:

Router>enable Router#config t Router(config)#int fa 0/0 Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#no shut Router(config-if)#exit Router(config)#ip dhcp pool gyancs Router(dhcp-config)#network 192.168.1.0 255.255.255.0 Router(dhcp-config)#default-router 192.168.1.1 Router(dhcp-config)#dns-server 8.8.8.8 Router(dhcp-config)#exit Router(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.5 Router(config)#exit Router#
Introduction to DHCP
When a host in a Computer Network wants to contact another host, then its pass must be a unique IP address. Whether it is LAN or WAN. We can also configure these IP addresses manually on every host.
But if the network is large enough then this approach will not work. In large networks you cannot manually assign IP addresses by going to each host pass. DHCP is used to solve this problem.
DHCP Protocol provides IP address to hosts. These IP addresses are assigned dynamically. DHCP always maintains a pool of IP addresses. When a host tries to connect to the network, it asks for an IP address request from DHCP.
DHCP provides the IP address to the host upon request. When the host leaves the network, this IP address comes back to the DHCP pool and becomes available for other Hosts.
The Dynamic Host Control Protocol is the Client / Server Protocol. Whose Port Number is 67.
Assigning an IP address to hosts is the first task of DHCP. But DHCP provides many information hosts besides IP address. A list of some such common information is given below.
-
IP address (Ex. 192.168.1.1)
-
Subnet Mask (Ex 255.255.0.0)
-
Domain Name (Ex. www.gyancs.com)
-
Default Gateway (Ex. 192.168.1.1)
-
DNS Server Address
Advantages of DHCP Protocol
Now we want to know what benefits you get from DHCP.
-
Changing the IP address in DHCP reduces the chances of errors.
-
You do not need to manage the IP address list by using DHCP. Also you do not need to manage which IP address is empty and which has been assigned. DHCP does this work automatically.
When we move the host to another network, DHCP assigns a new IP address.
Process of IP Address Configuration with DHCP
There are a few steps from requesting a host to providing an IP address. These steps are explained below.
-
First DHCP client (host) broadcasts DHCP discover message for available DHCP servers. It is used to discover the DHCP server in the message network.
-
After this, the DHCP server that receives this message sends an offer message to the client. The DHCP server shows its own existence through the offer message.
-
It then broadcasts the request message to the client server for IP address and regarding information.
-
The server then sends the information to the client via an unicast acknowledgment message.
Configuring DHCP (Dynamic Host Configuration Protocol)
DHCP server has an important role in any network. When we DHCP server can be configured on a router or switch. If you do DHCP server configuration then we should have the following information.
Requirements
-
We should have a network ID. If you do not define the network ID of a subnet, then by default all the addresses are assigned.
-
We should know which IP addresses are already being used. Such as any addresses that are being used for printers, routers or other purposes. Such IP addresses are exclude in the DHCP configuration.
-
We should also know the IP address of the default router (default gateway) of the network.
You must also know the IP address of the DNS (Domain Name System) server.
Based on the above information, which is required to configure any DHCP server. The following steps are given to configure the DHCP server below. You can easily configure DHCP by following these steps.
Steps
-
We first exclude addresses that are already being used or reserved for another purpose.a
-
After that you create a pool with unique name for the subnet.
-
After this, we set the network ID and subnet mask that will be used to assign IP addresses to Server Hosts.
-
After this we do the address setting of the default gateway.
-
Then later do the address setting of the DNS server.
If we do not want to use the lease time in advance, then we can set the lease time in days, hours and minutes.
Example
Which is as follows?
router(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.5
router(config)#ip dhcp pool gyancs
router(dhcp-config)#network 192.168.1.1 255.255.255.0
router(dhcp-config)#default-router 192.168.1.1
router(dhcp-config)#dns-server 8.8.8.8
See from the example above that the range of IP address is first exclude. After this a DHCP pool named gyancs has been created.
Later the network and subnet mask is given. Network is defined by NID. After this the default gateway and DNS server are defined.
Download Cisco Packet Tracer 6.22
Download Cisco Packet Tracer 8.1.1
MCQ-SET 1
Quiz-summary
0 of 30 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
Information
Dear Students, This Purpose of Preparation of Computer Network Online Test is in 30 Questions English. There is a collection of questions asked in the CCNA Exam. On answering each question one point will be given. And it is mandatory to bring 50% marks to pass. To start the test you have to click on Start Button. All the questions will have to be answered. Go to Last and click on Finish Button, after which your Result will appear on the screen. After clicking Finish, there will be three option shows below 1.Restart Quiz 2.View Question 3.Show Leader-board. After filling your name and e-mail id by clicking on the show leader-board, click on send, after which your result will be shown.
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 30 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
| Average score |
|
| Your score |
|
Categories
- Not categorized 0%
-
Thanks for attend this Quiz
| Pos. | Name | Entered on | Points | Result |
|---|---|---|---|---|
| Table is loading | ||||
| No data available | ||||
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- Answered
- Review
-
Question 1 of 30
1. Question
1 pointsThe ________ flag indicates the availability of a router.
Correct
Incorrect
-
Question 2 of 30
2. Question
1 pointsFor a direct delivery, the ________ flag is on
Correct
Incorrect
-
Question 3 of 30
3. Question
1 pointsThe process of converting analog signals into digital signals so they can be processed by a receiving computer is referred to as __________
Correct
Incorrect
-
Question 4 of 30
4. Question
1 pointsUser datagram protocol is called connectionless because
Correct
Incorrect
-
Question 5 of 30
5. Question
1 pointsWhich of the following does not allow multiple users or devices to share one communication line?
Correct
Incorrect
-
Question 6 of 30
6. Question
1 pointsAfter coding a document into a digital signal, it can be sent by telephone, telex or satellite to the receiver where the signal is decoded and an exact copy of the original document is made. What is it called?
Correct
Incorrect
-
Question 7 of 30
7. Question
1 pointsVideotex is a combination of _______
Correct
Incorrect
-
Question 8 of 30
8. Question
1 pointsUsually it takes 10 bits to represent one character. How many characters can be transmitted at a speed of 1200 bps?
Correct
Incorrect
-
Question 9 of 30
9. Question
1 pointsWho invented the modem?
Correct
Incorrect
-
Question 10 of 30
10. Question
1 pointsIn the domain name chal.atc.fhda.edu _______ is the most specific label
Correct
Incorrect
-
Question 11 of 30
11. Question
1 pointsIn the domain name chal.atc.fhda.edu ________ is the least specific label
Correct
Incorrect
-
Question 12 of 30
12. Question
1 pointsIdentify the Odd term among the following group
Correct
Incorrect
-
Question 13 of 30
13. Question
1 pointsWhich is not an example for analog communication __________
Correct
Incorrect
-
Question 14 of 30
14. Question
1 pointsWhich one of the following is a transport layer protocol used in internet?
Correct
Incorrect
-
Question 15 of 30
15. Question
1 pointsWhich among the following is not a guided transmission media?
Correct
Incorrect
-
Question 16 of 30
16. Question
1 pointsAn example of a medium- speed, switched communications service is _________
Correct
Incorrect
-
Question 17 of 30
17. Question
1 pointsIn address-to-name resolution the _______ domain is used
Correct
Incorrect
-
Question 18 of 30
18. Question
1 pointsWhich of the following is an advantage to using fiber optics data transmission?
Correct
Incorrect
-
Question 19 of 30
19. Question
1 pointsThe _______ houses the switches in token ring.
Correct
Incorrect
-
Question 20 of 30
20. Question
1 pointshe 4 byte IP address consists of
Correct
Incorrect
-
Question 21 of 30
21. Question
1 points_____________ specifies a star topology featuring a central hub and unshielded twisted-pair wire as the medium.
Correct
Incorrect
-
Question 22 of 30
22. Question
1 pointsphysical layer provides
Correct
Incorrect
-
Question 23 of 30
23. Question
1 pointsThe most efficient medium for ATM is _____________
Correct
Incorrect
-
Question 24 of 30
24. Question
1 pointsWhich of the following is a wrong example of network layer?
Correct
Incorrect
-
Question 25 of 30
25. Question
1 pointsWhen a light beam moves to a less dense medium, the angle of refraction is _______ the angle of incidence.
Correct
Incorrect
-
Question 26 of 30
26. Question
1 pointsWhich transmission media has the highest transmission speed in a network?
Correct
Incorrect
-
Question 27 of 30
27. Question
1 points10 Base 5 uses the _______ cable.
Correct
Incorrect
-
Question 28 of 30
28. Question
1 pointsWhen talking about unguided media, usually it is referred to
Correct
Incorrect
-
Question 29 of 30
29. Question
1 pointsThe _______ is the physical path by which a message travels from sender to receiver
Correct
Incorrect
-
Question 30 of 30
30. Question
1 pointsTwisted-pair wire, coaxial cable, and fiber-optic cable are all types of _______
Correct
Incorrect
MCQ-SET 2
session layer
None of the these
half duplex
3
network layer
DTE/DCE interface
VDR
2
5
100 microwatts
bipolar
Full duplex.
gearshift
transponders
adaptive
Computer bus
unknown
between peers
Process-To-Process Message Delivery
allow just a portion of a file to be resent
port
IP
In-service expansion
directionalized transmission
To detect problems in protocol
PAS
128
light
more dense than
glass or plastic
