Configuration Guide DHCP Snooping Configuration
Ruijie(config)# ip dhcp snooping database
write-to-flash
Write the DHCP Snooping binding database
to the flash manually.
The following example demonstrates how to write the DHCP Snooping binding database to the
flash:
Ruijie# configure terminal
Ruijie(config)# ip dhcp snooping database write-to-flash
Ruijie(config)# end
Configuring a Port as a TRUST Port
By default, all the ports are UNTRUST ports. After configuring this command, a port is set as
the TRUST port and connected to the legal DHCP server.
Ruijie# configure terminal
Enter the global configuration mode.
Ruijie(config)# interface interface-id
Enter the interface configuration mode.
Ruijie(config-if)# [no] ip dhcp snooping trust
Set the port as a trust port.
The following example shows how to set GigabitEthernet 4/1 as a TRUST port:
Ruijie# configure terminal
Ruijie(config)# interface GigabitEthernet 4/1
Ruijie(config-if)# ip dhcp snooping trust
Ruijie(config-if)# end
Configuring Rate of Receiving DHCP Packet
This command configures rate of receiving DHCP in the corresponding interface:
Ruijie# configure terminal
Enter the global configuration mode.
Ruijie(config)# interface interface-id
Enter the interface configuration mode.
Ruijie(config-if)# [no] ip dhcp snooping limit rate
rate-value
Configures rate of receiving DHCP packet on
the port.
The following example shows how to set the rate of receiving DHCP packet on GigabitEthernet
4/1 as 100pps:
Ruijie# configure terminal
Ruijie(config)# interface GigabitEthernet 4/1
Ruijie(config-if)# ip dhcp snooping limit rate 100
Ruijie(config-if)# end
Ruijie# show ip dhcp snooping
Switch DHCP snooping status : ENABLE
DHCP snooping Verification of hwaddr field status : DISABLE
DHCP snooping database write-delay time : 0 seconds
DHCP snooping option 82 status : ENABLE