Flowmix Leonsio Flowmix Leonsio - 2 months ago 11x
Bash Question

How to find physical interfaces on linux (without bridges, aliases, vlans ..)

i need to identify physical interfaces on (Debian) Linux
if show into /sys/class/net i see all interfaces including bridges and vlans.

or it is possible with bash to check if one interface exists and if its physical or virtual?


better solution with systemd (example on raspberry pi with vlans/bridges)

systemctl -a | grep net-devices | grep -v "/sys/subsystem"