The networked control systems with multiple switching modes in high speed local area network environment are modeled as a hybrid system and the corresponding optimal control problem is addressed, where initial state is a parametric vector. Moreover, a dynamic program technique is proposed, in every step of the technique, the feasible region is divided into evenly distributed grid points, the solution to the optimal control law is to maximize the lower bound of the cost function in grid points of the feasible region, which is mainly based on the Bellman type inequality. Finally, an example is given to illustrate the optimal computation results