Mdot config and GCP

Hello everybody,
I would like to configure the mdotBox with a multiconduit Gateway.
Everything need to be connected with the GCP.
Did I need to first confgure the mdot BOX with the gateway and then connect the gateway to the GCP or the opposite ?
Thank you !