creating a pagination of multiple pages

How can i set up a list of pages across the bottom of a page, and link each number to the page. say 100 pages

Example:

Previous 1 2 3………Next

Thanks!