How to change the default gateway of a Mac OSX machine I am familiar with the route add default gw command in Linux to add a default gateway, but this doesnt work on Mac OS. I cant find any appropriate example in the route manual. Can anyone help me the command.
$ route delete default
$ route add default 192.168.0.1


or

$ route change default -interface $INTF
$ route change 192.168.0.0/16 -interface $INTF