How Set your Default Gateway using Route | terminal

You want to quickly set the route for your machine from the terminal.

Frankly this problem faced me yesterday with my laptop and its drives me crazy untill this helped me

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

[tweetme]

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">