Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Syntax of Interface Range

Hi, I have a Catalyst 2950. I wanted to use the Interface Range function.

However, I couldn't get it to work.

I want to apply to all ports. So I type:

enable

configure terminal

interface range fast FastEthernet 0/0-23

But, it complains..pointing either at the F or the -

What in the world is the problem? Is my syntax incorrect?

Thank you!

Sasha Shepherd

  • LAN Switching and Routing
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Syntax of Interface Range

Sasha,

The Catalyst 2950 series (and the 3550 as well, I believe) has a limitation in their command parser that requires exactly one whitespace around the dash or comma symbol in the interface range command, e.g.:

interface range fa0/1 - 5

or

interface range fa0/1 , fa0/3 , fa0/10 - 15

I haven't seen this in more recent Catalyst switches. Admittedly, it is annoying.

Best regards,

Peter

2 REPLIES
Cisco Employee

Re: Syntax of Interface Range

Sasha,

The Catalyst 2950 series (and the 3550 as well, I believe) has a limitation in their command parser that requires exactly one whitespace around the dash or comma symbol in the interface range command, e.g.:

interface range fa0/1 - 5

or

interface range fa0/1 , fa0/3 , fa0/10 - 15

I haven't seen this in more recent Catalyst switches. Admittedly, it is annoying.

Best regards,

Peter

New Member

Syntax of Interface Range

Thanks! I had actually tried a space...but I had only tried it with interface range FastEthernet0/1 -5.

interface range fa0/1 - 5 worked

112
Views
0
Helpful
2
Replies
This widget could not be displayed.