Am 02.06.2020 um 12:38 schrieb Jerry Geis:
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
Is that for sure needed ? The use that nm-bridge0 as the network name?
I dont want to mess up my current setup.
Thanks,
Jerry
Use the virt-manager to create the desired bridge. It will end under
/etc/libvirt/qemu/networks/. And there probably exists already a
# cat /etc/libvirt/qemu/networks/default.xml
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made
using:
virsh net-edit default
or other application using the libvirt API.
-->
<network>
<name>default</name>
<uuid>79d01cb2-28a4-4bdc-8b68-80ac588b2d61</uuid>
<forward mode='nat'/>
<bridge name='virbr0' stp='on' delay='0'/>
<mac address='52:54:00:ec:84:b0'/>
<ip address='192.168.122.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.122.2' end='192.168.122.254'/>
</dhcp>
</ip>
</network>
Alexander
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos