Ifconfig doesnt show Gateway

Hi, when i write “ifconfig” this doesnt show my gateway, just my IP address, mask and broadcast…
What can i do to show in this command?

There’s a more “modern” command that should show this info:

ip route show

Found this here:

Can’t say for sure if that’s the best command to get that info but nmcli can probably show the same.

3 Likes

Just FYI, but ifconfig is the deprecated interface configuration tool & wasn’t intended to display routing detail. The route command was the deprecated way of showing that detail…

I’d suggest learning the modern commands (as per @That_Random_Guy’s response); though net-tools can be installed & stills works on all supported Lubuntu systems.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.