Skip to main content

How to configure DHCP Service on Cisco Router


The Dynamic Host Configuration Protocol (DHCP) is a network protocol used to configure devices that are connected to a network so they can communicate on that network using the Internet Protocol (IP). The protocol is implemented in a client-server model, in which DHCP clients request configuration data, such as an IP address, a default gateway, and one or more DNS server addresses from a DHCP server.


This tutorial will walk you through configuring a Cisco Router to server as a DHCP server for client computers.


Commands:

R1>enable
R1#conf t
R1(config)#service dhcp                                     >   Enables DHCP

R1(config)#ip dhcp pool mydhcp                                >   Create a DHCP pool
R1(dhcp-config)#network 192.168.100.0 255.255.255.0             >    The network used to get IP address from Router
R1(dhcp-config)#default-router 192.168.100.254                   >   Default gateway of Hosts
R1(dhcp-config)#dns-server 192.168.100.250                    >   DNS Server of Hosts
R1(dhcp-config)#exit
R1(config)#
R1(config)#ip dhcp excluded-address 192.168.100.1 192.168.100.50                 >   The address that we want to excluded from DHCP pool. These address never been used by Router to lease.
R1(config)#exit
R1#

Below the Configuration in exhibit.

image



In Host, type the command ipconfig /release in order to release the old IP address. And type ipconfig /renew to get the IP address from Cisco Router

HostA-2013-09-21-20-54-38

Comments

  1. Nice explanation, one question though when you exclude ip addresses do you define the range or the actual IPs?
    in the example above are both IPs 192.168.100.1 and 192.168.100.50 excluded or all the 50 IPs in that range?

    ReplyDelete
  2. Look at the command prompt, its the first pc to get its ip address > 192.168.1.51.

    ReplyDelete
  3. Commands+video guide is the best in this case.

    ReplyDelete
  4. While some might argue that their solid carbide construction is superfluous, they are durable and deliver beautiful results. speed wifi router

    ReplyDelete
  5. Is it true that you are utilizing your router to its full capacity? In the event that you've been a standard internet client, you may have eventually gone over a numerical portrayal like 192.168.1.1. This article clarifies what 192.168.1.1 is and fills in as a fundamental guide on the most proficient method to tackle it while accessing the internet.

    You can consider it an online address. Every gadget associated with the internet should have a remarkable address, which will empower successful trade of information between the gadget and the remainder of the computerized world. This is like the one of a kind 10.0.0.0.1 address/email/phone number that we each need to trade correspondence.

    On the internet, this address is known as the 192.168.10.1 Internet Protocol (IP) address. In a run of the mill home network, the router will allocate an IP address to every gadget associated with it. It has its own IP as well (router IP). A specific scope of IP addresses has been held for private networks, for example, homes, Local Area Networks (LAN)/Wireless Area Networks (WAN) within a venture, etc. These IP addresses can't be alloted to an openly accessible site (internet locales). These extents are:

    ReplyDelete

Post a Comment

Popular posts from this blog

Cisco Packet Tracer Multi User Connection

Multiuser communication allows multiple point-to-point (peer) connections between multiple instances of Packet Tracer. By allowing communication between Packet Tracer instances, a new door has been opened to a fun, interactive, social, collaborative, and competitive learning environment. Instructors will now be able to create a variety of activities for students to learn in groups that will facilitate greater social interaction between students. Students will benefit from this environment by working together to solve problems and share ideas. Both students and teachers should take full advantage that Multiuser will offer in their learning environment. Technical Information Communicates between instances using PTMP. PTMP is TCP based. By default, uses TCP port 38000, is customizable, and each new instances on the same PC will use the next available port. On by default. UPnP will attempt to establish port forwarding to facilitate home networks. All network co...

Access Control List (ACL) Simlet

An administrator is trying to ping and telnet from Switch to Router with the results shown below: For this question we only need to use the show running-config command to answer all the questions below: Router>enable Router#show running-config   Question 1 Which will fix the issue and allow ONLY ping to work while keeping telnet disabled? A. Correctly assign an IP address to interface fa0/1 B. Change the ip access-group command on fa0/0 from “in” to “out” C. Remove access-group 106 in from interface fa0/0 and add access-group 115 in. D. Remove access-group 102 out from interface s0/0/0 and add access-group 114 in E. Remove access-group 106 in from interface fa0/0 and add access-group 104 in Answer : E Explanation: The question was not about FTP so skip line #1 and line #2. The line #3 denies telnet traffic and line #4 permits icmp-echo traffic. L...

Host A pings interface S0/0 on router 3. What is the TTL value for that ping?

Refer to the exhibit. Host A pings interface S0/0 on router 3. What is the TTL value for that ping? A. 252 B. 253 C. 254 D. 255 Answer : B Explanation: The TTL or Time-To-Live gives you an indication of the number of routers between the source and destination. The TTL is used to prevent an IP packet from looping inside an IP network and causing a network meltdown. The initial TTL packet value for an IP packet is 255 and then it is decremented by 1 each time it encounters a router. When this value reaches 0, the packet is discarded by a router. The TTL value is contained in each IP packet including ICMP packets. The TTL value given by the ping command is in fact the TTL value of an echo_response packet. By default, Windows will decrease the TTL by 128 and Ubuntu Linux by 192. The above the exact topology of this questions. I used 10.0.0.1 for Host A’s IP address and 12.0.0.2 for R3 S0/0’s IP address. All router has been config...