Today I was working on my home lab for practice. I wanted to set my 2800 Series Cisco router to send a log of DHCP bindings to a FTP server on the local network (raspberry pi operating as sftp server, it is also serving as a wireless access point).
I downloaded FileZilla on my PC and confirmed my sftp server was working on the raspberry pi. DHCP is working properly on all of my vlans, including for hosts connected via the pi AP.
I set the commands...
ip dhcp database ftp://pi:email@example.com/home/pi/Desktop/router-dhcp write-delay 60 timeout 15
(I tried using sftp:// and ftp:// and neither worked)
ip ftp source-interface Gi0/0.99
(pointing to the location of the ftp server, subinterface 99 (vlan 99))
Here are the logs I get with debug dhcp...
*May 5 21:48:46.678: DHCPD: writing bindings to ftp://pi:firstname.lastname@example.org/home/pi/Desktop/router-dhcp. *May 5 21:48:46.678: DHCPD: could not write database header. *May 5 21:48:46.678: DHCPD: ifs_write failed (error 1545).
Here is the Info from [show ip dhcp database]...
Router#show ip database ftp://pi:email@example.com/home/pi/Desktop/router-dhcp URL : ftp://pi:firstname.lastname@example.org/home/pi/Desktop/router-dhcp Read : Never Written : Never Status : Last write failed because of a protocol error. Delay : 60 seconds Timeout : 15 seconds Failures : 24 Successes: 0
Any suggestions to my problem is greatly appreciated!
I have also seen this error message... When the router attempts to write to the url of the ftp server, this is the first message shown after the attempt, and then it fails.
DHCPD: ifs_open failed (error 19)