cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
201
Views
1
Helpful
2
Replies

Need MAC addresses of specific port, not all possible ports

flash-slothmore
Level 1
Level 1

I'm looking for a way to get MAC addresses on a specific port that doesn't include all possible ports.

For example, I want all mac addresses listed on port Gi1/0/2.  I don't want MAC addresses listed for ports 20-29, just 2. 
"sh mac add | i Gi1/0/2" does not accomplish this - it gives me MAC addresses for all the 20's ports also.  Is there a way to only get the info for port 2?

1 Accepted Solution

Accepted Solutions

Try this 

sh mac add interface Gi1/0/2

MHM

 

View solution in original post

2 Replies 2

Try this 

sh mac add interface Gi1/0/2

MHM

 

flash-slothmore
Level 1
Level 1

Perfect, thank you!