Next generation telescopes are to employ segmented mirrors to realize extremely large primary mirror surfaces. Most of the current ground-based telescopes has monolithic mirrors with radius upto 8 metres. Due to limitations segmentation is preferred for larger size mirrors. Segmentation of mirrors brings a challenging task of controlling the vast number of individual units. In this paper, the H∞ control of the primary mirror of the next generation telescopes are investigated. Both spatially-invariant distributed and centralized controllers are designed for simplified dynamic model of a 37 segment test unit. Firstly, the 37 segment system is modelled by adopting a nodal model. Secondly, an analytic calculation of a H∞ controller is presented. A centralized H∞ controller is, then, designed and simulated in MatLab-Simulink environment. Next, the simulation results are presented and the performance of the controller is evaluated. Thirdly, spatially-invariant distributed controller synthesis is described and a spatially-invariant distributed controller is designed for 37 segment system by controller truncation. The spatially-invariant distributed controller is simulated for the 37 segment system. The simulation results of the controller is presented and compared with the results from centralized scheme. It is shown that both centralized and spatially-invariant distributed controllers satisfy the imaging performance requirements.