1

Use a specific interface for a specific destination subnet (source IP setting)

view story
linux-howto

http://unix.stackexchange.com – I am looking for some sort of routing trickery to set a specific source IP: Local machine has two IPs; Eth1: 192.168.0.1 Eth1:2 192.168.0.2 Default gateway is 192.168.0.254 via Eth1 Remote subnet is 10.0.0.0/24 Any traffic that is sent to 10.0.0.x host, I want to leave via Eth1:2 so that it has IP 192.168.0.2 when it is received by the remote hosts, or some how force 192.168.0.2 to be my source IP when talking to 10.0.0.x hosts. (HowTos)