Add routes
Jul 25, 2018 · Linux add a default route using route command. Route all traffic via 192.168.1.254 gateway connected via eth0 network interface: # route add default gw 192.168.1.254 eth0. Linux add a default gateway (route) using ip command. Route all traffic via 192.168.1.254 gateway connected via eth0 network interface: # ip route add 192.168.1.0/24 dev eth0