Re: Bridge network for virt-manager

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, 2 Jun 2020 at 06:39, Jerry Geis <jerry.geis@xxxxxxxxx> 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.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux