Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How to configure dhcp protocol in CISCO router?

user-image
Question added by Mohammed Rezaul Karim , Associate Learning Facilitator (ICT) , BRAC
Date Posted: 2014/01/16
Tarek Mabrouk  Menshawy
by Tarek Mabrouk Menshawy , Network and Security Head , CICAPITAL

Enabling the Cisco IOS DHCP Server and Relay Agent Features

Router(config)# service dhcp

Excluding IP Addresses

Router(config)# ip dhcp excluded-address low-address [high-address]

Configuring a DHCP Address Pool

Router(config)# ip dhcp pool name

Configuring the DHCP Address Pool Subnet and Mask

Router(dhcp-config)# network network-number [mask | /prefix-length]

Configuring the Domain Name for the Client

Router(dhcp-config)# domain-name domain

Configuring the IP Domain Name System Servers for the Client

Router(dhcp-config)# dns-server address [address2 ... address8]

Configuring the NetBIOS Windows Internet Naming Service Servers for the Client

Router(dhcp-config)# netbios-name-server address [address2 ... address8]

Configuring the Default Router for the Client

Router(dhcp-config)# default-router address [address2 ... address8]

Configuring the Address Lease Time

Router(dhcp-config)# lease {days [hours][minutes] | infinite}

 

For more details please check the following link or you can contact me directly

 http://www.cisco.com/en/US/docs/ios/12_2/ip/configuration/guide/1cfdhcp.html#wp1010670

MD JAVED
by MD JAVED , Jr.Network Engineer , Aerosys infotech PVT. LTD.

bro i never had work on real router bt whn i used to work n cisco packet tracer i write in config mode          

  •   (config)#ip dhcp pool TEST then
  • (dhcp-config)#netwirk(id f pool) ip address then subnet mask
  • (u can also save ips for future use by giving limits)
  • (routerdhcp-config)#exclude-address (like)172.168.10.1-172.168.10.10

Mohammed Rezaul Karim
by Mohammed Rezaul Karim , Associate Learning Facilitator (ICT) , BRAC

in different way we can configure dhcp

Mostafa Khamies Dakam
by Mostafa Khamies Dakam , Network Specialist , Libyan Fertilizer Company

First you need to create a DHCP Pool by the "ip dhcp pool" command

Then you enable the DHCP Service by the "service dhcp"

saleh al-saleh
by saleh al-saleh , Cyber Security Consultant & Sr. network Engineer , Nazaha Kuwait Anti-Corruption Authority

its easy man

for next time you can ask MR.google

to offer range of ips:

Router(config)# ip dhcp excluded-address172.16.1.100172.16.1.103

- to configer auto DHCP :

Router(config)# ip dhcp pool1

Router(dhcp-config)# network172.16.0.0 /16 ---------->16 mean "lenght"

Router(dhcp-config)# dns server172.16.1.103172.16.2.103 -------> DNS configer

 

More Questions Like This