What Is The Meaning of In Routing Table?

last updated in Categories

My home Linux laptop is connected to ADSL router and whenever I run route -n command at the prompt it says is set to my routers IP What is the meaning of

Each network host has a default route for each network card. This will create a route for such card. The address generally means “any address”. If a packet destination doesn’t match an individual address in the table, it must match a gateway address. In other words, default gateway is always pointed by
route -n
Sample outputs:


Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface UH    0      0        0 ppp0 UGH   0      0        0 wlan0   U     0      0        0 vmnet8   U     2      0        0 wlan0   U     0      0        0 vmnet1   U     0      0        0 virbr0     U     1000   0        0 wlan0       U     0      0        0 ppp0         UG    0      0        0 wlan0 is my ISP router i.e. default gateway indicated by Other destination such as network use ppp0 interface as gateway. If you are MS-Windows user use route print command.


Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

3 comment

    1. Gateway with means this route rule do not need a gateway, you pc might connect to other device by a switch/bridge.

  1. The default route in Internet Protocol Version 4 (IPv4) is designated as the zero-address in CIDR notation,[1] often called the quad-zero route. The subnet mask is given as /0, which effectively specifies all networks, and is the shortest match possible.

    See full article here: https://en.wikipedia.org/wiki/Default_route

    Still, have a question? Get help on our forum!