This document provides instructions and configuration examples for setting up DHCP relay using Cisco Application Centric Infrastructure (ACI) and on Linux and Windows DHCP servers. It discusses creating DHCP relay policies and providers in ACI, as well as configuring DHCP scopes, pools, and options on Linux and Windows servers. Packet captures are shown to analyze DHCP option 82 for link selection. The document also lists useful ACI commands for verifying the DHCP configuration and troubleshooting.
Introduction to the ACI DHCP Configuration Guide by Cisco Systems Korea.
Detailed ACI topology showing various components like EPGs, BDs, and VRFs for DHCP relay.
Steps to create a global DHCP relay policy including naming, provider configuration, and assigning EPG.
Instructions for creating tenant-based DHCP relay policies and labels within the ACI environment.
Packet dump from Windows DHCP server, including verifying configurations, address pools, and leasing. Installation and configuration procedures for isc-dhcp-server on Linux, with multiple subnet examples.
Methods to verify DHCP IP assignments and useful commands to check DHCP configuration on ACI.
#2. TENANT BasedDHCP Config - Create DHCP Relay Label
1 Tenants – Common – “BD for DHCP”
– DHCP Relay Lable – Create DHCP
Relay Label
2 Create DHCP Relay Lable
- Select Tenant
- Selecting the DHCP Profile
Generated by Common Tenant
1 2
3 Networking – Protocol Polices –
DHCP – Relay Policies
- Verify that the Relay Policy has
been created
7.
Window 2016 serverbased – Packet dump (bootp.dhcp)
W2K16 DHCP SERVER DHCP CLIENT
DHCP Option 82
Bootp Flag
8.
Window 2016 serverbased -DHCP Window 2016 Config Guide
1 Verifying the Windows Server 2016
Version
(OS Build – 14393.969)
2 Superscope Config
- Address Pool (DHCP IP range)
- Address Lease
(Verify DHCP address assignment)
- 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 address lease time to client.
#max-lease-time :
default-lease-time 600;
max-lease-tiem 7200;
# Set Subnet and Netmask
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 Configuration for Recognition
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 configuration - 4 BD, 4 subnet configuration example.
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 Configuration for Recognition
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.
Linux server based- Verify IP assignment.
1 DHCP Server check
more /var/lib/dhcp/dhcpd.lease
15.
Useful ACI Commandsto Verify DHCP Configuration
1 Verifying the DHCP Configuration on the LEAF
LEAF-101# show ip dhcp relay
2 https://apic/visore.html
dhcpRelayP, dhcpRsProv, dhcpProvDhcp,
dhcpRtLblDefToRelayP