1.There are various ways of/for doing this.
Which preposition must we use? Of.
Why? Because that is how we say it!
2. A goat's beard (a goat has a beard). Is this correct?
If you are trying to use the possessive to talk about a beard which belongs to a goat, then yes, but context would dictate whether it is correct or not.