Limetime's TimeLine
article thumbnail
반응형

DHCP (Dynamic Host Configuration Protocol)


- PC나 호스트가 자신의 IP주소를 항상 가지고 있는 것이 아니라, 부팅이 되면서 DHCP 서버로부터 다이나믹하게 IP주소를 받아 오는 것이다.

반응형
RouterA(config)# service dhcp
RouterA(config)# ip dhcp pool CCNA
RouterA(dhcp-config)# network 210.240.10.0 255.255.255.0
RouterA(dhcp-config)# default-router 210.240.10.1
RouterA(dhcp-config)# ?
	DHCP Pool Configuration Commands:
    	bootfile				Boot file name
        client-identifier		Client identifier
        client-name				Client name
        default-router			Default routers
        dns-server				DNS Servers
        domain-name				Domain Name
        exit					Exit from DHCP pool configuration mode
        hardware-address		Client hardware address
RouterA(dhcp-config)# exit
RouterA(config)# ip dhcp excluded-address 210.240.10.1
RouterA(config)# ip dhcp excluded-address 210.240.10.100

- service dhcp : 라우터에서 DHCP 서버나 에이전트를 Enable 해주는 명령어다. (Default가 Enable이다.)

- ip dhcp pool CCNA : DHCP pool(영역)의 이름을 CCNA

- network 210.240.10.0 255.255.255.0 : IP주소의 범위(210.240.10.1 ~ 254까지)

- default-router 210.240.10.1 : 호스트가 내부 네트워크에서 목적지를 찾지 못했을 때 보내는 라우터의 IP주소 (필수!)

- ip dhcp excluded-address 210.240.10.1 : 라우터의 이더넷 포트 IP주소 제외

- ip dhcp excluded-address 210.240.10.100 : 서버의 고정 IP로 줄 주소 제외

 

show ip dhcp binding

 

show ip dhcp server statistics

*DHCP를 라우터로 구동하게 되면 부담을 많이 받기 때문에 SOHO같은 소규모 네트워크에 적용하는 것이 바람직하다.

반응형
profile

Limetime's TimeLine

@Limetime

포스팅이 좋았다면 "공감❤️" 또는 "구독👍🏻" 해주세요!