cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
461
Views
5
Helpful
3
Replies

How to use the pipe command to show interfaces that include 2 keywords

Chun fu yang
Level 1
Level 1

I need to know which interfaces have "portfast" and "trunk" keywords. How can I do that?

For example, g1/0/1 have both commands, g1/0/2 only have trunk, g1/0/3 only have portfast

I have tried "show run | in interface| trunk | portfast" and "show run | in interface| portfast| trunk" but didn't work. (Show in pictures)

Is there any way to achieve this?

Thanks for help. 

1 Accepted Solution

Accepted Solutions

ammahend
VIP
VIP

Remove space, example : show run | in interface|trunk|portfast

-hope this helps-

View solution in original post

3 Replies 3

Leo Laohoo
Hall of Fame
Hall of Fame

What, actually, do you want to see?

ammahend
VIP
VIP

Remove space, example : show run | in interface|trunk|portfast

-hope this helps-

This is really help! Thx very much.

Review Cisco Networking products for a $25 gift card