The invention discloses a method for verifying the static
binding function of a
router. The method comprises the following steps:
logging in a
WEB page of a
router to be tested according to an instruction of testing personnel, and entering a DHCP (Dynamic Host Configuration Protocol) service page; configuring static binding on the DHCP service page of the
router to be tested, binding an MAC (MediaAccess Control) address of a network card of a testing computer with an expected IP (
Internet Protocol) address, and saving; releasing the
IP address of the testing computer, and reassigning an
IP address for the computer; capturing a plurality of messages according to a preset filtering condition; analyzing the plurality of captured messages to obtain a target
IP address which is assigned to thetesting computer by the router to be tested from the plurality of messages; judging whether the target IP address is consistent with the expected IP address or not, if so, judging that the static
binding function of the router to be tested is normal, and passing
verification; otherwise, judging that the static
binding function of the router to be tested is abnormal, and failing in
verification. Through adoption of the method and the device, the testing difficulty is lowered; the testing efficiency is increased; the testing period is shortened; and the product cost is lowered.