Ubuntu: show default gateway

Here is how to display the default gateway on Ubuntu from the command line.

Ubuntu 20.04 + (without net tools)

ip route show

Ubuntu 18.04 – (with net-tools)

route

Romain Drouche
System Architect | MCSE: Core Infrastructure
IT infrastructure expert with over 15 years of field experience. Currently a Systems and Networks Project Manager and Information Systems Security (ISS) expert, I use my expertise to ensure the reliability and security of technological environments.

Leave a Comment