Quick IOS CLI syntax

Hi,
I was attempting to set up some Voice VLan and Data Vlans on my cisco switches, and in doing so I lost connection to one switch.  I had placed this switch on it's own vlan, and completely lost connectivity.  I now have a PC connected via console cable, and am using Putty to console in.  I'm trying to select all fastethernet ports so I can re-assign them back to the default vlan.  I've done the following

switch>enable
Password:****
Switch#config t
Switch(config)interface fa0/1-24

this doen't seem to work.  I know there is a way to select multiple enet ports, but I can't remember how.  Any suggestions?
LVL 1
JamesonJendreasAsked:
Who is Participating?
 
Don JohnstonConnect With a Mentor InstructorCommented:
interface range fa0/1 -24

Don't forget that there must be a space before the "-".
0
 
from_expCommented:
hm...
I would say that "-" is a command, so it should look like:
interface range fa0/1 - 24
however possible that one space is enough
0
 
Don JohnstonInstructorCommented:
Nothing possible about it. ;-)

The space only needs to be before the hyphen (or the comma). You can put after it, but it's not required.
0
 
JamesonJendreasAuthor Commented:
Yep, I actually figured that one out yesterday, it's definitely interface range fa0/1-24
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.