0% found this document useful (0 votes)
10 views

3.0 DHCP

Uploaded by

Aka
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

3.0 DHCP

Uploaded by

Aka
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

CIT 4209 - Router and Routing Basics

DHCP
Dynamic Host Configuration Protocol (DHCP) assigns IP addresses to hosts. It allows for easier
administration and works well in small to very large network environments. Many types of
hardware can be used as a DHCP server, including a Cisco router.
Here’s a list of the most common types of information a DHCP server can provide:
- IP address
- Subnet mask
- Domain name
- Default gateway (routers)
- DNS server address
- WINS server address

This is the four-step process a client takes to receive an IP address from a DHCP server:
1. The DHCP client broadcasts a DHCP Discover message looking for a DHCP server (Port 67).
2. The DHCP server that received the DHCP Discover message sends a layer 2 unicast DHCP
Offer message back to the host.
3. The client then broadcasts to the server a DHCP Request message asking for the offered IP
address and possibly other information.
4. The server finalizes the exchange with a unicast DHCP Acknowledgment message.

1
Configuring DHCP

Step 1: Enable the DHCP function.


- The DHCP service is not enabled by default, enable the DHCP service on the router(s).
[R1]dhcp enable

Step 2: Create a global IP address pool


[R1] ip pool pool1
Info: It's successful to create an IP address pool.
[R1-ip-pool-pool1] network 10.1.0.0 mask 16
[R1-ip-pool-pool1] gateway 10.1.0.1
[R1-ip-pool-pool1] lease day 1 hour 12 (Optional)
[R1] interface fa 0/0
[R1- fa0/0]dhcp select global
[R1] ip pool pool 2
Info: It's successful to create an IP address pool.
[R1-ip-pool-pool1] network 10.4.0.0 mask 16
[R1-ip-pool-pool1] gateway 10.4.0.1
[R1-ip-pool-pool1] lease day 1 hour 12 (Optional)
[R1] interface s0/1/0
[R1- s0/1/0] dhcp select global

[R1] ip pool pool 3


Info: It's successful to create an IP address pool.
[R1-ip-pool-pool1] network 10.3.0.0 mask 16
[R1-ip-pool-pool1] gateway 10.3.0.1
[R1-ip-pool-pool1] lease day 1 hour 12 (Optional)
[R1] interface s0/0/1
[R1- s0/0/1] dhcp select global

[R1] ip pool pool 4


Info: It's successful to create an IP address pool.
[R1-ip-pool-pool1] network 10.2.0.0 mask 16
[R1-ip-pool-pool1] gateway 10.2.0.1
[R1-ip-pool-pool1] lease day 1 hour 12 (Optional)
[R1] interface s0/0/0

2
[R1- s0/0/0] dhcp select global
Question:
How can one reserve a range of ip addresses in the dhcp pool for special devices like servers?

Run the display ip pool name <name> command on the router to view the assigned IP address
pool configuration parameters.
<R1>display ip pool name pool1

You might also like