A method for detecting an interface connection between a first device and a second device that communicate with each other, wherein the first device comprises a first interface, the second device comprises a second interface, and the first interface and the second interface are connected by using a cable to communicate with each other; the method comprising: setting a first working parameter to be equal to a recommended working parameter of the first interface; obtaining, by using an auto negotiation operation, a second working parameter of the second interface, wherein the second working parameter is a recommended working parameter of the second interface that is set in the second device, and is sent to the first device after the second device initiates auto negotiation between the first interface and the second interface; and determining whether the obtained second working parameter is equal to the first working parameter; if the obtained second working parameter is not equal to the first working parameter, sending an alarm to indicate that the interface connection is unmatched; and if the obtained second working parameter is equal to the first working parameter, setting a third working parameter to be equal to the recommended working parameter of the first interface, and sending, by using a further auto negotiation operation the third working parameter to the second interface, so that the second device receives the third working parameter through the second interface; and receiving the third working parameter through the second interface, so as to complete the auto negotiation between the first interface and the second interface, so that the first interface communicates with the second interface by using the third working parameter, wherein the third working parameter is sent after the second device obtains the first working parameter by using the further auto negotiation operation and determines that the first working parameter is equal to the second working parameter, and sets the recommended working parameter of the second interface as the third working parameter; wherein the first device and the second device separately comprise at least one interface group, each one in the at least one interface group comprises at least one interface, and recommended working parameters of each interface in a same interface group of a same device are the same; when there is a plurality of interface groups, recommended working parameters of each interface in different interface groups of a same device are different. setting a first working parameter to be equal to a recommended working parameter of the first interface; obtaining, by using an auto negotiation operation, a second working parameter of the second interface, wherein the second working parameter is a recommended working parameter of the second interface that is set in the second device, and is sent to the first device after the second device initiates auto negotiation between the first interface and the second interface; and determining whether the obtained second working parameter is equal to the first working parameter; if the obtained second working parameter is not equal to the first working parameter, sending an alarm to indicate that the interface connection is unmatched; and if the obtained second working parameter is equal to the first working parameter, setting a third working parameter to be equal to the recommended working parameter of the first interface, and sending, by using a further auto negotiation operation the third working parameter to the second interface, so that the second device receives the third working parameter through the second interface; and receiving the third working parameter through the second interface, so as to complete the auto negotiation between the first interface and the second interface, so that the first interface communicates with the second interface by using the third working parameter, wherein the third working parameter is sent after the second device obtains the first working parameter by using the further auto negotiation operation and determines that the first working parameter is equal to the second working parameter, and sets the recommended working parameter of the second interface as the third working parameter; wherein the first device and the second device separately comprise at least one interface group, each one in the at least one interface group comprises at least one interface, and recommended working parameters of each interface in a same interface group of a same device are the same; when there is a plurality of interface groups, recommended working parameters of each interface in different interface groups of a same device are different.