Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 553
  • Last Modified:

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?
0
JamesonJendreas
Asked:
JamesonJendreas
  • 2
1 Solution
 
Don JohnstonCommented:
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 JohnstonCommented:
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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now