TITLE: What is the "topology induced by a metric"?
QUESTION [19 upvotes]: My book gives the following definition:

Let $(M,d)$ be a metric space, and let $\mathcal{T}$ be the collection of all subsets of $M$ that are open in the metric space sense...  $\mathcal{T}$ is called the topology generated by d

Then it later says to prove things about two different metrics generating the same topology. However I'm very confused about what all this means. 
When I read "all subsets," I think of the theorem that says a set with $n$ elements will have $2^n$ subsets. (ex. all the subsets of $\{1,2,3\}$ are $\{\emptyset, \{1\},\{2\},\{3\},\{1,2\},\{1,3\},\{2,3\},\{1,2,3\} \}$). So I think "all subsets that are open" would be like, If M is the set (1,5), then an open subset would be any set $(a,b)$ where $1<a<b<5$, and then all subsets would be all possible union combinations of these "$(a,b)$" sets.   
Its seems to me that metrics have nothing to do with subsets. Clearly there is something i'm not understanding. Please Help me. 
It would be very enlightening, if someone could give me some simple examples of 1 set and 2 metrics generating two different typologies.

REPLY [2 votes]: At first we take a metric space $(M,d)$ then from the collection of all $\varepsilon$-ball $B(x,\varepsilon)$ we make a basis and after making the basis we generate the basis and get the metric topology.