Procedure Configuring DHCP Enabling the DHCP Snooping Binding Database Agent Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. • Enter your password if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 ip dhcp snooping database {flash [number] : /filename | ftp://user : password @ host /filename | http://[[username : password] @ ] {hostname | host-ip} [ /directory] /image-name.tar | rcp://user @ host/filename | scp://user@host/filename | tftp://hostfilename} Example:
Device(config)# ip dhcp snooping database tftp://10.90.90.90/snooping-rp2 Specifies the URL for the database agent or the binding file by using one of these forms: • flash[number]:/filename • ftp://user:password@host/filename • http://[[username:password]@]{hostname | host-ip}[/directory] /image-name.tar • rcp://user@host/filename • scp://user@host/filename Note Before you configure SCP, you need to set the line console 0 transport output to ssh or all. • tftp://host/filename Step 4 ip dhcp snooping database timeout seconds Example:
Device(config)# ip dhcp snooping database timeout 300 Specifies (in seconds) how long to wait for the database transfer process to finish before stopping the process. The default is 300 seconds. The range is 0 to 86400. Use 0 to define an infinite duration, which means to continue trying the transfer indefinitely. Step 5 ip dhcp snooping database write-delay seconds Example: Device(config)# ip dhcp snooping database write-delay 15 Specifies the duration for which the transfer should be delayed after the binding database changes. The range is from 15 to 86400 seconds. The default is 300 seconds (5 minutes). Configuring DHCP 18