User A has the dial-up account of carrier A. User B has the dial-up account of carrier B. They are connected to the same switch or ONU and need to access different carriers for authentication through the Layer 2 network. The Layer 2 network is shared by companies in the enterprise campus, and the Layer 2 network cannot identify user accounts. As a result, user authentication packets are sent to multiple carriers. The problem is that if the BRAS of the carrier A receives the authentication packet of the user B, it sends a reject packet to the user B. When the user receives the rejection packet first, the dialup is terminated. As a result, the user B may fail to dial up for multiple times. If the BRAS of the carrier's A does not respond to the packet sent by the user B, the user can establish a session with the BRAS of the carrier B to dial up successfully after the carrier B sends a response packet to the user.

How to implement this function?
Thanks.