route add default gw

Wednesday, Dec 26, 2007

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.