Flowmix Leonsio Flowmix Leonsio - 1 year ago 96
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?

Answer Source

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

systemctl -a | grep net-devices | grep -v "/sys/subsystem"
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download