Tomás Ó hÉilidhe wrote:
>> $ route add 192.168.1.0/24 gw 192.168.1.1
>> $ route add 10.10.10/24 gw 10.10.10.1
>
>
> I thought routing tables were strictly to do with *sending* packets
> rather than receiving them. When eth0 receives a packet with an IP
> address other than its own, how will it know that it has to route it
> thru wlan0?
True, but in case of a router between networks, packets are being sent
both ways. Same with a standard client and server that operate outside 1
network, the client needs to know where to find the server, but in
return, the server also needs to know where to find the client.