I just ran "route" on my laptop's terminal and see this line for the default entry in my route table:

enter image description here

In examples I am seeing in books and online, the default entry includes an actual ip address for the gateway. Why do I not have that and have "_gateway" instead? What does "_gateway" mean? Is it possible to retrieve the actual ip address of the gateway?

  • 1
    Are you actually connected to a network? What does host _gateway;ip addr show? It looks like a placeholder for an unconnected system. Please copy/paste and format text instead of pictures of text. A picture (of text) can't be read on a text-only terminal, can't be copied from (edited, tried, and made to work), AND makes one take an action to even read your Question. Since we're all volunteers, some won't click. Please read askubuntu.com/help/formatting
    – waltinator
    Commented Mar 11, 2022 at 22:50
  • Only showing the 1 line is not enough info. Please use copy and paste from the terminal into your question. It does look like though that the _gateway is just the name of the gateway device (router).
    – Terrance
    Commented Mar 11, 2022 at 23:38

1 Answer 1


Just here to remind you and others who may have the same question... There is a similar question in StackExchange which is already solved:My router's name is "gateway". Where is this set and may I change it?

Note that your "_gateway" and "gateway" in this question is actually the same thing. Refer to this for a validation: Why does Ubuntu resolve the name _gateway to the default gateway instead of gateway?

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .