> Am 24.01.2022 um 23:45 schrieb Alex <mysqlstud...@gmail.com>:
> 
> Hi, can someone tell me if these instructions still work with fedora35
> to build a bridge?
> 
> https://docs.fedoraproject.org/en-US/Fedora/18/html/System_Administrators_Guide/s2-networkscripts-interfaces_network-bridge.html

In addition to Tom’s answer, with F36 it will no longer work. There is a change 
proposal to remove ifcfg support completely and most contributors agree with 
that.

If you want your VMs to have access to the public network, then you have to 
share the host's public interface. The most convenient option is mac-vlan and 
to avoid a bridge. You don’t need to configure the host interface, but just the 
VMs to use „direct attachment“ in KVM/libvirt-speech.  
See Fedora Server documentation at 
https://docs.stg.fedoraproject.org/en-US/fedora-server/virtualization-vm-install-fedoraserver-cockpit/
 (it’s the staging version).

Konfiguration is much easier and it causes less system load. The only 
disadvantage is that the VMs cannot communicate directly with the host. But it 
is usually better to use an internal, protected network for this. 

If the host has a second physical interface that you want to use for an 
internal, protected network between VMs and the host as well as other hosts and 
VMs on that internal network, you have to reconfigure the second, internal 
network. My Fedora Server Doku is not yet ready, but you have to reconfigure 
the second interface as a bridge (because the VMs should be able to communicate 
with the host and vice versa). You man do (if is enp6s0 here)

(a) create a bridge and assign it the internal physical interface. IPv4 is 
static, no IPv6 for internal network:
[…]# nmcli con add ifname vbr6s0 type bridge con-name vbr6s0 \
     bridge.stp no
[…]# nmcli con mod vbr6s0 ipv4.method static \
     ipv4.address "10.10.10.XXX/24" \
     ipv4.gateway "10.10.10.10" \
     ipv4.dns "10.10.10.1" \
     ipv4.dns-search "localnet" \
     ipv6.method disabled \
     connection.zone "trusted" 
[…]# nmcli con add ifname enp6s0 type bridge-slave \
     master vbr6s0 con-name vbr6s0-slave-enp6s0 \
     connection.zone "trusted" 
[…]# nmcli con show vbr6s0

You should specify dns-search to enable systemd-resolved to resolve internal 
node names (i.e. not FQDN)

(b)  deactivate the original physical interface and activate the bridge:

[…]# nmcli con down enp6s0
[…]# nmcli con up vbr6s0
[…]# nmcli con reload


If your internal network is virtual only (w/o physical interface), it’s best to 
use libvirt virbr0. See Server documentation at 
https://docs.stg.fedoraproject.org/en-US/fedora-server/virtualization-install/ 
about host configuration. 
(Leave out "stg." in the url to get the current published version)


Best
Peter



_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to