for example eth0 has ip 192.168.1.1 and is used as the gateway for 3 other subnets:
route add -net 192.168.2.0/24 gw 192.168.1.1 eth0
route add -net 192.168.3.0/24 gw 192.168.1.1 eth0
route add -net 192.168.4.0/24 gw 192.168.1.1 eth0
now all traffic to 192.168.*.0 will be pushed through eth0
***************************************
Party on, dudes!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.