Context: The developed scheme allows carrying out the assignment of several frequency channels (both contiguous and not contiguous) available to the secondary users that require a higher bandwidth, under an environment of equality. Objective: The following paper develops a multichannel assignment which allows taking in a more efficient way the spectral opportunities in cognitive radio networks. Method: The developed assignment model is composed by the K-Means algorithm, which is in charged of carrying out the grouping of channels through clusters for the best parameters, and another algorithm in charge of establishing an equal criteria for all the secondary users that wish to transmit. The reached results were evaluated with experimental spectral occupancy data taken from the GSM frequency band. The developed model was compared with the MFA-CRN algorithm. Results: The obtained measurements correspond to the average bandwidth, the average delay, and the fairness calculation in the assignment of several channels. The developed assignment model shows an improvement in the assignment of a higher transmission average bandwidth for each secondary user while maintaining the fairness criteria in the channel assignments. Conclusion: Despite the increasing in the number of handoffs, it is also observed that metrics such as average bandwidth, average throughput and average delay are never negatively impacted by this increase in handoffs.