What is the switch model? You may be hitting the maximum number of routed interfaces, so check the release notes for your switch model and firmware version. Our C3/G3/B5 switches have a maximum of 24 routed interfaces, where our C5 has 48 maximum routed interfaces.