[CentOS] Bridge network for virt-manager

Stephen John Smoogen

smooge at gmail.com
Tue Jun 2 14:54:18 UTC 2020


On Tue, 2 Jun 2020 at 06:39, Jerry Geis <jerry.geis at gmail.com> wrote:

> Hello. I desire to get bridge network working using virt-manager.
> Centos 7 and centos 7 guest.
>
> From researching I think I need to have a ifcfg-br0 file like this ?
>
> cat ifcfg-br0
> DEVICE=nm-bridge0
> STP=no
> TYPE=Bridge
> BOOTPROTO=none
> IPADDR=192.168.1.8
> PREFIX=32
> GATEWAY=192.168.1.1
> IPV6INIT=no
> NAME=br0
> ONBOOT=yes
> DELAY=0
>

Our virt-hosting systems all use bridges and I have the following setup for
eth0 and br0

# ifcfg-eth0
NAME="eth0"
TYPE=Ethernet
ONBOOT=yes
NETBOOT=yes
BRIDGE="br0"
UUID="<fill in uuidgen here>"
HWADDR="<fill in mac address here>"

# ifcfg-br0
NAME="br0"
DEVICE="br0"
ONBOOT=yes
NETBOOT=no
UUID="<<fill in uuidgen here>>"
IPV6INIT=no
BOOTPROTO=none
IPADDR="<< fill in ip address >>"
NETMASK="<< fill in netmask >>"
GATEWAY="<< fill in gateway >>"
TYPE=Bridge
NAME="br0"
DNS1="<< fill in dns1 >>"
DNS2="<< fill in dns2 >>"
STP="no"

On EL8 systems it changes somewhat. If you just wants a bridge with no ip
address associated with it.. leave those out. Some switches need that


-- 
Stephen J Smoogen.


More information about the CentOS mailing list