Sunteți pe pagina 1din 8

DHCP

PC1 10.0.0.1

10.0.0.254
DHCP DHCP
f0/1 NAT Internet
server server

10.0.0.2
PC2
DHCP client
10.0.0.3 - 127

10.0.0.3 DHCP
Server 10.0.0.1
1
0 .0.3
t
a))
s 1)0.
t
da
at
ac t
cs
s)
o
i
bna
c
rid
a
ocs
(
R(ub u
(r
(n
F
OES
C
VET
K
ER
FA
OCU
DRIESQ

0.0.0.0 A
10.0.0.3

) 3
d
s c
ta)st .0.0.
b
ni ca t)10
ro
(
u s
O
FV
F ER( oadca
C
O r
DIS EST(b
U
REQ
DHCP
Server 10.0.0.2
10.0.0.128 2

10.0.0.128 - 254
DHCP Process

DHCP 10.0.0.1 DHCP


client server

0.0.0.0:68 Discover 255.255.255.255:67

Offer 10.0.0.1:67

0.0.0.0:68 Request 255.255.255.255:67

Ack 10.0.0.1:67
DHCP Process

DHCP 10.0.0.1 DHCP


client server

Discovery

0000.0000.1111 Offer 0000.0000.2222

Request

0000.0000.1111 Ack 0000.0000.2222


Automatic allocation

R(config)# ip dhcp excluded-address 10.0.0.253 10.0.0.254

R(config)# ip dhcp pool LAN1


R(dhcp-config)# network 10.0.0.0 255.255.255.0
R(dhcp-config)# default-router 10.0.0.254
PC1 R(dhcp-config)# dns-server 8.8.8.8
R(dhcp-config)# lease [ngay] [gi] [phut]

10.0.0.254
10.0.0.253 f0/1 DHCP Internet
Server

R(config)# service dhcp


10.0.0.1-252
PC2
10.0.0.1

R# show ip dhcp binding


Bindings from all pools not associated with VRF:
IP address Client-ID/ Lease expiration Type
Hardware address/
User name
10.0.0.1/24 0800.0000.1111 Mar 29 2015 04:36 AM Automatic
Static allocation

R(config)# ip dhcp pool LAN1


R(dhcp-config)# network 10.0.0.0 255.255.255.0
R(dhcp-config)# default-router 10.0.0.254
PC1 R(dhcp-config)# dns-server 8.8.8.8
R(dhcp-config)# lease [ngay] [gi] [phut]

10.0.0.254
tftp 10.0.0.1
10.0.0.253 f0/1 DHCP Internet
server Server
08-00-00-00-11-11

ip dhcp pool H1
PC2 host 10.0.0.1 255.255.255.0
client-identifier 0108.0000.0011.11
default-router 10.0.0.254
dns-server 8.8.8.8
lease [ngay] [gi] [phut]

01 identify Ethernet LAN, not Token Ring


Relay Agent

relay(config-if)# ip helper-address 10.0.10.254


ip dhcp pool LAN1
network 10.0.0.0 255.255.255.0
default-router 10.0.0.1

ip dhcp pool LAN1


PC1
DHCP network 10.0.0.0 255.255.255.0
10.0.0.1 Server
Relay default-router 10.0.0.1

10.0.10.254
C:\> ipconfig /release f0/1 DHCP
NAT f0/0 Internet
C:\> ipconfig /renew Server

20.0.0.1 DHCP
NAT(config-if)#
ip dhcp pool LAN2
ip address dhcp
PC2 network 20.0.0.0 255.255.255.0
Server
Relay
default-router 20.0.0.1

ip dhcp pool LAN2


network 20.0.0.0 255.255.255.0
relay(config-if)# ip 20.0.0.1
default-router helper-address 10.0.10.254

S-ar putea să vă placă și