For example, I have a MAC address which i know is the MAC address on one of the interfaces. However when I search to what interface the MAC address belongs, it does not show me to what interface it belongs as this is on a separate line.
When using grep to go through a router config I can use grep -5 [MAC ADDRESS] to show 5 lines above and 5 lines below the line on which the search string is found. How ever MAC addresses are not in the running config, so is this possible?
A sort of workaround I use now is use sh interaces | begin [MAC ADDRESS]
If I know the interface below I know what interface the MAC address belongs to.
So is there an equivalent of grep -5 [MAC ADDRESS]?