Is Telnet Port Open For The Range IP

nmapporttelnet

I want to port scanning on telnet port in a range ip .
for ex: i want to know is the 23 port open on 127.0.0.1/255 ?
what am i going to do ? is there a option for Nmap to do this ?
Thanks .

Best Answer

Yes:

nmap -p 23 127.0.0.0/24

Will scan port 23 on 127.0.0.0-127.0.0.255. The /24 is CIDR notation, more info on that here:

http://en.wikipedia.org/wiki/CIDR_notation