Anomalous Diffusion In Presence of Boundary-conditions