A method for allocating a network resource comprising: receiving, by a base station, request information sent by a first terminal device, wherein the request information is configured to request the base station to allocate a network resource, and the network resource allocated to the first terminal device by the base station is used by a second terminal device to access a target device by using the first terminal device; and sending, by the base station, to the first terminal device, allocation information of the network resource allocated by the base station, wherein the allocation information is configured to indicate the network resource allocated by the base station; wherein the first terminal device is a terminal served by a cell of the base station, and the second terminal device is a terminal that utilizes the first terminal device to access the target device, wherein the first terminal device is a cell function user equipment and the second terminal device is an access user equipment; wherein the method further comprises: determining, by the base station, a correspondence between a channel and the network resource according to the network resource allocated by the base station, wherein the correspondence is configured to indicate a network resource, part of the allocated network resource, used by a synchronization channel, a broadcast channel, or an access channel; and sending, by the base station, the correspondence to the first terminal device; wherein the synchronization channel is used for channel synchronization between the first terminal device and the second terminal device; the broadcast channel is used for broadcasting, by the first terminal device, of an indication of a network resource, part of the allocated network resource, used by the access channel; and the access channel is used for enabling the second terminal device to access the target device by using the first terminal device. receiving, by a base station, request information sent by a first terminal device, wherein the request information is configured to request the base station to allocate a network resource, and the network resource allocated to the first terminal device by the base station is used by a second terminal device to access a target device by using the first terminal device; and sending, by the base station, to the first terminal device, allocation information of the network resource allocated by the base station, wherein the allocation information is configured to indicate the network resource allocated by the base station; wherein the first terminal device is a terminal served by a cell of the base station, and the second terminal device is a terminal that utilizes the first terminal device to access the target device, wherein the first terminal device is a cell function user equipment and the second terminal device is an access user equipment; wherein the method further comprises: determining, by the base station, a correspondence between a channel and the network resource according to the network resource allocated by the base station, wherein the correspondence is configured to indicate a network resource, part of the allocated network resource, used by a synchronization channel, a broadcast channel, or an access channel; and sending, by the base station, the correspondence to the first terminal device; wherein the synchronization channel is used for channel synchronization between the first terminal device and the second terminal device; the broadcast channel is used for broadcasting, by the first terminal device, of an indication of a network resource, part of the allocated network resource, used by the access channel; and the access channel is used for enabling the second terminal device to access the target device by using the first terminal device. determining, by the base station, a correspondence between a channel and the network resource according to the network resource allocated by the base station, wherein the correspondence is configured to indicate a network resource, part of the allocated network resource, used by a synchronization channel, a broadcast channel, or an access channel; and sending, by the base station, the correspondence to the first terminal device; wherein the synchronization channel is used for channel synchronization between the first terminal device and the second terminal device; the broadcast channel is used for broadcasting, by the first terminal device, of an indication of a network resource, part of the allocated network resource, used by the access channel; and the access channel is used for enabling the second terminal device to access the target device by using the first terminal device.