A router is a network device that connects an Ethernet network to a wide area network (WAN).
Routers are responsible for forwarding data between different networks. They have two or more network interfaces. It allows them to connect to multiple networks. Routers examine the destination address of data packets and determine the best path for them to reach their destination, often across different types of networks.