04-27-2017 02:56 AM - edited 03-05-2019 08:26 AM
I want to select a range of interfaces across 4 switches in a stack.
This command returns with the error "% Invalid input detected at '^' marker."
interface range Gi1/0/2 , Gi1/0/4 , Gi1/0/11 , Gi1/0/13 - 14 , Gi1/0/17, Gi1/0/20 - 21 , Gi1/0/23 , Fa2/0/1 - 2 , Fa2/0/4 - 24 , Fa3/0/1 - 24 , Fa4/0/1 - 5 , Fa4/0/7 - 13 , Fa4/0/15 - 24
I can however break up this string of interfaces into 3 which works, see below. Am I missing some fundamential understanding of how interface range selection works in the above command?
range 01
Gi1/0/2 , Gi1/0/4 , Gi1/0/11 , Gi1/0/13 - 14 , Gi1/0/17
range 02
Gi1/0/20 - 21 , Gi1/0/23 , Fa2/0/1 - 2 , Fa2/0/4 - 24
range 03
Fa3/0/1 - 24 , Fa4/0/1 - 5 , Fa4/0/7 - 13 , Fa4/0/15 - 24
Solved! Go to Solution.
04-27-2017 03:01 AM
The port range is very long, hence, the error message.
04-27-2017 03:01 AM
The port range is very long, hence, the error message.
04-27-2017 03:08 AM
Thanks for the feedback. Do you know what the character limit is?
04-27-2017 03:42 AM
Not sure. Could be 32 characters.
04-27-2017 04:46 AM
I recall many range statements are limited to five arguments (i.e. or four commas).
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide