Yes you can use hydrogen peroxide in your ear to clear up an ear infection and get rid of the ear infection pain.
I've used hydrogen peroxide for an ear infection I had about a year ago and it worked great.
To put the hydrogen peroxide in your ear you just need to add it with a medicine dropper bottle you can buy in stores.
Put some hydrogen peroxide in the medicine dropper and then just apply 10 drops of hydrogen peroxide into your ear.