Skip to content

Instantly share code, notes, and snippets.

@dlundquist
Created January 7, 2019 22:28
Show Gist options
  • Save dlundquist/620e2a029d4b9ba195326ca1e58c4e4c to your computer and use it in GitHub Desktop.
Save dlundquist/620e2a029d4b9ba195326ca1e58c4e4c to your computer and use it in GitHub Desktop.
#!/bin/sh
for BR in $(ip link show type bridge | awk -F : '/^[0-9]+: [^:]+:/ {print $2}'); do
echo === $BR ===
ip addr show dev $BR
ip link show master $BR
echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment