Adding a default route in Linux. How to define the default gateway.

Adding a default route in Linux is easy. The route command is the best way to do this.

route add default gw

I used this command on a machine that previously had an IP address in the 192.168.0.xx range and the default gateway was So I had to change it and this command was the best way.

No comments have been made. Use this form to start the conversation :)

Leave a Reply