Routing packets according to gateway IP used

Something came up and I would like your knowledge.

I would like to assign multiple ips on the lan interface (e.g. 192.168.0.1 & 192.168.0.2) and route traffic depending on the ip that client pc will use as gateway.
How do I mark packets that enter from the same interface but different ip?

Any thoughts?

Anyone? Perhaps use vlans and assign the secondary gateway ip there?