3. #1. Global DHCP ACCESS config – Create DHCP Relay Policy
1 Fabric – Access Policies
Global Policies – DHCP Relay Policies
2 Create DHCP Relay Policy
- Name & Providers 구성
3 DHCP Provider
- DHCP EPG Mapping
- DHCP EP Address 설정
1
2
3
4. #1. Global DHCP ACCESS config – Create DHCP Relay Label
1 Tenant – “Tenant using DHCP” –
Networking – BD – DB using DHCP
- DHCP Relay Label
2 Create DHCP Relay Label
- DHCP Relay Label 구성
5. #2. TENANT Based DHCP Config - Create DHCP Relay Policy
1 Tenants – Common – “BD for DHCP”
– DHCP Relay Lable – Create DHCP
Relay Label
2 Create DHCP Relay Lable
- Tenant 선택
3 DHCP Relay Policy Profile 생성
- DHCP-TENANT 이름 생성
- Provider 생성
1
2
3
3
6. #2. TENANT Based DHCP Config - Create DHCP Relay Label
1 Tenants – Common – “BD for DHCP”
– DHCP Relay Lable – Create DHCP
Relay Label
2 Create DHCP Relay Lable
- Tenant 선택
- Common Tenant에서 생성된
DHCP Profile 선택
1 2
3 Networking – Protocol Polices –
DHCP – Relay Policies
- Relay Policy가 생성되었는 지
확인
7. Window 2016 server based – Packet dump (bootp.dhcp)
W2K16 DHCP SERVER DHCP CLIENT
DHCP Option 82
Bootp Flag
8. Window 2016 server based -DHCP Window 2016 Config Guide
1 Windows Server 2016 버전 확인
(OS Build – 14393.969)
2 Superscope Config
- Address Pool (DHCP IP range)
- Address Lease
(DHCP 주소 대여 확인)
- Scope Option (Router, DNS Option)
1
2
9. Linux Server Based- Packet dump (bootp.dhcp)
W2K16 DHCP SERVER DHCP CLIENT
DHCP Option 82
10. Linux server based -DHCP Config Guide
1 dhcpd install (ISC)
2 dhcpd interface config
root@LNX-DHCP:~# apt-get install isc-dhcp-server
root@LNX-DHCP:~# vim /etc/default/isc-dhcp-server
…..
INTERFACES="eth0“
…..
11. Linux server based -DHCP Config Guide
3 dhcpd config
root@LNX-DHCP:~# vim /etc/dhcp/dhcpd.conf
#default-lease-time : 클라이언트에게 IP 주소를 부여할 시간
#max-lease-time : 연장가능한 최대 시간
default-lease-time 600;
max-lease-tiem 7200;
# 사용될 서브넷과 넷마스크 설정
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.11 192.168.1.100;
option domain-name-servers 8.8.8.8;
option domain-name "cisko-dc.com';
option routers 192.168.1.1;
option broadcast-address 192.168.0.255;
}
12. Linux server based -DHCP Config Guide
4 DHCP Option 82 Link Selection 인식을 위한 설정
root@LNX-DHCP:~# vim /etc/dhcp/dhcpd.conf
ignore client-updates;
authoritative;
stash-agent-options true;
#Option 82 link-selection enable
option agent.link-selection ip-address;
option routers 192.168.111.254;
#동일서브넷 DHCP 설정
subnet 192.168.111.0 netmask 255.255.255.0{
option routers 192.168.111.1;
option subnet-mask 255.255.255.0;
pool {
range 192.168.111.11 192.168.11.20;
}
#DHCP relay 관련 DHCP 설정 - 4개 BD, 4개 서브넷 구성 예.
class "BD-1Net" {
match if(binary-to-ascii(10, 8, ".", option agent.link-selection) = "192.168.1.0");
}
shared-network BD-1Net {
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
pool {
allow members of "BD-1Net";
range 192.168.1.101 192.168.1.110;
}
}
}
13. Linux server based -DHCP Config Guide
4 DHCP Option 82 Link Selection 인식을 위한 설정
shared-network BD-2Net {
subnet 192.168.2.0 netmask 255.255.255.0 {
option routers 192.168.2.1;
option subnet-mask 255.255.255.0;
pool {
allow members of "BD-2Net";
range 192.168.2.101 192.168.2.110;
}
}
}
shared-network BD-11Net {
subnet 192.168.11.0 netmask 255.255.255.0 {
option routers 192.168.11.1;
option subnet-mask 255.255.255.0;
pool {
allow members of "BD-11Net";
range 192.168.11.101 192.168.11.110;
}
}
}
shared-network BD-12Net {
subnet 192.168.12.0 netmask 255.255.255.0 {
option routers 192.168.12.1;
option subnet-mask 255.255.255.0;
pool {
allow members of "BD-2Net";
range 192.168.12.101 192.168.12.110;
}
}
}
5 DHCP Server restart
service isc-dhcp-server restart
14. DHCP Linux Config Guide
1 DHCP Server 확인
more /var/lib/dhcp/dhcpd.lease
15. Useful ACI Commands to Verify DHCP Configuration
1 DHCP 서버 구성 확인
LEAF-101# show ip dhcp relay
1 https://apic/visore.html
dhcpRelayP, dhcpRsProv, dhcpProvDhcp,
dhcpRtLblDefToRelayP