Skip to content

Instantly share code, notes, and snippets.

@dutchiechris
Last active November 11, 2020 11:12
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save dutchiechris/30c6a1758ec13c4a04f7cc18018130dd to your computer and use it in GitHub Desktop.
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/)
[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