Define gateway.
A gateway is a network device that connects dissimilar networks. It establishes an intelligent connection between a local network and external networks with completely different structures.