Link to home
Start Free TrialLog in
Avatar of JamesonJendreas
JamesonJendreas

asked on

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?
ASKER CERTIFIED SOLUTION
Avatar of Don Johnston
Don Johnston
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
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.
Avatar of JamesonJendreas
JamesonJendreas

ASKER

Yep, I actually figured that one out yesterday, it's definitely interface range fa0/1-24