Linux: Default Gateway
Note
The standard command for showing IP address in Linux is ip a. ip also provides an option to view configured gateways:
ip rip rip rip rHere is an example of adding a default gateway:
ip route add default via 192.168.1.1If your distribution or container is missing this command you can add it with:
dnf -y install iproute2apt -y install iproute2apk add iproute2pacman -Syu iproute2