A lot of toddlers at 2 years old will start defying you and throwing tantrums. Have you ever heard of the terrible twos? lol
But if he doesn't listen and do what he is told you should put him in the corner and have him stand there for a couple minutes.
If putting him in timeout doesn't work then you will have to resort to spanking him. Contrary to what some believe spanking if done properly is not abuse.
I was spanked as a child when I wouldn't behave and I don't consider that my parents were abusing me.
He may get mad at you but he will still love you even if he tells you he hates you for spanking him when he needs it.