Someone suggested that cinnamon sprinkled around a hive would help keep ants away. After I sprinkled the cinnamon around the hives the ants still got to the hive so I tried an experiment.
I captured some ants (the small black ones, official name- small black NC ants) and placed them on a board. I put a ring of cinnamon two inches wide around the ants to see if they would cross it to get away. At first the ants would avoid the cinnamon ring, but after about 5 minutes they crossed right over it. After the ants were gone I placed some sugar in the circle and ants crossed over the cinnamon to get to the sugar. Also tried this with vaseline jelly and the ants crossed that also. Also tried motor oil which they have not crossed over after 12 hours. So save your cinnamon for baking.