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.
Articles, notes and random thoughts on Software Development and Technology
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.