The invention belongs to the technical field of computers, and particularly discloses a
network resource management method and device, and the method comprises the steps: directly creating a network resource if the same type of network resources exist in all network namespaces when the network resource is created for a certain network
namespace; otherwise, creating a global
linked list, a mapping table and the network resource; marking the newly created network resource, distributing a first pointer to the newly created network resource according to the resource type of the newly created network resource, and inserting the first pointer into the global
linked list; inserting a first pointer and a second pointer pointing to the position of the newly created network resource into the mapping table; wherein when the network resources are accessed by the process, triggering a page
error processing program through a first pointer, taking the page
error processing program as a unique entrance for accessing the network resources, and responding to the access in combination with the mapping table and the identifier; the identifier is used for verifying whether the network
namespace where the current access process is located is matched with the network
namespace to which the network resource belongs. According to the invention, isolation and security of network resources are ensured.