I had an almost 2 year old girl that was biting when she started. I just kept a consistent consequence (ie. a firm "NO BITING, biting hurts", then a 1 minute time out on a chair a few feet away). It only took a week or two for her to stop.
And now I am dealing with another little boy (18 months) who is biting and hitting. He is only part time, so it's a little tougher, I feel, to make that impact. I mean, he goes home with mom and dad and doesn't come back for a week or more. But we will keep it up, and reassess if need be in the future.