kjh00n의 기록저장소

DHCP 실습 본문

시스템 보안 구축

DHCP 실습

kjh00n 2024. 11. 4. 16:15


R1

int fa 0/0

ip addr 100.100.100.254 255.255.255.0

no shu

ip helper-address 20.20.20.1

int fa 0/1

ip addr 150.150.150.254 255.255.255.0

no shu

ip helper-address 20.20.20.1

int fa 1/0

ip addr 200.200.200.254 255.255.255.0

no shu

ip helper-address 20.20.20.1

int fa 2/0

ip addr 10.10.10.1 255.255.255.0

no shu

ip route 0.0.0.0 0.0.0.0 10.10.10.2

 

R2

int fa 2/0

ip addr 10.10.10.2 255.255.255.0

no shu

int fa 0/0

ip addr 20.20.20.254 255.255.255.0

no shu

 

Linux

yum -y install dhcp-server (VMnet8에서 다운로드 후에 VMnet1로 변경)

/etc/dhcp/dhcpd.conf
/etc/sysconfig/network-scripts/ifcfg-ens160


결과

Server에서 PC로 PING통신 가능

PC에서 Server로 PING통신 가능


Router에 DHCP설정하기

int fa 0/0에 ip addr 10.10.10.254 255.255.255.0하고 no shu

Pool과 Scope의 정의

꼭 global configuration에서 dhcp를 설정할 것

ip dhcp pool KH에서 KH는 pool의 이름 설정이다.

그리고 pool을 설정해주고 default-router는 GW설정이다.

그 다음 dns 서버 설정을 해주고 class scope에서 scope는 scope를 설정할 이름이다.

그 다음 scope의 범위를 설정해주면 된다.

do sh ip dhcp binding
do sh ip dhcp pool

※Router에는 DHCP를 설정하는 것은 좋은 방법은 아니다.통신을 위한 장비인데 DHCP를 설정하면 자원을 먹어서 느려짐

'시스템 보안 구축' 카테고리의 다른 글

FTP 명령어 및 구축  (0) 2024.11.05
FTP  (0) 2024.11.05
Relay Agent 정의 / 실습  (0) 2024.11.04
DHCP 설정 실습  (0) 2024.11.04
DHCP 정의  (0) 2024.11.04