When looking at the contents of a routing table section on the Wikipedia article on Routing Tables, it contains a table as an example of a routing table with two headings which have an unclear distinction to me: Gateway and Interface.

I believe a gateway is where a packet is forwarded to by the router. If this is the case, what is the Interface column? If this is not, what is the Gateway column representing, particularly in comparison with the Interface column?

enter image description here

  • A gateway is a host on the network that knows how to forward traffic to other networks. That is almost always a router. There may be other reasons for having a gateway other than a router, e.g. a proxy, but you are not to the point of needing to worry about that right now. – Ron Maupin May 8 '18 at 19:07
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you can provide and accept your own answer. – Ron Maupin Dec 25 '18 at 8:25
  • @RonMaupin I ended up quite confused and I'm planning on coming back to the answers after/during a one-week networking course I have in February. – Alex W Dec 25 '18 at 11:36

An interface is a connection to a local segment. Generally, it's a network interface or port (layer 1 and 2). A single network port may have multiple IP addresses and represent multiple layer 3 interfaces though.

A gateway is a potential path to a remote network. It needs to be in reach of one or more interfaces, ie. be part of the same subnet. The default gateway is the path to 'everything we don't have a better path for'.

Gateway is the functional name from the perspective of a local segment where a gateway leads 'elsewhere'. Router is the very same thing from the overall perspective of the larger network - a connection between two or more subnets.

| improve this answer | |

In this example, the address in the interface column is used to identify the particular interface (your computer may have more than one). Since naming conventions often depend on hardware, it is easier to identify them by IP address.

For example, your routing table shows the default gateway is, and it can be reached by using the interface that has the IP address

| improve this answer | |
  • 1
    Could you give a physical/practical example of the difference, such as in a standard home network? – Alex W May 8 '18 at 19:02
  • 1
    @AlexW, home networking is explicitly off-topic here. Based on all your questions, you are trying to learn network engineering, and if you try to look at it from the perspective of home networking and consumer-grade devices, you can end up very confused. Learn the basics first, and you can see how they relate to something like home networking later, but forget about home networking and consumer-grade devices until you have a good understanding of networking. – Ron Maupin May 8 '18 at 19:06
  • 1
    @RonMaupin Noted. I think I'd really benefit with a physical example to latch onto, but if you're sure that's not feasible or appropriate for such questions, I accept that. – Alex W May 8 '18 at 19:27
  • @AlexW IP routing tables assume the device has multiple network interfaces, although most PCs have only one. When there is more than one, the device needs to know which interface to use to reach the gateway. The interface column defines that. In the context of home networking, only your router has more than one interface. – Ron Trunk May 8 '18 at 21:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.