This paper presents a systematic control design procedure for an active front-end (AFE) converter connected to a power electronics embedded grid. A parametric model of the grid is firstly identified using the AFE itself to excite the system. This model is then integrated with AFE one in order to obtain a global system representation. Subsequently, a globally optimized local controller is synthesised for the AFE keeping in consideration interaction between the converter and the grid. The proposed method is finally tested experimentally and its performance is compared with a traditional Proportional-Integral (PI) controller in a dq synchronous reference frame.