cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
17753
Views
0
Helpful
6
Replies

can I define interface-range with show interfaces command?

Fareasteagle24
Level 1
Level 1

i'm a bit novice at Cisco IOS so pls help.

My ideal definition is like: # show interfaces 0/9 thru 0/16 on SW or Router assembled with many interfaces.

I couldn't find any discussion concerning this theme in CSC, If it already has been in somewhere else, excuse me.

1 Accepted Solution

Accepted Solutions

fabios
Level 1
Level 1

Beside the command that has been provided by leolaohoo I would recommend trying

sh ip interfsce brief or sh ip interfaces with the proper output modifier ( | inclue / | exclude / | begin)

Cheers

Fabio

View solution in original post

6 Replies 6

Leo Laohoo
Hall of Fame
Hall of Fame
My ideal definition is like: # show interfaces 0/9 thru 0/16 on SW or Router assembled with many interfaces.

Depends on the model of your appliance and the IOS version running, try the "begin" switch command:

sh interface | begin 0/9

thank you leolaohoo!!  I found that pipe | commannd is very useful

fabios
Level 1
Level 1

Beside the command that has been provided by leolaohoo I would recommend trying

sh ip interfsce brief or sh ip interfaces with the proper output modifier ( | inclue / | exclude / | begin)

Cheers

Fabio

thanks for the awesome answer fabios!! that's exacltly what I wanted

Hi,

i have mentioned below some useful commands which will be used during Troubleshooting

interface range gigabitethernet 1/1 -2,fastethernet 4/1 -24

show trunk   

show trunk mod

show int trunk

show inter trunk module ?

show inter fa 4/1 trunk

show int status

show inter fa4/1 status

show inter gig 1/1 pruning

sh ip int vlan 10

sh interfaces | i line | rate

Hope this helps.

Cheers

Somu

Rate this answer if you found the content was useful

Joseph W. Doherty
Hall of Fame
Hall of Fame

Disclaimer

The   Author of this posting offers the information contained within this   posting without consideration and with the reader's understanding that   there's no implied or expressed suitability or fitness for any purpose.   Information provided is for informational purposes only and should not   be construed as rendering professional advice of any kind. Usage of  this  posting's information is solely at reader's own risk.

Liability Disclaimer

In   no event shall Author be liable for any damages whatsoever (including,   without limitation, damages for loss of use, data or profit) arising  out  of the use or inability to use the posting's information even if  Author  has been advised of the possibility of such damage.

Posting

Since you found the posts useful about pipe and include, exclude, etc., if you're not already aware, thought you might want to know you can use regular expressions too. See http://www.cisco.com/en/US/docs/ios/12_2/termserv/configuration/guide/tcfaapre_ps1835_TSD_Products_Configuration_Guide_Chapter.html for more info.

Review Cisco Networking for a $25 gift card