Anda di halaman 1dari 20

DHCP AND ARP

ICND1 v1.04-1

Understanding DHCP
DHCP is built on a client-server model, as follows:
o The DHCP server hosts allocate network addresses and deliver configuration parameters.

DHCP supports these three mechanisms for IP address allocation:


o Automatic allocation; DHCP assigns a permanent IP address to a client. o Dynamic allocation; DHCP assigns an IP address to a client for a limited period of time. o Manual allocation; A client IP address is assigned by the network administrator, and DHCP is used simply to convey the assigned address to the client.

o The term "client" refers to a host requesting initialization parameters from a DHCP server.

Dynamic allocation is the only that allows automatic reuse of an


address that is no longer needed by the client to which it was

ICND1 v1.04-2

DHCP

ICND1 v1.04-3

Using a Router as a DHCP Server


Cisco IOS Software includes a full DHCP server implementation:
router

Assigns IP addresses from specified address pools within the


Can be configured to assign the IP address of these components:
o Domain Name System (DNS) server

o Default router

ICND1 v1.04-4

DHCP Server Using a Router

ICND1 v1.04-5

Additional Tasks

ICND1 v1.04-6

DHCP Pool

ICND1 v1.04-8

Checking the DHCP Configuration

ICND1 v1.04-10

DHCP Pool Status

ICND1 v1.04-12

show ip dhcp conflict

RouterX# show ip dhcp conflict IP address Detection Method Detection time Feb 23 2007 08:12 AM

172.16.1.32 Ping

Feb 16 2007 12:28 PM

172.16.1.64 Gratuitous ARP

ICND1 v1.04-14

ARP operation
ARP Table:

MAC A.B.C.1.2.3

MAC

IP
197.15.22.33

IP
197.15.22.35

Data

197.15.22.33

197.15.22.34

197.15.22.35

A.B.C.1.3.3

A.B.C.4.3.4

A.B.C.7.3.5

ICND1 v1.04-15

ARP operation: ARP request


MAC A.B.C.1.3.3 MAC ff.ff.ff.ff.ff.ff

IP
197.15.22.3 3

IP
197.15.22.3 5

What is your MAC Addr?

197.15.22.33

197.15.22.34

197.15.22.35

A.B.C.1.3.3

A.B.C.4.3.4

A.B.C.7.3.5

C
ICND1 v1.04-16

ARP operation: Checking


MAC A.B.C.1.3.3 MAC ff.ff.ff.ff.ff.ff

IP
197.15.22.3 3

IP
197.15.22.3 5

What is your MAC Addr?

That is my IP !

197.15.22.33

197.15.22.34

197.15.22.35

A.B.C.1.3.3

A.B.C.4.3.4

A.B.C.7.3.5

C
ICND1 v1.04-17

ARP operation: ARP reply


MAC A.B.C.1.3.3 MAC ff.ff.ff.ff.ff.ff

IP
197.15.22.3 3

IP
197.15.22.3 5

What is your MAC Addr?

ARP Reply

197.15.22.33

197.15.22.34

197.15.22.35

A.B.C.1.3.3

A.B.C.4.3.4

A.B.C.7.3.5

C
ICND1 v1.04-18

ARP operation: Caching


ARP Table:
A.B.C.7.3.5 197.15.22.35

MAC A.B.C.1.3.3

MAC A.B.C.7.3. 5

IP
197.15.22.3 3

IP
197.15.22.3 5

Data

197.15.22.33

197.15.22.34

197.15.22.35

A.B.C.1.3.3

A.B.C.4.3.4

A.B.C.7.3.5

ICND1 v1.04-19

ICND1 v1.04-20