Adding default gateway with ip route

I’m more used to the older “route” command with linux, so using the commands that come with¬† iproute2 were a bit different.¬† To add a default gateway using “ip route”, perform the following:

ip route add default via 192.168.1.254

As opposed to this which is from the old route command:

route add default gw 192.168.1.254