To dream that you are shunning someone indicates that there is some aspect of yourself that you are also rejecting or refusing to acknowledge.
To dream that you are being shunned signifies a lack of self-worth. You feel alienated. Alternatively, the dream means that you are being too agreeable and accommodating to the point where your own sense of self is lost. You need to be more assertive and learn to say no to others.