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

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

Chun fu yang
Beginner
Beginner

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
Collaborator
Collaborator

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

-hope this helps-

View solution in original post

3 Replies 3

Leo Laohoo
VIP Community Legend VIP Community Legend
VIP Community Legend

What, actually, do you want to see?

ammahend
Collaborator
Collaborator

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

-hope this helps-

This is really help! Thx very much.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers