route add default gw
Published: Wednesday, Dec 26, 2007 Last modified: Wednesday, Mar 29, 2023
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.