CISCO Router

DHCP Server Configuration

F.xavier 2016. 5. 15. 03:30

 

router 에서 DHCP 서버를 구성해주기 위해서 다음 명령을 입력해 주어야 합니다.

   

Router#conf t

Enter configuration commands, one per line. End with CTRL/Z.

Router(config)#service dhcp

   

즉, router에서 DHCP 서버나 전달 에이전트를 Enable 해주는 명령입니다. default 값이 Enable

이기 때문에 특별히 해주지 않아도 되지만 확실히 해주기 위해 넣었습니다.

그 다음은

   

Router(config)# ip dhcp pool test   -> DHCP 주소의 Pool 이름 지정

Router(dhcp-config)#network 192.168.10.0 255.255.255.0  -> DHCP 주소의 IP Pool 지정 (1~254)

Router(dhcp-config)#default-router 192.168.10.1  -> default router 지정

   

이제는 현재 사용하는 주소를 제외시켜야 합니다.

   

Router(dhcp-config)#ip dhcp excluded-address 192.168.10.1  -> router IP

Router(dhcp-config)#ip dhcp excluded-address 192.168.10.100 -> Server IP 인 경우

   

router 에서 현재 배정해준 IP 주소 확인 방법

   

Router#sh ip dhcp binding

.

.

   

현재 DHCP Server로 돌아가고 있는 router 상태 확인 방법

   

Router#sh ip dhcp server statistics

.