I downloaded Metasploitable: 2 from this web site http://vulnhub.com/?page=2#top installed in my second computer with Windows 2012 and Hyper-V.
Target machine: 192.168.1.9
Attacker machine 192.168.1.31
I run TCP/UDP scan to try to get everything, it takes time, but remember you spend 95% of the time getting information of your target: reconnaissance, enumeration and scanning.
nmap -sV -sT -sU -p1-5535 -v 192.168.1.9 T5
Did you notice I did aggressive scan?, yes, I am in my own LAN, so I will not lose time, also I will show you in the next picture only the result:
Now the fun begin, lets attack the machine using Metasploit.