route add default gw

Published: Wednesday, Dec 26, 2007 Last modified: Thursday, Dec 3, 2020

root@dogbert:~# /sbin/route add default gw 192.168.0.77 dev eth1

I can never remember route’s oddball syntax. Here I am adding the internal IP of my machine as the gateway of a guest machine using eth1 named interface.