This section describes how to maintain a DHCP snooping binding table.
Table 1 lists the commands run in all views to check DHCP snooping configurations.
| Action | Command |
|---|---|
Display Option82 information. |
display dhcp option82 [ vlan vlan-id ] interface interface-type interface-number |
Display information about DHCP snooping on a specific interface. |
display dhcp snooping [ vlan vlan-id ] interface interface-type interface-number |
Display information about entries in a DHCP snooping binding table. |
display dhcp snooping bind-table { ip-address ip-address | mac-address mac-address | [ vlan vlan-id ] interface interface-type interface-number | static | dynamic | all } |
Display global DHCP snooping information. |
display dhcp snooping global |
Resetting the DHCP snooping binding table results in information loss in the binding table. Perform the resetting of the DHCP snooping binding table with caution.
Table 2 lists the commands run in the system view to maintain a DHCP snooping binding table.
| Action | Command |
|---|---|
| Back up a DHCP snooping binding table. | dhcp snooping bind-table autosave filename |
| Reset a DHCP snooping binding table. | reset dhcp snooping bind-table { interface interface-type interface-number | vlan vlanid [ interface interface-type interface-number ] | static | dynamic } |