howtonetwork.net

Cisco Certification Training

  • Products
  • CCNA
    • CCNA Videos
    • CCNA Lectures
    • CCNA Practice Exams
    • Challenge Labs
      • Challenge Video Solutions
    • Cisco Commands
  • CCNP ROUTE
    • ROUTE Exams
  • CCNP SWITCH
    • SWITCH Exams
  • CCNP TSHOOT
  • Home
  • Join
  • Downloads
  • About Us
  • Whitepapers
  • Feature Articles
  • Helpdesk
  • FAQ
  • Free Training
You are here: Home / IP DHCP Pool

IP DHCP Pool

Command

IP DHCP Pool

Use

This command enables DHCP services on the router and specifies the various DHCP options the server will assign to clients.

Syntax

Router(config)#ip dhcp pool <name>

Options

<network> network addresses that the DHCP pool may assign, this supports slash notation. Ex network 192.168.1.0 255.255.255.0 or network 192.168.1.0 /24

<domain-name> sets a domain-name the DHCP server will assign to clients.
<dns-server> Sets DNS servers that the DHCP server will assign to clients.
<default-router> Sets the default gateway that the DHCP server will assign clients.

Example

simple

In the below example we will configure R2 to provide DHCP services for R1

First we configure the DHCP server with ip dhcp pool

R2(config)#ip dhcp pool R1_Pool
R2(dhcp-config)#network 10.1.1.0 /24
R2(dhcp-config)#dns-server 4.2.2.2
R2(dhcp-config)#default-router 10.4.4.1
R2(dhcp-config)#exit

Currently R1’s Fa0/0 does not have an IP address

R1(config-if)#do show ip interface brief | ex unass
Interface IP-Address OK? Method Status Protocol
Serial1/0 10.4.4.1 YES manual up up
Loopback0 10.0.0.1 YES manual up up

After we configure ip address dhcp on R1’s Fa0/0 it receives an IP address of 10.1.1.1

R1(config)#int fa0/0
R1(config-if)#ip address dhcp
R1(config-if)#
*Mar 1 00:40:36.339: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 10.1.1.2 (FastEthernet0/0) is down: address changed

R1(config-if)#
*Mar 1 00:41:20.339: %DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0/0 assigned DHCP address 10.1.1.1, mask 255.255.255.0, hostname R1

R1(config-if)#
*Mar 1 00:41:21.567: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 10.1.1.2 (FastEthernet0/0) is up: new adjacency
R1(config-if)#

Get access to over 5 hours of IT webinar videos as well as regular study tips and ideas when you
join our mailing list

About This Site

We replaced this site some time ago with an upgraded version. Please feel free to enjoy the content and if you like what you see check out our brilliant new site:

howtonetwork.com

Keep In Touch

About Us

This is a free access website which has now been replaced by howtonetwork.com.

Navigation

  • Home
  • Join
  • Downloads
  • About Us
  • Whitepapers
  • Feature Articles
  • Helpdesk
  • FAQ
  • Free Training

Copyright

All content is protected by international copyright laws. Copyright Reality Press Ltd.

Copyright © 2023 · Dynamik Website Builder on Genesis Framework · WordPress · Log in