Wednesday, March 11, 2015

DHCP Host Pool



Cau hinh DHCP server R1:
ip dhcp pool DHCP
   network 10.1.12.0 255.255.255.0
!

De gan dia chi interface 0/0 R2 la 10.1.12.5 thuc hien nhu sau.
R2#show int f0/0
FastEthernet0/0 is up, line protocol is up
  Hardware is i82543 (Livengood), address is ca01.1018.0008 (bia ca01.1018.0008)

ca01.1018.0008 chuyen dia chi mac dinh dang cisco. Them bit 01 vao phia truoc 01ca.0110.1800.08

Tren R1 cau hinh pool DHCP_R2


R1:
ip dhcp pool DHCP_R2
   host 10.1.12.5 255.255.255.0                      //cap host dia chi nay qua DHCP voi clent-id co mac 01ca.0110.1800.08
   client-identifier 01ca.0110.1800.08
!

R2:
interface FastEthernet0/0
 ip address dhcp client-id FastEthernet0/0
 !
End


Debug dhcp detail
Sep  4 14:43:39.303: DHCP: Received a BOOTREP pkt
*Sep  4 14:43:39.303: DHCP: offer received from 10.1.12.1
*Sep  4 14:43:39.303: DHCP: SRequest attempt # 1 for entry:
*Sep  4 14:43:39.303: DHCP: SRequest- Server ID option: 10.1.12.1
*Sep  4 14:43:39.303: DHCP: SRequest- Requested IP addr option: 10.1.12.5
*Sep  4 14:43:39.307: DHCP: SRequest: 283 bytes
*Sep  4 14:43:39.307: DHCP: SRequest: 283 bytes
*Sep  4 14:43:39.307:             B'cast on FastEthernet0/0 interface from 0.0.0.0
*Sep  4 14:43:39.439: DHCP: Received a BOOTREP pkt
R2#
*Sep  4 14:43:41.187: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Sep  4 14:43:42.187: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
*Sep  4 14:43:42.471: DHCP: Sending notification of ASSIGNMENT:
*Sep  4 14:43:42.471:   Address 10.1.12.5 mask 255.255.255.0
*Sep  4 14:43:42.475: DHCP Client Pooling: ***Allocated IP address: 10.1.12.5
*Sep  4 14:43:42.491: Allocated IP address = 10.1.12.5  255.255.255.0

R2#

*Sep  4 14:43:42.491: %DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0/0 assigned DHCP address 10.1.12.5, mask 255.255.255.0, hostname R2

No comments:

Post a Comment