The invention provides a method for realizing the configuration of network devices, which specifically comprises the following steps that: 1, the information of each network device is added into a database of a network device management center; 2, a key code is respectively inputted into each network device; 3, each network device asks a DHCP (dynamic host configuration protocol) server of the network device management center to configure parameters automatically through a DHCP protocol; 4, the DHCP server reads the database, responds to the request of each network device, searches a configuration code same as the key code in the database through the key code of each network device, acquires configuration parameter information in network device information corresponding to the searched configuration code, and returns the configuration parameter information to each network device; and 5, each network device automatically carries out configuration according to the received corresponding configuration parameter information. By using the method disclosed by the invention, the problem that a plurality of contents are required to be configured on the traditional network device is solved; and because only a key code is required to be configured, the operation of the construction and installation personnel is greatly simplified, and the installation operation is easy, therefore, the method is easily completed by persons with low cultural level.