02-18-2016 06:04 AM - edited 03-08-2019 04:37 AM
Hello Team,
I am running DHCP Services on a Cisco 1000V CSR:
Cisco IOS XE Software, Version 03.16.01a.S - Extended Support Release
Cisco IOS Software, CSR1000V Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 15.5(3)S1a, RELEASE SOFTWARE (fc1)
with the following debug enabled:
DHCP server packet debugging is on.
DHCP server event debugging is on.
--------
When using this configuration, everything works fine - ip helper through the firewall (with NAT).
no ip domain lookup
ip domain name domain.com
ip dhcp smart-relay
ip dhcp excluded-address 25.25.25.1 25.25.25.20
!
ip dhcp pool TERMINALDHCP
network 25.25.25.0 255.255.255.0
default-router 25.25.25.1
domain-name domain.com
dns-server 192.168.170.3
lease infinite
update arp
However, I need to make the reservations and the only current way I know how to do this is with the origin file definition:
ip dhcp pool TERMINALDHCP
origin file scp://dhcp:dhcppass@server/dhcp-dell.txt
default-router 25.25.25.1
domain-name domain.com
dns-server 192.168.170.3
lease infinite
update arp
This is the contents of that file:
*time* Feb 12 2016 12:10 PM
*version* 6
!IP address Type Hardware address Lease expiration
25.25.25.221 /24 id 0100.8064.e26a.d3 Infinite
*end*
The load appears to work right from the debug:
Feb 18 12:41:39.916: DHCPD: New packet workspace 0x7F4979D53D28 (ID=0x82000044)
Feb 18 12:41:39.918: DHCPD: checking IFS status.
Feb 18 12:41:39.918: DHCPD: contacting agent scp://dhcp:dhcppass@server/dhcp-dell.txt (attempt 0)
Feb 18 12:41:41.317: DHCPD: agent scp://dhcp:dhcppass@server/dhcp-dell.txt is responding.
Feb 18 12:41:46.316: DHCPD: IFS is ready.
Feb 18 12:41:46.316: DHCPD: reading bindings from scp://dhcp:dhcppass@server/dhcp-dell.txt.
Feb 18 12:41:46.679: DHCPD: read 263 / 1024 bytes.
Feb 18 12:41:46.679: DHCPD: parsing text line "*time* Feb 12 2016 12:10 PM
Feb 18 12:41:46.679: DHCPD: parsing text line "
Feb 18 12:41:46.679: DHCPD: parsing text line "*version* 6
Feb 18 12:41:46.679: DHCPD: route: Parsed version = 6
Feb 18 12:41:46.679: DHCPD: parsing text line "
Feb 18 12:41:46.679: DHCPD: parsing text line "!IP address Type Hardware address Lease expiration
Feb 18 12:41:46.679: DHCPD: parsing text line "
Feb 18 12:41:46.679: DHCPD: parsing text line "25.25.25.221 /24 id 0100.8064.e26a.d3 Infinite
Feb 18 12:41:46.679: DHCPD: creating binding for 25.25.25.221
Feb 18 12:41:46.679: DHCPD: Allocated binding 7F492632BC48
Feb 18 12:41:46.679: DHCPD: Adding binding to radix tree (25.25.25.221)
Feb 18 12:41:46.679: DHCPD: Adding binding to hash tree 7F492632BC48
Feb 18 12:41:46.679: DHCPD: parsing text line "
Feb 18 12:41:46.679: DHCPD: parsing text line "*end*
Feb 18 12:41:46.679: DHCPD: read static bindings from scp://dhcp:dhcppass@server/dhcp-dell.txt.
With the desired results of the show ip dhcp binding command everything appears correct to me.
DHCPRTR#show ip dhcp pool TERMINALDHCP
Pool TERMINALDHCP :
Utilization mark (high/low) : 100 / 0
Subnet size (first/next) : 0 / 0
Total addresses : 1
Leased addresses : 1
Excluded addresses : 1
Pending event : none
0 subnet is currently in the pool :
Current index IP address range Leased/Excluded/Total
25.25.25.221 25.25.25.221 - 25.25.25.221 1 / 1 / 1
DHCPRTR#
Feb 18 12:42:28.288: DHCPD: exclusion [25.25.25.221, 25.25.25.221], subnet [25.25.25.221, 25.25.25.221], exclusion = 1
DHCPRTR#show ip dhcp binding
Bindings from all pools not associated with VRF:
IP address Client-ID/ Lease expiration Type State Interface
Hardware address/
User name
25.25.25.221/24 0100.8064.e26a.d3 Infinite Static Active Unknown
DHCPRTR#
Is there a way of doing this other than the "origin file"?
If not, what am I doing wrong? I have researched this and everything appears to be working right - loading of the file into my bindings database.
I have attached my debugs for both DHCP transactions (network and origin file).
Thanks,
Chris
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide