Long term prevention for cellulitis

for the last 10 years I have got cellulitis in my leg once or twice a year I first had it when I was 40 I always get prescribed antibiotics and it goes away When I first had it I had tests and no-one could find the cause and my GP said I would have to live with it this weekend it developed and the emergency GP says I should be given some medication to stop it happening again. I need to see my gp any ideas what he is talking about and what the treatment is