Skip to content
Advertisement

Find network interface by IP address – Linux/Bash

I’m wondering how I can query by IP address using sed, and it will show which interface name that is using it.

For example..

JavaScript

I would expect it to come back with ETH0

Advertisement

Answer

You should use this comand :

JavaScript

Hope this help !

Advertisement