The problem of leader–following consensus is investigated for heterogeneous discrete‐time linear networked multi‐agent systems with data packet losses and network delays. Two kinds of networked protocols are presented to derive the states of followers to reach an agreement on leader's state under the switching topologies, in the meanwhile, the asymptotic stability of all agents are guaranteed. Due to unavailable agents' states and communication constraints, the networked predictive control method is used to compensate network delays and data packet losses actively. Sufficient criteria of leader–following consensus and asymptomatic stability are obtained when at least one follower is connected to the leader by a directed edge. The simulation example is presented to illustrate that states of followers can track leader's state, and all agents' states also asymptotically converge to the equilibrium under the proposed theoretical results.