Last active
May 4, 2017 13:58
-
-
Save mpontillo/2752be3b0f342a8403381635ad9f5585 to your computer and use it in GitHub Desktop.
Get the list of VLAN interfaces and VIDs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo cat /proc/net/vlan/config | tail -n +3 | sed 's/\W*|\W*/ /g' | sort -n -k 3,2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment