A network access method, comprising: receiving, by a resident node, a first message from a terminal device, wherein the first message comprises an authorization request; processing, by the resident node, the first message to obtain a second message; sending, by the resident node, a second message to a management device; processing, by the management device, the second message into a third message, wherein the third message comprises the authorization request and an authorization mode for the terminal device to access a network; sending, by the management device, the third message to a gateway device; identifying, by the gateway device based on the third message, the authorization request and the authorization mode for the terminal device to access the network; sending, by the gateway device based on the authorization mode, the authorization request to a network device in the network, wherein the authorization request is used to instruct the network device to perform authorization on the terminal device; sending, by the gateway device, authorization result information to the management device, wherein the authorization result information comprises an authorization result that is for the terminal device and that is returned by the network device; sending, by the management device to the resident node, the authorization result information returned by the gateway device, wherein the authorization result information comprises an authorization result that is for the terminal device and that is returned by the network device; receiving, by the resident node, authorization result information from the network, and sending the authorization result information to the terminal device; and wherein the method is characterized in that the second message is transmitted through an authorization channel corresponding to the authorization mode, and the authorization channel is used to determine the corresponding authorization mode. receiving, by a resident node, a first message from a terminal device, wherein the first message comprises an authorization request; processing, by the resident node, the first message to obtain a second message; sending, by the resident node, a second message to a management device; processing, by the management device, the second message into a third message, wherein the third message comprises the authorization request and an authorization mode for the terminal device to access a network; sending, by the management device, the third message to a gateway device; identifying, by the gateway device based on the third message, the authorization request and the authorization mode for the terminal device to access the network; sending, by the gateway device based on the authorization mode, the authorization request to a network device in the network, wherein the authorization request is used to instruct the network device to perform authorization on the terminal device; sending, by the gateway device, authorization result information to the management device, wherein the authorization result information comprises an authorization result that is for the terminal device and that is returned by the network device; sending, by the management device to the resident node, the authorization result information returned by the gateway device, wherein the authorization result information comprises an authorization result that is for the terminal device and that is returned by the network device; receiving, by the resident node, authorization result information from the network, and sending the authorization result information to the terminal device; and wherein the method is characterized in that the second message is transmitted through an authorization channel corresponding to the authorization mode, and the authorization channel is used to determine the corresponding authorization mode.