89
If the device name (sysname) is configured as the padding content for sub-option 1, make sure
the device name does not include spaces. Otherwise, the DHCP snooping device will fail to add
or replace Option 82.
6. (Optional.) Configure the padding mode and padding format for the Remote ID sub-option.
dhcp snooping information remote-id { normal [ format { ascii | hex } ] |
[ vlan vlan-id ] string remote-id | sysname }
By default, the padding mode is normal and the padding format is hex for the Remote ID
sub-option.
Configuring DHCP snooping entry auto backup
About DHCP snooping entry auto backup
The auto backup feature saves DHCP snooping entries to a backup file, and allows the DHCP
snooping device to download the entries from the backup file at device reboot. The entries on the
DHCP snooping device cannot survive a reboot. The auto backup helps the security features provide
services if these features (such as IP source guard) must use DHCP snooping entries for user
authentication.
Restrictions and guidelines
If you disable DHCP snooping with the undo dhcp snooping enable command, the device
deletes all DHCP snooping entries, including those stored in the backup file.
Procedure
1. Enter system view.
system-view
2. Configure the DHCP snooping device to back up DHCP snooping entries to a file.
dhcp snooping binding database filename { filename | url url [ username
username [
password { cipher | simple } string ] ] }
By default, the DHCP snooping device does not back up DHCP snooping entries.
With this command executed, the DHCP snooping device backs up DHCP snooping entries
immediately and runs auto backup.
This command automatically creates the file if you specify a non-existent file.
3. (Optional.) Manually save DHCP snooping entries to the backup file.
dhcp snooping binding database update now
4. (Optional.) Set the waiting time after a DHCP snooping entry change for the DHCP snooping
device to update the backup file.
dhcp snooping binding database update interval interval
By default, the DHCP snooping device waits 300 seconds to update the backup file after a
DHCP snooping entry change. If no DHCP snooping entry changes, the backup file is not
updated.
Setting the maximum number of DHCP snooping
entries
About setting the maximum number of DHCP snooping entries
Perform this task to prevent the system resources from being overused.