Last active
November 11, 2020 11:12
-
-
Save dutchiechris/30c6a1758ec13c4a04f7cc18018130dd to your computer and use it in GitHub Desktop.
CentOS 7 ifcfg syntax for VLAN tagged interface + bridge for KVM (referenced from http://www.beginswithdata.com/2016/12/30/centos7-kvm-coreos/)
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
[root@server02 network-scripts]# cat ifcfg-enp14s0 | |
DEVICE=enp14s0 | |
TYPE=Ethernet | |
BOOTPROTO=none | |
ONBOOT=yes | |
NM_CONTROLLED=no | |
[root@server02 network-scripts]# cat ifcfg-enp14s0.35 | |
DEVICE=enp14s0.35 | |
TYPE=Ethernet | |
BOOTPROTO=none | |
ONBOOT=yes | |
VLAN=yes | |
BRIDGE=br35 | |
NM_CONTROLLED=no | |
[root@server02 network-scripts]# cat ifcfg-br35 | |
DEVICE=br35 | |
TYPE=Bridge | |
BOOTPROTO=none | |
ONBOOT=yes | |
IPADDR=10.64.35.92 | |
PREFIX=24 | |
GATEWAY=10.64.35.1 | |
DNS1=10.64.28.200 | |
DNS2=10.64.28.201 | |
DOMAIN=acme.com | |
NM_CONTROLLED=no |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment