To enter a Bonus Stage you need to pass a Starpost with 50 or more rings. Stars will appear above the starpost. Jump into the stars to enter the bonus stage.