Configure DHCP on Cisco Router. Last week we published a topic about installation and configuration of DHCP Server in. We have introduced the DHCP Server “” and told the necessary services and network protocols requirement if you don’t know the basic of DHCP Server? You must read the article first.
Create and Configure a CCNA Lab within Cisco Packet Tracer.Download the DHCP configuration in Cisco router lab of packet tracer from the end of this post or try to create your own network lab with two routers and their LAN networks and then configure it with the following step by step guide. How to Configure DHCP on Cisco Router – TechnigConfigure the Router 1 with below IP address and initial configuration. I assume you know and understand the basic router and Switch configuration clearly.
So no need to explain the functions of the basic router and switch commands line.Router enable Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z.Router(config)# hostname R1 R1(config)# interface serial 0/0/0 R1(config-if)# ip address 10.10.10.1 255.255.255.252 R1(config-if)# no shutdownR1(config-if)#clock rate 64000 R1(config-if)#For Router 2, configure the same interface serial 0/0/0 and fastEthernet 0/0 with the following commands.Router enable Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# hostname R2 R2(config)# interface serial 0/0/0 R2(config-if)# ip address 10.10.10.2 255.255.255.252 R2(config-if)# no shutdownR2(config-if)#R2(config)# interface fastEthernet 0/0 R2(config-if)# ip address 192.168.10.1 255.255.255.0 R2(config-if)#no shutdown Configure DHCP on Cisco Router Using Packet TracerLet’s configure Router 2 as DHCP Server and set the clients to get their IP address from DHCP Server in Cisco Router.In the R2 while you are in the config mode, type the command ‘ ip dhcp excluded-address 192.168.10.1 192.168.10.20‘ and then press enter. This command ‘ ip dhcp excluded-address’ will create an exclusive range of IP addresses which reserved for Network Servers and DHCP Server will not assign them to clients.The ‘ ip dhcp pool‘ command creates a pool for a network.
You can create many pools on a router for all Local area network that connected to the router. How to Configure DHCP on Cisco Router – TechnigR2 enableR2# configure terminalEnter configuration commands, one per line. End with CNTL/Z.R2(config)# ip dhcp excluded-address 192.168.10.1 192.168.10.20R2(config)# ip dhcp pool TechnigClientsR2(dhcp-config)#R2(dhcp-config)# network 192.168.10.0 255.255.255.0R2(dhcp-config)# default-router 192.168.10.1R2(dhcp-config)# dns-server 192.168.10.100R2(dhcp-config)#Now go to client setting and set the IP Configuration to DHCP and see the client get new IP address from DHCP Server. Get IP From DHCP ServerSo that’s it, configure DHCP on Cisco router within a minute!
Simple and easy. DHCP Relay on Cisco RouterRemember some DHCP options (DHCP Relay Agent) when you need to provide IP addresses from a DCHP server to clients that are outside of your network or are not in the same Local Area Network. You must use the ‘ ip helper-address‘ to forward the DHCP client requests to the remote host. DHCP Options – IP Helper-addressConfigure the R1 to relay the DHCP client request. It does not work without routing. So configure Routers with static or dynamic routing.
Here I’m testing with RIP.R1 enableR1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.R1(config)# interface fastEthernet 0/0R1(config-if)# ip helper-address 10.10.10.2R1(config-if)# exitR1(config)# router ripR1(config-router)# network 10.10.10.0R1(config-router)# network 192.168.30.0R1(config-router)# exitGo to the client IP configuration setting and see the forwarded request by DHCP Server. Forward DHCP client request on Cisco RouterHope you learn the configuration of DHCP Server on Cisco Router and Download the Packet Tracer.Related Search:Configure dhcp on cisco router interfaceConfigure dhcp on cisco router in packet tracerWhat is dhcp poolConfigure dhcp on cisco switch 2960How to configure dhcp pool on cisco switchIP dhcp excluded-addressCisco dhcp lease commandIP dhcp server.
Attention, Internet Explorer UserAnnouncement: Jive has discontinued support for Internet Explorer 7 and below.In order to provide the best platform for continued innovation, Jive no longer supports Internet Explorer 7.Jive will not function with this version of Internet Explorer. Please consider upgrading to a more recent version of Internet Explorer, or trying another browser such as Firefox, Safari, or Google Chrome.(Please remember to honor your company's IT policies before installing new software!).