Want all traffic destined for 16.0.24.0/24 to go through your interface with ip 192.168.192.7?

route add -net 16.0.24.0 netmask 255.255.255.0 gw 192.168.192.7

To delete this route,

route del -net 16.0.24.0/24

Ohh and static arp to one of the hosts in that network?

arp -s 16.0.24.2 00:50:49:A0:9E:E0

It’s so easy! More info here and here.

Blog Logo

Mario Loria


Published

Image

./scriptthe.net

Because 127.0.0.1 gets old after a while.

Back to Overview