摘要 |
The present invention provides a method and device for configuring multiple network cards. The method comprises: acquiring configuration information about network cards in a system; matching network connections of the system with routes, establishing a cache list, and adding the cache list to a route table of the system; binding established network connection sockets with the network cards, and testing accessible network segments of the network cards by means of the sockets and the configuration information; and updating, according to test results, the cache list and the route table of the system. By adopting the technical solution, the present invention solves the problem of confusion of a route table, and further achieves an effect of enabling multiple network cards configured in a terminal to adapt to a network. |