Linux/보안장비 운용

DHCP 서버 설정

GGkeeper 2022. 3. 2. 15:48

실습> DHCP 서버 설정
DHCP(Dynamic Host Configuration Protocol) 는 
클라이언트가 DHCP 서버로 부터 IP주소를 요청하면 서버가 IP주소를 
클라이언트에게 할당해서 네트워크를 자동으로 설정하게 하는 프로토콜이다.

[Network Services] > [DHCP] > [+ New DHCP Server...]

Add DHCP Server
Interface: Internal
Range start: 192.168.102.100  <-- IP의 시작 주소
Range end: 192.168.102.200    <-- IP의 끝 주소
DNS server 1: 192.168.102.254
DNS server 2: x
Default gateway: 192.168.102.254
Domain:
Lease time: 600
Comment: DHCP 서버 설정


Win7 or WinXP 가 부팅 시 DHCP 서버로 부터 IP주소를 요청해서 할당을 받는다.

Win7 or WinXP 의 네트워크를 아래처럼 설정한다.
- 자동으로 IP 주소 받기
- 자동으로 DNS 서버 주소 받기 

Win7 or WinXP에서 IP주소를 할당 받았다면 
cmd -> ipconfig/all 로 확인
ping 192.168.102.254로 통신이 되는지 확인

C:\>ipconfig/all

Windows IP Configuration

        Host Name . . . . . . . . . . . . : victim_winxp
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Broadcast
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter 로컬 영역 연결:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : VMware Accelerated AMD PCNet Adapter

        Physical Address. . . . . . . . . : 00-0C-29-0E-30-1E
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 192.168.102.100
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.102.254
        DHCP Server . . . . . . . . . . . : 192.168.102.254
        DNS Servers . . . . . . . . . . . : 192.168.102.254
        Lease Obtained. . . . . . . . . . : 2022년 2월 28일 월요일 오후 3:54:45
        Lease Expires . . . . . . . . . . : 2022년 2월 28일 월요일 오후 4:04:13

C:\>ping 192.168.102.254

Pinging 192.168.102.254 with 32 bytes of data:

Reply from 192.168.102.254: bytes=32 time<1ms TTL=64
Reply from 192.168.102.254: bytes=32 time<1ms TTL=64
Reply from 192.168.102.254: bytes=32 time<1ms TTL=64
Reply from 192.168.102.254: bytes=32 time<1ms TTL=64

Ping statistics for 192.168.102.254:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

'Linux > 보안장비 운용' 카테고리의 다른 글

DNS 서버 설정  (0) 2022.03.02
Masquerading 설정  (0) 2022.03.02
WEB#1 서버 설정  (0) 2022.03.02
DNS 서버 설정  (0) 2022.03.02
시간 설정 & 로그인 시간 변경하기  (0) 2022.03.02