What is gateway in networking

This article understands the concept of gateway in networking.

Assume the following two scenarios –

1. A PC with IP address with subnet mask tries to access a PC with IP address with subnet mask

2. A PC with private IP address with subnet mask tries to access a website on the internet.

In scenario 1, the PC’s are on different networks. In scenario 2, the PC is trying to access a website, which is on the internet, again on a different netwo rk. In both the cases, the destination addresses are on different networks. When two systems wishes to communicate and they are on different IP networks, a gateway device is required. A gateway device, in simple terms is a layer 3 device, which is capable of forwarding IP packets. The common misconception is that the gateway device needs to be a router. This is not true. A gateway device can be a Windows server operating system which has the routing service. A linux operating system can also act as a gateway device

The above content is a sample from the ebook – Routing and switching fundamentals

Buy the ebook from Amazon

Ebook Store – Click here