Created
July 9, 2015 10:31
-
-
Save mhahl/e7121bf99629862f10fa to your computer and use it in GitHub Desktop.
Network VLAN Setup
This file contains 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 | |
nmcli con add type vlan con-name "VLAN10 Managment" id 10 dev enp0s20f1 ip4 10.0.10.1/24 | |
nmcli con add type vlan con-name "VLAN20 Private" id 20 dev enp0s20f1 ip4 10.0.20.1/24 | |
nmcli con add type vlan con-name "VLAN30 Public" id 30 dev enp0s20f1 ip4 10.0.30.1/24 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment