Setting default routes

To set a default route via a router (192.168.0.1), use the following command:

<code>
route add default gw 192.168.0.1 netmask 0.0.0.0 eth0
</code>

– this will add a default route via the gateway at 192.168.0.1 for all traffic.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.