1. DHCP Pool Static Client Configuration 구성도
1) DHCP Pool Static Client Configuration 구성도
- DHCP 기본 개념, DHCP 동작 과정, DHCP Basic Configuration을 먼저 학습하는 것을 권고
2) 테스트 장비
- Emulator : EVE-NG
- OS : Juniper vMX 18.2R1.9
2. DHCP Pool Static Client Configuration
1) DHCP Server IRB Configuration
더보기
< DHCP-SERVER : VLAN 설정 >
set bridge-domains VLAN10 vlan-id 10
set bridge-domains VLAN10 routing-interface irb.10
< DHCP-SERVER : Interface 설정 >
set interfaces ge-0/0/0 unit 0 family bridge interface-mode access
set interfaces ge-0/0/0 unit 0 family bridge vlan-id 10
set interfaces ge-0/0/1 unit 0 family bridge interface-mode access
set interfaces ge-0/0/1 unit 0 family bridge vlan-id 10
set interfaces irb unit 10 family inet address 10.0.0.1/24
2) DHCP Pool Configuration
< DHCP-SERVER : Pool 설정 >
set access address-assignment pool POOL-10 family inet network 10.0.0.0/24
set access address-assignment pool POOL-10 family inet range RANGE-1 low 10.0.0.100
set access address-assignment pool POOL-10 family inet range RANGE-1 high 10.0.0.200
set access address-assignment pool POOL-10 family inet dhcp-attributes maximum-lease-time 120
set access address-assignment pool POOL-10 family inet dhcp-attributes domain-name JUNIPER.NET
set access address-assignment pool POOL-10 family inet dhcp-attributes name-server 8.8.8.8
set access address-assignment pool POOL-10 family inet dhcp-attributes name-server 8.8.4.4
set access address-assignment pool POOL-10 family inet dhcp-attributes wins-server 100.0.0.2
set access address-assignment pool POOL-10 family inet dhcp-attributes wins-server 100.0.0.3
set access address-assignment pool POOL-10 family inet dhcp-attributes router 10.0.0.1
set access address-assignment pool POOL-10 family inet dhcp-attributes boot-file /A/B/C
set access address-assignment pool POOL-10 family inet dhcp-attributes tftp-server 100.0.0.1
set access address-assignment pool POOL-10 family inet excluded-range RANGE-1 low 10.0.0.100
set access address-assignment pool POOL-10 family inet excluded-range RANGE-1 high 10.0.0.150
set access address-assignment pool POOL-10 family inet host CLIENT-1 hardware-address 50:00:00:1e:00:02 ## Static IP Address를 구성할 Client MAC Address를 구성
set access address-assignment pool POOL-10 family inet host CLIENT-1 ip-address 10.0.0.200 ## 위에서 설정한 Client에게 할당할 IP Address를 설정
- Cisco와 달리 Juniper는 하나의 Pool에 Static Host 설정 가능
- 위에서 설정한 MAC Address를 가진 클라이언트가 Discover 메시지 전송 시, 해당 IP Address를 할당
< DHCP-SERVER : DHCP Server Interface 설정 >
set system services dhcp-local-server group LOCAL-SERVER interface irb.10
3) DHCP CLIENT-1 Configuration(Static Pool)
< CLIENT-1 : DHCP IP Address 설정 >
set interfaces ge-0/0/0 unit 0 family inet dhcp
- 클라이언트가 처음 Discover 메시지에 Broadcast Flag를 1로 전송하여 Offer 및 Ack 메시지를 Broadcast로 전송
- 클라이언트는 IP Address를 할당받고 충돌이 발생하는지 확인하기 위해 GARP Request를 전송
- Allocation, Renewal, Rebinding, Release 동작 때 발생하는 메시지도 일반적인 DHCP 메시지와 동일
- 서버는 Discover 메시지의 Client MAC Address 부분을 확인하여 미리 설정한 IP Address를 할당
4) DHCP CLIENT-2 Configuration
< CLIENT-2 : DHCP IP Address 설정 >
set interfaces ge-0/0/0 unit 0 family inet dhcp
- 클라이언트가 처음 Discover 메시지에 Broadcast Flag를 1로 전송하여 Offer 및 Ack 메시지를 Broadcast로 전송
- 클라이언트는 IP Address를 할당받고 충돌이 발생하는지 확인하기 위해 GARP Request를 전송
5) DHCP CLIENT-1 확인
root@CLIENT-1> show route
inet.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[Access-internal/12] 00:06:32, metric 0
> to 10.0.0.1 via ge-0/0/0.0
10.0.0.0/24 *[Direct/0] 00:06:33
> via ge-0/0/0.0
10.0.0.200/32 *[Local/0] 00:06:33
Local via ge-0/0/0.0
root@CLIENT-1> show dhcp client binding
IP address Hardware address Expires State Interface
10.0.0.200 50:00:00:1e:00:02 71 BOUND ge-0/0/0.0
root@CLIENT-1> show dhcp client binding detail
Client Interface/Id: ge-0/0/0.0
Hardware Address: 50:00:00:1e:00:02
State: BOUND(LOCAL_CLIENT_STATE_BOUND)
Lease Expires: 2024-11-25 13:41:22 UTC
Lease Expires in: 68 seconds
Lease Start: 2024-11-25 13:39:22 UTC
Server Identifier: 10.0.0.1
Client IP Address: 10.0.0.200
Update Server No
DHCP options:
Name: dhcp-lease-time, Value: 2 minutes
Name: server-identifier, Value: 10.0.0.1
Name: router, Value: [ 10.0.0.1 ]
Name: name-server, Value: [ 8.8.8.8, 8.8.4.4 ]
Name: boot-file, Value: /A/B/C
Name: subnet-mask, Value: 255.255.255.0
Name: domain-name, Value: JUNIPER.NET
Name: wins-server, Value: [ 100.0.0.2, 100.0.0.3 ]
6) DHCP CLIENT-2 확인
root@CLIENT-2> show route
inet.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[Access-internal/12] 00:01:35, metric 0
> to 10.0.0.1 via ge-0/0/0.0
10.0.0.0/24 *[Direct/0] 00:01:36
> via ge-0/0/0.0
10.0.0.151/32 *[Local/0] 00:01:36
Local via ge-0/0/0.0
root@CLIENT-2> show dhcp client binding
IP address Hardware address Expires State Interface
10.0.0.151 50:00:00:31:00:02 73 BOUND ge-0/0/0.0
root@CLIENT-2> show dhcp client binding detail
Client Interface/Id: ge-0/0/0.0
Hardware Address: 50:00:00:31:00:02
State: BOUND(LOCAL_CLIENT_STATE_BOUND)
Lease Expires: 2024-11-25 13:41:34 UTC
Lease Expires in: 68 seconds
Lease Start: 2024-11-25 13:39:34 UTC
Server Identifier: 10.0.0.1
Client IP Address: 10.0.0.151
Update Server No
DHCP options:
Name: dhcp-lease-time, Value: 2 minutes
Name: server-identifier, Value: 10.0.0.1
Name: router, Value: [ 10.0.0.1 ]
Name: name-server, Value: [ 8.8.8.8, 8.8.4.4 ]
Name: boot-file, Value: /A/B/C
Name: subnet-mask, Value: 255.255.255.0
Name: domain-name, Value: JUNIPER.NET
Name: wins-server, Value: [ 100.0.0.2, 100.0.0.3 ]
7) DHCP SERVER 확인
root@DHCP-SERVER> show dhcp server binding
IP address Session Id Hardware address Expires State Interface
10.0.0.200 1 50:00:00:1e:00:02 66 BOUND irb.10
10.0.0.151 2 50:00:00:31:00:02 79 BOUND irb.10
root@DHCP-SERVER> show dhcp server binding detail
Client IP Address: 10.0.0.200
Hardware Address: 50:00:00:1e:00:02
State: BOUND(LOCAL_SERVER_STATE_BOUND)
Protocol-Used: DHCP
Lease Expires: 2024-11-25 13:43:22 UTC
Lease Expires in: 64 seconds
Lease Start: 2024-11-25 13:33:20 UTC
Last Packet Received: 2024-11-25 13:41:22 UTC
Incoming Client Interface: irb.10:ge-0/0/0.0
Server Identifier: 10.0.0.1
Session Id: 1
Client Pool Name: POOL-10
Client IP Address: 10.0.0.151
Hardware Address: 50:00:00:31:00:02
State: BOUND(LOCAL_SERVER_STATE_BOUND)
Protocol-Used: DHCP
Lease Expires: 2024-11-25 13:43:35 UTC
Lease Expires in: 77 seconds
Lease Start: 2024-11-25 13:38:34 UTC
Last Packet Received: 2024-11-25 13:41:35 UTC
Incoming Client Interface: irb.10:ge-0/0/1.0
Server Identifier: 10.0.0.1
Session Id: 2
Client Pool Name: POOL-10
'Network > DHCP' 카테고리의 다른 글
DHCP Secondary Pool Configuration(Juniper vMX) (0) | 2025.06.16 |
---|---|
DHCP Smart-Relay Configuration(Juniper QFX) (0) | 2025.06.14 |
DHCP Relay Agent Configuration(Juniper vMX) (0) | 2025.06.12 |
DHCP Basic Configuration(Juniper vMX) (0) | 2025.06.08 |
DHCP Secondary Pool Configuration(Cisco IOL) (0) | 2025.06.06 |
DHCP Smart-Relay Configuration(Cisco IOL) (0) | 2025.06.04 |
DHCP Relay Agent Configuration(Cisco IOL) (0) | 2025.06.02 |
DHCP Pool Static Client Configuration(Cisco IOL) (0) | 2025.05.31 |