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



Leave a Comment