cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
886
Views
0
Helpful
0
Replies

Calling all Cisco DHCP Experts - Help with "Origin File" for Reservations

chris-lawrence
Level 1
Level 1

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

0 Replies 0
Review Cisco Networking for a $25 gift card