A network access method to be performed by a terminal, comprising: obtaining a network service identifier of a requested network service; obtaining access information based on the network service identifier, wherein the access information comprises a network slice identifier and a network slice type identifier that correspond to the network service identifier; determining, based on the network slice type identifier, an access mode corresponding to a network slice type; and accessing, based on the access mode corresponding to the network slice type, a network slice corresponding to the network slice identifier; wherein the access information is stored in a configuration information database, the access information includes subscription information of a network slice allowed to be used by the terminal, wherein the subscription information depends on a type of the network slice, when the network slice is of a first type, the subscription information includes a network slice identifier, a network slice type identifier, a network service identifier, and a dedicated access network identifier; when the network slice is of a second type, the subscription information includes a network slice identifier, a network slice type identifier, and a network service identifier; and when the network slice is of a third type, the subscription information includes a network slice identifier, a network slice type identifier, and a network service identifier; wherein the determining, based on the network slice type identifier, an access mode corresponding to a network slice type comprises: when the network slice type identifier corresponds to the first type, determining that the access mode corresponding to the network slice type is to access, through a dedicated access network and a dedicated core network, the network slice corresponding to the network slice identifier; and when the network slice type identifier corresponds to the second type, determining that the access mode corresponding to the network slice type is to access, through a common access network and a dedicated core network, the network slice corresponding to the network slice identifier; and when the network slice type identifier corresponds to the third type, determining that the access mode corresponding to the network slice type is to access, through a common access network and a common core network, the network slice corresponding to the network slice identifier. obtaining a network service identifier of a requested network service; obtaining access information based on the network service identifier, wherein the access information comprises a network slice identifier and a network slice type identifier that correspond to the network service identifier; determining, based on the network slice type identifier, an access mode corresponding to a network slice type; and accessing, based on the access mode corresponding to the network slice type, a network slice corresponding to the network slice identifier; wherein the access information is stored in a configuration information database, the access information includes subscription information of a network slice allowed to be used by the terminal, wherein the subscription information depends on a type of the network slice, when the network slice is of a first type, the subscription information includes a network slice identifier, a network slice type identifier, a network service identifier, and a dedicated access network identifier; when the network slice is of a second type, the subscription information includes a network slice identifier, a network slice type identifier, and a network service identifier; and when the network slice is of a third type, the subscription information includes a network slice identifier, a network slice type identifier, and a network service identifier; wherein the determining, based on the network slice type identifier, an access mode corresponding to a network slice type comprises: when the network slice type identifier corresponds to the first type, determining that the access mode corresponding to the network slice type is to access, through a dedicated access network and a dedicated core network, the network slice corresponding to the network slice identifier; and when the network slice type identifier corresponds to the second type, determining that the access mode corresponding to the network slice type is to access, through a common access network and a dedicated core network, the network slice corresponding to the network slice identifier; and when the network slice type identifier corresponds to the third type, determining that the access mode corresponding to the network slice type is to access, through a common access network and a common core network, the network slice corresponding to the network slice identifier. when the network slice type identifier corresponds to the first type, determining that the access mode corresponding to the network slice type is to access, through a dedicated access network and a dedicated core network, the network slice corresponding to the network slice identifier; and when the network slice type identifier corresponds to the second type, determining that the access mode corresponding to the network slice type is to access, through a common access network and a dedicated core network, the network slice corresponding to the network slice identifier; and when the network slice type identifier corresponds to the third type, determining that the access mode corresponding to the network slice type is to access, through a common access network and a common core network, the network slice corresponding to the network slice identifier.