I'm unfamiliar with BATMAN, but you should look into IP rules and routing tables, similar to what's described here.