A network device, comprising a memory, a processor, and a computer program that is stored on the memory and runnable on the processor, wherein the processor is configured to, when executing the computer program, implement a resource configuration method for random access, the method comprising:
- sending first configuration information to a terminal, wherein the first configuration information is first configuration information of a first message for random access, wherein the first message comprises a preamble and a payload;
- and
- wherein the first configuration information is used to configure at least one first resource for sending the preamble, and at least one second resource corresponding to each first resource and for sending the payload.