<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace"><span style="font-family:Arial,Helvetica,sans-serif">On Mon, May 8, 2023 at 10:50 AM Robin Becker <<a href="mailto:robin@reportlab.com">robin@reportlab.com</a>> wrote:</span><br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 08/05/2023 15:04, Thomas Haller wrote:<br>
> Hi,<br>
> <br>
> <br>
.........<br>
> <br>
> Why? After moving the port to the bridge, the "new" configuration is<br>
> supposed to work. Just add the IP addresses (or `ipv4.method=auto`) on<br>
> the bridge profile, instead of the eno1 profile from before.<br>
.......<br>
I am almost certain this is right, but perhaps my router is interfering.<br>
<br>
I will try again and perhaps I need to clear my head around what's talking to what. Since the router assigns using a mac <br>
address perhaps I need to force the bridge and/or the nic to be more specific and just fix the addresses.<br>
<br>
> It's not clear to me what a "sub interface eno1.1" is. Where does this<br>
> recommendation come from?<br>
<br>
I get this from<br>
<br>
<a href="https://linuxconfig.org/how-to-use-bridged-networking-with-libvirt-and-kvm" rel="noreferrer" target="_blank">https://linuxconfig.org/how-to-use-bridged-networking-with-libvirt-and-kvm</a><br>
<br>
under "Adding a physical ethernet interface to the bridge"<br>
<br>
On our old servers in /etc/network/interfaces we have sections like<br>
<br>
# The primary network interface<br>
auto eno1<br>
iface eno1 inet static<br>
address yy.yy.yy.yy<br>
netmask 255.255.240.0<br>
<br>
<br>
auto eno1:0<br>
iface eno1:0 inet static<br>
address xx.xx.xx.xx<br>
netmask 255.255.240.0<br>
<br>
so I assumed I could do something similar with NM and have two connections using the same physical device.<br>
<br>
I am no networking genius though</blockquote><div><br></div><div class="gmail_default" style="font-family:monospace,monospace">I use NM to do exactly what you are trying with the exception of setting a fixed MAC on the bridge interface. I configured it all with nm-connection-editor, but I will be more than happy to share the generated config files with you (hope it helps) and by the way I use bridge0 as the interface in Qemu/LibVirt/Boxes, etc..</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">[greg@carbon-x1--g10 ~]$ ip a<br>2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master bridge0 state UP group default qlen 1000<br> link/ether 00:e0:4c:68:07:d2 brd ff:ff:ff:ff:ff:ff<br> altname enp0s13f0u3u1<br>4: bridge0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000<br> link/ether 00:e0:4c:68:07:d2 brd ff:ff:ff:ff:ff:ff<br> inet <a href="http://192.168.1.10/24">192.168.1.10/24</a> brd 192.168.1.255 scope global dynamic noprefixroute bridge0<br> valid_lft 78669sec preferred_lft 78669sec<br></div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">eth0 is my wired dongle (assigned to "bridgeo port 1")</div><div class="gmail_default" style="font-family:monospace,monospace">bridge0 is the bridge</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">You should just be able to tell the bridge after it is created to preserve eth0's MAC address.</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">[greg@carbon-x1--g10 ~]$ nmcli connection<br>NAME UUID TYPE DEVICE <br>bridge0 fafed9b3-8dad-4552-b1b4-0f620d985eb3 bridge bridge0 <br>bridge0 port 1 2b7a76c4-4bef-4c46-a5e8-3129b6361582 ethernet eth0 <br>Wired - LenovoBed Dongle 3ba19fca-63e3-3975-b5e3-69bb6b56ea5c ethernet -- <br></div><div class="gmail_default" style="font-family:monospace,monospace"></div><div class="gmail_default" style="font-family:monospace,monospace"><a href="http://connection.id">connection.id</a>: Wired - LenovoBed Dongle<br>connection.uuid: 3ba19fca-63e3-3975-b5e3-69bb6b56ea5c<br>connection.stable-id: --<br>connection.type: 802-3-ethernet<br>connection.interface-name: eth0<br>connection.autoconnect: yes<br>connection.autoconnect-priority: -999<br>connection.autoconnect-retries: -1 (default)<br>connection.multi-connect: 0 (default)<br>connection.auth-retries: -1<br>connection.timestamp: 1682522928<br>connection.read-only: no<br>connection.permissions: --<br>connection.zone: --<br>connection.master: --<br>connection.slave-type: --<br>connection.autoconnect-slaves: -1 (default)<br>connection.secondaries: --<br>connection.gateway-ping-timeout: 0<br>connection.metered: unknown<br>connection.lldp: default<br>connection.mdns: -1 (default)<br>connection.llmnr: -1 (default)<br>connection.dns-over-tls: -1 (default)<br>connection.mptcp-flags: 0x0 (default)<br>connection.wait-device-timeout: -1<br>connection.wait-activation-delay: -1<br>802-3-ethernet.port: --<br>802-3-ethernet.speed: 0<br>802-3-ethernet.duplex: --<br>802-3-ethernet.auto-negotiate: no<br>802-3-ethernet.mac-address: 00:E0:4C:68:07:D2<br>802-3-ethernet.cloned-mac-address: preserve<br>802-3-ethernet.generate-mac-address-mask:--<br>802-3-ethernet.mac-address-blacklist: --<br>802-3-ethernet.mtu: auto<br>802-3-ethernet.s390-subchannels: --<br>802-3-ethernet.s390-nettype: --<br>802-3-ethernet.s390-options: --<br>802-3-ethernet.wake-on-lan: default<br>802-3-ethernet.wake-on-lan-password: --<br>802-3-ethernet.accept-all-mac-addresses:-1 (default)<br>ipv4.method: auto<br>ipv4.dns: --<br>ipv4.dns-search: --<br>ipv4.dns-options: --<br>ipv4.dns-priority: 0<br>ipv4.addresses: --<br>ipv4.gateway: --<br>ipv4.routes: --<br>ipv4.route-metric: -1<br>ipv4.route-table: 0 (unspec)<br>ipv4.routing-rules: --<br>ipv4.replace-local-rule: -1 (default)<br>ipv4.ignore-auto-routes: no<br>ipv4.ignore-auto-dns: no<br>ipv4.dhcp-client-id: --<br>ipv4.dhcp-iaid: --<br>ipv4.dhcp-timeout: 0 (default)<br>ipv4.dhcp-send-hostname: yes<br>ipv4.dhcp-hostname: --<br>ipv4.dhcp-fqdn: --<br>ipv4.dhcp-hostname-flags: 0x0 (none)<br>ipv4.never-default: no<br>ipv4.may-fail: yes<br>ipv4.required-timeout: -1 (default)<br>ipv4.dad-timeout: -1 (default)<br>ipv4.dhcp-vendor-class-identifier: --<br>ipv4.link-local: 0 (default)<br>ipv4.dhcp-reject-servers: --<br>ipv4.auto-route-ext-gw: -1 (default)<br>ipv6.method: disabled<br>ipv6.dns: --<br>ipv6.dns-search: --<br>ipv6.dns-options: --<br>ipv6.dns-priority: 0<br>ipv6.addresses: --<br>ipv6.gateway: --<br>ipv6.routes: --<br>ipv6.route-metric: -1<br>ipv6.route-table: 0 (unspec)<br>ipv6.routing-rules: --<br>ipv6.replace-local-rule: -1 (default)<br>ipv6.ignore-auto-routes: no<br>ipv6.ignore-auto-dns: no<br>ipv6.never-default: no<br>ipv6.may-fail: yes<br>ipv6.required-timeout: -1 (default)<br>ipv6.ip6-privacy: -1 (unknown)<br>ipv6.addr-gen-mode: stable-privacy<br>ipv6.ra-timeout: 0 (default)<br>ipv6.mtu: auto<br>ipv6.dhcp-duid: --<br>ipv6.dhcp-iaid: --<br>ipv6.dhcp-timeout: 0 (default)<br>ipv6.dhcp-send-hostname: yes<br>ipv6.dhcp-hostname: --<br>ipv6.dhcp-hostname-flags: 0x0 (none)<br>ipv6.auto-route-ext-gw: -1 (default)<br>ipv6.token: --<br>proxy.method: none<br>proxy.browser-only: no<br>proxy.pac-url: --<br>proxy.pac-script: --<br></div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">[greg@carbon-x1--g10 ~]$ nmcli connection show bridge0<br><a href="http://connection.id">connection.id</a>: bridge0<br>connection.uuid: fafed9b3-8dad-4552-b1b4-0f620d985eb3<br>connection.stable-id: --<br>connection.type: bridge<br>connection.interface-name: bridge0<br>connection.autoconnect: yes<br>connection.autoconnect-priority: 0<br>connection.autoconnect-retries: -1 (default)<br>connection.multi-connect: 0 (default)<br>connection.auth-retries: -1<br>connection.timestamp: 1683556900<br>connection.read-only: no<br>connection.permissions: --<br>connection.zone: --<br>connection.master: --<br>connection.slave-type: --<br>connection.autoconnect-slaves: -1 (default)<br>connection.secondaries: --<br>connection.gateway-ping-timeout: 0<br>connection.metered: unknown<br>connection.lldp: default<br>connection.mdns: -1 (default)<br>connection.llmnr: -1 (default)<br>connection.dns-over-tls: -1 (default)<br>connection.mptcp-flags: 0x0 (default)<br>connection.wait-device-timeout: -1<br>connection.wait-activation-delay: -1<br>802-3-ethernet.port: --<br>802-3-ethernet.speed: 0<br>802-3-ethernet.duplex: --<br>802-3-ethernet.auto-negotiate: no<br>802-3-ethernet.mac-address: --<br>802-3-ethernet.cloned-mac-address: --<br>802-3-ethernet.generate-mac-address-mask:--<br>802-3-ethernet.mac-address-blacklist: --<br>802-3-ethernet.mtu: auto<br>802-3-ethernet.s390-subchannels: --<br>802-3-ethernet.s390-nettype: --<br>802-3-ethernet.s390-options: --<br>802-3-ethernet.wake-on-lan: default<br>802-3-ethernet.wake-on-lan-password: --<br>802-3-ethernet.accept-all-mac-addresses:-1 (default)<br>ipv4.method: auto<br>ipv4.dns: --<br>ipv4.dns-search: --<br>ipv4.dns-options: --<br>ipv4.dns-priority: 0<br>ipv4.addresses: --<br>ipv4.gateway: --<br>ipv4.routes: --<br>ipv4.route-metric: -1<br>ipv4.route-table: 0 (unspec)<br>ipv4.routing-rules: --<br>ipv4.replace-local-rule: -1 (default)<br>ipv4.ignore-auto-routes: no<br>ipv4.ignore-auto-dns: no<br>ipv4.dhcp-client-id: --<br>ipv4.dhcp-iaid: --<br>ipv4.dhcp-timeout: 0 (default)<br>ipv4.dhcp-send-hostname: yes<br>ipv4.dhcp-hostname: --<br>ipv4.dhcp-fqdn: --<br>ipv4.dhcp-hostname-flags: 0x0 (none)<br>ipv4.never-default: no<br>ipv4.may-fail: yes<br>ipv4.required-timeout: -1 (default)<br>ipv4.dad-timeout: -1 (default)<br>ipv4.dhcp-vendor-class-identifier: --<br>ipv4.link-local: 0 (default)<br>ipv4.dhcp-reject-servers: --<br>ipv4.auto-route-ext-gw: -1 (default)<br>ipv6.method: disabled<br>ipv6.dns: --<br>ipv6.dns-search: --<br>ipv6.dns-options: --<br>ipv6.dns-priority: 0<br>ipv6.addresses: --<br>ipv6.gateway: --<br>ipv6.routes: --<br>ipv6.route-metric: -1<br>ipv6.route-table: 0 (unspec)<br>ipv6.routing-rules: --<br>ipv6.replace-local-rule: -1 (default)<br>ipv6.ignore-auto-routes: no<br>ipv6.ignore-auto-dns: no<br>ipv6.never-default: no<br>ipv6.may-fail: yes<br>ipv6.required-timeout: -1 (default)<br>ipv6.ip6-privacy: -1 (unknown)<br>ipv6.addr-gen-mode: stable-privacy<br>ipv6.ra-timeout: 0 (default)<br>ipv6.mtu: auto<br>ipv6.dhcp-duid: --<br>ipv6.dhcp-iaid: --<br>ipv6.dhcp-timeout: 0 (default)<br>ipv6.dhcp-send-hostname: yes<br>ipv6.dhcp-hostname: --<br>ipv6.dhcp-hostname-flags: 0x0 (none)<br>ipv6.auto-route-ext-gw: -1 (default)<br>ipv6.token: --<br>bridge.mac-address: --<br>bridge.stp: no<br>bridge.priority: 32768<br>bridge.forward-delay: 15<br>bridge.hello-time: 2<br>bridge.max-age: 20<br>bridge.ageing-time: 300<br>bridge.group-forward-mask: 0<br>bridge.multicast-snooping: yes<br>bridge.vlan-filtering: no<br>bridge.vlan-default-pvid: 1<br>bridge.vlans: --<br>proxy.method: none<br>proxy.browser-only: no<br>proxy.pac-url: --<br>proxy.pac-script: --<br><a href="http://GENERAL.NAME">GENERAL.NAME</a>: bridge0<br>GENERAL.UUID: fafed9b3-8dad-4552-b1b4-0f620d985eb3<br>GENERAL.DEVICES: bridge0<br>GENERAL.IP-IFACE: bridge0<br>GENERAL.STATE: activated<br>GENERAL.DEFAULT: yes<br>GENERAL.DEFAULT6: no<br>GENERAL.SPEC-OBJECT: --<br>GENERAL.VPN: no<br>GENERAL.DBUS-PATH: /org/freedesktop/NetworkManager/ActiveConnection/2<br>GENERAL.CON-PATH: /org/freedesktop/NetworkManager/Settings/2<br>GENERAL.ZONE: --<br>GENERAL.MASTER-PATH: --<br>IP4.ADDRESS[1]: <a href="http://192.168.1.10/24">192.168.1.10/24</a><br>IP4.GATEWAY: 192.168.1.254<br>IP4.ROUTE[1]: dst = <a href="http://192.168.1.0/24">192.168.1.0/24</a>, nh = 0.0.0.0, mt = 425<br>IP4.ROUTE[2]: dst = <a href="http://0.0.0.0/0">0.0.0.0/0</a>, nh = 192.168.1.254, mt = 425<br>IP4.DNS[1]: 192.168.1.254<br>IP4.DOMAIN[1]: <a href="http://attlocal.net">attlocal.net</a><br>DHCP4.OPTION[1]: dhcp_client_identifier = 01:00:e0:4c:68:07:d2<br>DHCP4.OPTION[2]: dhcp_lease_time = 86400<br>DHCP4.OPTION[3]: dhcp_server_identifier = 192.168.1.254<br>DHCP4.OPTION[4]: domain_name = <a href="http://attlocal.net">attlocal.net</a><br>DHCP4.OPTION[5]: domain_name_servers = 192.168.1.254<br>DHCP4.OPTION[6]: expiry = 1683643300<br>DHCP4.OPTION[7]: ip_address = 192.168.1.10<br>DHCP4.OPTION[8]: requested_broadcast_address = 1<br>DHCP4.OPTION[9]: requested_domain_name = 1<br>DHCP4.OPTION[10]: requested_domain_name_servers = 1<br>DHCP4.OPTION[11]: requested_domain_search = 1<br>DHCP4.OPTION[12]: requested_host_name = 1<br>DHCP4.OPTION[13]: requested_interface_mtu = 1<br>DHCP4.OPTION[14]: requested_ms_classless_static_routes = 1<br>DHCP4.OPTION[15]: requested_nis_domain = 1<br>DHCP4.OPTION[16]: requested_nis_servers = 1<br>DHCP4.OPTION[17]: requested_ntp_servers = 1<br>DHCP4.OPTION[18]: requested_rfc3442_classless_static_routes = 1<br>DHCP4.OPTION[19]: requested_root_path = 1<br>DHCP4.OPTION[20]: requested_routers = 1<br>DHCP4.OPTION[21]: requested_static_routes = 1<br>DHCP4.OPTION[22]: requested_subnet_mask = 1<br>DHCP4.OPTION[23]: requested_time_offset = 1<br>DHCP4.OPTION[24]: requested_wpad = 1<br>DHCP4.OPTION[25]: routers = 192.168.1.254<br>DHCP4.OPTION[26]: subnet_mask = 255.255.255.0<br>IP6.GATEWAY: --<br></div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">[greg@carbon-x1--g10 ~]$ nmcli connection show "bridge0 port 1"<br><a href="http://connection.id">connection.id</a>: bridge0 port 1<br>connection.uuid: 2b7a76c4-4bef-4c46-a5e8-3129b6361582<br>connection.stable-id: --<br>connection.type: 802-3-ethernet<br>connection.interface-name: eth0<br>connection.autoconnect: yes<br>connection.autoconnect-priority: 0<br>connection.autoconnect-retries: -1 (default)<br>connection.multi-connect: 0 (default)<br>connection.auth-retries: -1<br>connection.timestamp: 1683556900<br>connection.read-only: no<br>connection.permissions: --<br>connection.zone: --<br>connection.master: bridge0<br>connection.slave-type: bridge<br>connection.autoconnect-slaves: -1 (default)<br>connection.secondaries: --<br>connection.gateway-ping-timeout: 0<br>connection.metered: unknown<br>connection.lldp: default<br>connection.mdns: -1 (default)<br>connection.llmnr: -1 (default)<br>connection.dns-over-tls: -1 (default)<br>connection.mptcp-flags: 0x0 (default)<br>connection.wait-device-timeout: -1<br>connection.wait-activation-delay: -1<br>802-3-ethernet.port: --<br>802-3-ethernet.speed: 0<br>802-3-ethernet.duplex: --<br>802-3-ethernet.auto-negotiate: no<br>802-3-ethernet.mac-address: 00:E0:4C:68:07:D2<br>802-3-ethernet.cloned-mac-address: preserve<br>802-3-ethernet.generate-mac-address-mask:--<br>802-3-ethernet.mac-address-blacklist: --<br>802-3-ethernet.mtu: auto<br>802-3-ethernet.s390-subchannels: --<br>802-3-ethernet.s390-nettype: --<br>802-3-ethernet.s390-options: --<br>802-3-ethernet.wake-on-lan: default<br>802-3-ethernet.wake-on-lan-password: --<br>802-3-ethernet.accept-all-mac-addresses:-1 (default)<br>bridge-port.priority: 32<br>bridge-port.path-cost: 100<br>bridge-port.hairpin-mode: no<br>bridge-port.vlans: --<br><a href="http://GENERAL.NAME">GENERAL.NAME</a>: bridge0 port 1<br>GENERAL.UUID: 2b7a76c4-4bef-4c46-a5e8-3129b6361582<br>GENERAL.DEVICES: eth0<br>GENERAL.IP-IFACE: eth0<br>GENERAL.STATE: activated<br>GENERAL.DEFAULT: no<br>GENERAL.DEFAULT6: no<br>GENERAL.SPEC-OBJECT: --<br>GENERAL.VPN: no<br>GENERAL.DBUS-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1<br>GENERAL.CON-PATH: /org/freedesktop/NetworkManager/Settings/1<br>GENERAL.ZONE: --<br>GENERAL.MASTER-PATH: /org/freedesktop/NetworkManager/Devices/4<br>IP4.GATEWAY: --<br>IP6.GATEWAY: --<br></div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace"><br></div></div></div>