今天我在我的家庭实验室工作以进行练习。我想将我的 2800 系列 Cisco 路由器设置为将 DHCP 绑定日志发送到本地网络上的 FTP 服务器(树莓派用作 sftp 服务器,它还用作无线接入点)。
我在我的 PC 上下载了 FileZilla 并确认我的 sftp 服务器正在树莓派上工作。DHCP 在我所有的 vlan 上正常工作,包括通过 pi AP 连接的主机。
我设置了命令...
ip dhcp database ftp://pi:raspberry@10.0.99.50/home/pi/Desktop/router-dhcp write-delay 60 timeout 15
(我尝试使用 sftp:// 和 ftp:// 并且都没有工作)
ip ftp source-interface Gi0/0.99
(指向ftp服务器的位置,子接口99(vlan 99))
这是我使用 debug dhcp 获得的日志...
*May 5 21:48:46.678: DHCPD: writing bindings to ftp://pi:raspberry@10.0.99.50/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).
这是来自 [show ip dhcp database] 的信息...
Router#show ip database ftp://pi:raspberry@10.0.99.50/home/pi/Desktop/router-dhcp
URL : ftp://pi:raspberry@10.0.99.50/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
非常感谢对我的问题的任何建议!
我也看到过这个错误信息...当路由器尝试写入ftp服务器的url时,这是尝试后显示的第一条消息,然后失败。
DHCPD: ifs_open failed (error 19)