FTP
方式
Router1#configure terminal
Router1(config)#ip dhcp database ftp://dhcp:bindsave@10.10.10.1/dhcp-leases
Router1(config)#end
Router1# <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Router1#configure terminal
Router1(config)#ip dhcp database ftp://dhcp:bindsave@10.10.10.1/dhcp-leases
Router1(config)#end
Router1# <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
TFTP
方式
Router1#configure terminal
Router1(config)#ip dhcp database tftp://10.10.10.1/dhcp-leases
Router1(config)#end
Router1#
Router1(config)#ip dhcp database tftp://10.10.10.1/dhcp-leases
Router1(config)#end
Router1#
Router1(config)#ip dhcp database rcp://dhcp@10.10.10.1/dhcp-leases
Router1(config)#end
Router1#
Router1(config)#end
Router1#
注释 通常DHCP数据库保存于内存,如果重启就会丢失,可以使用上述方式进行备份从而不会丢失,通过下述命令验证
Router1#show ip dhcp database
URL : ftp://dhcp:bindsave@10.10.10.1/dhcp-leases
Read : Never
Written : Apr 09 2006 10:24 PM
Status : Last write succeeded. Agent information is up-to-date.
Delay : 300 seconds
Timeout : 300 seconds
Failures : 1
Successes: 30
URL : ftp://dhcp:bindsave@10.10.10.1/dhcp-leases
Read : Never
Written : Apr 09 2006 10:24 PM
Status : Last write succeeded. Agent information is up-to-date.
Delay : 300 seconds
Timeout : 300 seconds
Failures : 1
Successes: 30
转载于:https://blog.51cto.com/tomwe/272924