Set your Default Gateway using Route

On September 27, 2009, in Default, gateway, route, by Dipin Krishna

Want to quickly set the route for your machine from the terminal.

Start by opening up a terminal window, and type the following, just make sure you have the ip address of your gateway to do so.

route add default gw IP ADDRESS eth0

We can see our changes by typing:

route -n


Leave a Reply