ich hatte es mit einem reboot versucht und hatte weiterhin die 7er Adresse im Router hinterlegt.
Muss ich dann mal schauen wie man das korrekt nutzen kann, irgendwo im web sollte es ja Infos zum bridge und seinen configs geben
habe hier was feines zum Thema gefunden, werde damit mal heute Abend rumspielen und mir die idealen Settings einstellen.
Wenn es hilfreich war gebe ich gerne Feedback bzw. könnte man den Link noch in die Install Anleitung hinzufügen beim Hinweis mit der static Adresse.
Link...
https://www.tecmint.com/configure-netwo ... -in-linux/
edit:
ich vermute meinen Fehler gefunden zu haben, dadurch das ich den add befehl wohl zu oft auf br0 ausgeführt habe hat er mehrere IDs mit Settings hinterlegt und so ist die Änderung der IP schwieriger...
Code: Alles auswählen
pi@OrangePi:~$ nmcli connection show br0
connection.id: br0
connection.uuid: bf03430d-70d9-4141-8b18-5403e3585683
connection.stable-id: --
connection.interface-name: br0
connection.type: bridge
connection.autoconnect: yes
connection.autoconnect-priority: 0
connection.autoconnect-retries: -1 (default)
connection.timestamp: 0
connection.read-only: no
connection.permissions:
connection.zone: --
connection.master: --
connection.slave-type: --
connection.autoconnect-slaves: -1 (default)
connection.secondaries:
connection.gateway-ping-timeout: 0
connection.metered: unknown
connection.lldp: -1 (default)
ipv4.method: manual
ipv4.dns:
ipv4.dns-search:
ipv4.dns-options: (default)
ipv4.dns-priority: 0
ipv4.addresses: 192.168.180.4/24
ipv4.gateway: 192.168.180.1
ipv4.routes:
ipv4.route-metric: -1
ipv4.ignore-auto-routes: no
ipv4.ignore-auto-dns: no
ipv4.dhcp-client-id: --
ipv4.dhcp-timeout: 0
ipv4.dhcp-send-hostname: yes
ipv4.dhcp-hostname: --
ipv4.dhcp-fqdn: --
ipv4.never-default: no
ipv4.may-fail: yes
ipv4.dad-timeout: -1 (default)
ipv6.method: auto
ipv6.dns:
ipv6.dns-search:
ipv6.dns-options: (default)
ipv6.dns-priority: 0
ipv6.addresses:
ipv6.gateway: --
ipv6.routes:
ipv6.route-metric: -1
ipv6.ignore-auto-routes: no
ipv6.ignore-auto-dns: no
ipv6.never-default: no
ipv6.may-fail: yes
ipv6.ip6-privacy: -1 (unknown)
ipv6.addr-gen-mode: stable-privacy
ipv6.dhcp-send-hostname: yes
ipv6.dhcp-hostname: --
ipv6.token: --
bridge.mac-address: --
bridge.stp: yes
bridge.priority: 32768
bridge.forward-delay: 15
bridge.hello-time: 2
bridge.max-age: 20
bridge.ageing-time: 300
bridge.multicast-snooping: yes
proxy.method: none
proxy.browser-only: no
proxy.pac-url: --
proxy.pac-script: --
connection.id: br0
connection.uuid: 2a367a6c-69a5-4ccd-9db7-dd8b550252a4
connection.stable-id: --
connection.interface-name: br0
connection.type: bridge
connection.autoconnect: yes
connection.autoconnect-priority: 0
connection.autoconnect-retries: -1 (default)
connection.timestamp: 1553086616
connection.read-only: no
connection.permissions:
connection.zone: --
connection.master: --
connection.slave-type: --
connection.autoconnect-slaves: -1 (default)
connection.secondaries:
connection.gateway-ping-timeout: 0
connection.metered: unknown
connection.lldp: -1 (default)
ipv4.method: manual
ipv4.dns:
ipv4.dns-search:
ipv4.dns-options: (default)
ipv4.dns-priority: 0
ipv4.addresses: 192.168.180.7/24
ipv4.gateway: 192.168.180.1
ipv4.routes:
ipv4.route-metric: -1
ipv4.ignore-auto-routes: no
ipv4.ignore-auto-dns: no
ipv4.dhcp-client-id: --
ipv4.dhcp-timeout: 0
ipv4.dhcp-send-hostname: yes
ipv4.dhcp-hostname: --
ipv4.dhcp-fqdn: --
ipv4.never-default: no
ipv4.may-fail: yes
ipv4.dad-timeout: -1 (default)
ipv6.method: auto
ipv6.dns:
ipv6.dns-search:
ipv6.dns-options: (default)
ipv6.dns-priority: 0
ipv6.addresses:
ipv6.gateway: --
ipv6.routes:
ipv6.route-metric: -1
ipv6.ignore-auto-routes: no
ipv6.ignore-auto-dns: no
ipv6.never-default: no
ipv6.may-fail: yes
ipv6.ip6-privacy: -1 (unknown)
ipv6.addr-gen-mode: stable-privacy
ipv6.dhcp-send-hostname: yes
ipv6.dhcp-hostname: --
ipv6.token: --
bridge.mac-address: --
bridge.stp: yes
bridge.priority: 32768
bridge.forward-delay: 15
bridge.hello-time: 2
bridge.max-age: 20
bridge.ageing-time: 300
bridge.multicast-snooping: yes
proxy.method: none
proxy.browser-only: no
proxy.pac-url: --
proxy.pac-script: --
GENERAL.NAME: br0
GENERAL.UUID: 2a367a6c-69a5-4ccd-9db7-dd8b550252a4
GENERAL.DEVICES: br0
GENERAL.STATE: activated
GENERAL.DEFAULT: yes
GENERAL.DEFAULT6: yes
GENERAL.VPN: no
GENERAL.ZONE: --
GENERAL.DBUS-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/Settings/6
GENERAL.SPEC-OBJECT: --
GENERAL.MASTER-PATH: --
IP4.ADDRESS[1]: 192.168.180.7/24
IP4.GATEWAY: 192.168.180.1
IP4.ROUTE[1]: dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP6.ADDRESS[1]: 2001:16b8:207a:7600:cdf6:c84a:bc12:509d/64
IP6.ADDRESS[2]: fd00::a78b:7ada:baa:a9e3/64
IP6.ADDRESS[3]: fe80::4695:6f16:3630:7731/64
IP6.GATEWAY: fe80::e228:6dff:fe7c:2eb6
IP6.ROUTE[1]: dst = 2001:16b8:207a:7600::/56, nh = fe80::e228:6dff:fe7c:2eb6, mt = 425
IP6.ROUTE[2]: dst = fd00::/64, nh = fe80::e228:6dff:fe7c:2eb6, mt = 425
IP6.ROUTE[3]: dst = 2001:16b8:207a:7600::/64, nh = ::, mt = 425
IP6.DNS[1]: fd00::70ef:1aeb:e982:3cfd
DHCP6.OPTION[1]: requested_dhcp6_domain_search = 1
DHCP6.OPTION[2]: dhcp6_name_servers = fd00::70ef:1aeb:e982:3cfd
DHCP6.OPTION[3]: dhcp6_server_id = 0:3:0:1:e0:28:6d:7c:2e:b6
DHCP6.OPTION[4]: requested_dhcp6_client_id = 1
DHCP6.OPTION[5]: requested_dhcp6_name_servers = 1
DHCP6.OPTION[6]: dhcp6_unknown_86 = 20:1:16:b8:20:9:55:0:e2:28:6d:ff:fe:7c:2e:b6
DHCP6.OPTION[7]: dhcp6_client_id = 0:4:15:e8:74:2a:af:dd:aa:f8:f0:92:1:40:90:f6:a2:ce
connection.id: br0
connection.uuid: 7164751e-eed6-4cc3-9a8f-10c8828c75ba
connection.stable-id: --
connection.interface-name: br0
connection.type: bridge
connection.autoconnect: yes
connection.autoconnect-priority: 0
connection.autoconnect-retries: -1 (default)
connection.timestamp: 0
connection.read-only: no
connection.permissions:
connection.zone: --
connection.master: --
connection.slave-type: --
connection.autoconnect-slaves: -1 (default)
connection.secondaries:
connection.gateway-ping-timeout: 0
connection.metered: unknown
connection.lldp: -1 (default)
ipv4.method: auto
ipv4.dns:
ipv4.dns-search:
ipv4.dns-options: (default)
ipv4.dns-priority: 0
ipv4.addresses:
ipv4.gateway: --
ipv4.routes:
ipv4.route-metric: -1
ipv4.ignore-auto-routes: no
ipv4.ignore-auto-dns: no
ipv4.dhcp-client-id: --
ipv4.dhcp-timeout: 0
ipv4.dhcp-send-hostname: yes
ipv4.dhcp-hostname: --
ipv4.dhcp-fqdn: --
ipv4.never-default: no
ipv4.may-fail: yes
ipv4.dad-timeout: -1 (default)
ipv6.method: auto
ipv6.dns:
ipv6.dns-search:
ipv6.dns-options: (default)
ipv6.dns-priority: 0
ipv6.addresses:
ipv6.gateway: --
ipv6.routes:
ipv6.route-metric: -1
ipv6.ignore-auto-routes: no
ipv6.ignore-auto-dns: no
ipv6.never-default: no
ipv6.may-fail: yes
ipv6.ip6-privacy: -1 (unknown)
ipv6.addr-gen-mode: stable-privacy
ipv6.dhcp-send-hostname: yes
ipv6.dhcp-hostname: --
ipv6.token: --
bridge.mac-address: --
bridge.stp: yes
bridge.priority: 32768
bridge.forward-delay: 15
bridge.hello-time: 2
bridge.max-age: 20
bridge.ageing-time: 300
bridge.multicast-snooping: yes
proxy.method: none
proxy.browser-only: no
proxy.pac-url: --
proxy.pac-script: --
pi@OrangePi:~$
schau ich mir den bridge eth0 an ist da nur eine Settings enthalten...
Code: Alles auswählen
pi@OrangePi:~$ nmcli connection show bridge-slave-eth0
connection.id: bridge-slave-eth0
connection.uuid: 03b2495a-2120-423b-bd20-54d4c85a13c3
connection.stable-id: --
connection.interface-name: eth0
connection.type: 802-3-ethernet
connection.autoconnect: yes
connection.autoconnect-priority: 0
connection.autoconnect-retries: -1 (default)
connection.timestamp: 1553086916
connection.read-only: no
connection.permissions:
connection.zone: --
connection.master: br0
connection.slave-type: bridge
connection.autoconnect-slaves: -1 (default)
connection.secondaries:
connection.gateway-ping-timeout: 0
connection.metered: unknown
connection.lldp: -1 (default)
802-3-ethernet.port: --
802-3-ethernet.speed: 0
802-3-ethernet.duplex: --
802-3-ethernet.auto-negotiate: no
802-3-ethernet.mac-address: --
802-3-ethernet.cloned-mac-address: --
802-3-ethernet.generate-mac-address-mask:--
802-3-ethernet.mac-address-blacklist:
802-3-ethernet.mtu: auto
802-3-ethernet.s390-subchannels:
802-3-ethernet.s390-nettype: --
802-3-ethernet.s390-options:
802-3-ethernet.wake-on-lan: 1 (default)
802-3-ethernet.wake-on-lan-password: --
bridge-port.priority: 32
bridge-port.path-cost: 100
bridge-port.hairpin-mode: no
GENERAL.NAME: bridge-slave-eth0
GENERAL.UUID: 03b2495a-2120-423b-bd20-54d4c85a13c3
GENERAL.DEVICES: eth0
GENERAL.STATE: activated
GENERAL.DEFAULT: no
GENERAL.DEFAULT6: no
GENERAL.VPN: no
GENERAL.ZONE: --
GENERAL.DBUS-PATH: /org/freedesktop/NetworkManager/ActiveConnection/2
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/Settings/3
GENERAL.SPEC-OBJECT: --
GENERAL.MASTER-PATH: /org/freedesktop/NetworkManager/Devices/5
IP4.GATEWAY: --
IP6.GATEWAY: --
pi@OrangePi:~$
edit2:
habe mein Problem gelöst indem ich
br0 komplett entfernt habe und dann erneut hinzugefügt.
Zum entfernen folgenden Befehl...
und dann wieder die 2 Befehle aus der Anleitung ausführen...
Code: Alles auswählen
pi@OrangePi:~$ sudo nmcli connection add ifname br0 type bridge con-name br0
pi@OrangePi:~$ sudo nmcli connection add type bridge-slave ifname eth0 master br0
mit folgendem Befehl kann man überprüfen, ob die Befehle dann korrekt hinterlegt wurden...
Code: Alles auswählen
pi@OrangePi:~$ nmcli connection show
NAME UUID TYPE DEVICE
br0 2ee13146-d9b4-4d76-874e-75f3c72ae1df bridge br0
bridge-slave-eth0 03b2495a-2120-423b-bd20-54d4c85a13c3 802-3-ethernet eth0
Ifupdown (eth0) 681b428f-beaf-8932-dce4-687ed5bae28e 802-3-ethernet --
bridge-slave-eth0-1 3c572e7f-889c-4ed7-ad5e-e232b61df98e 802-3-ethernet --
bridge-slave-eth0-2 9d804553-d416-498f-9653-f56b8da0fd86 802-3-ethernet --
bridge-slave-eth0-3 f2257188-006b-43c4-86eb-34d3372744d3 802-3-ethernet --
pi@OrangePi:~$
wie man sieht, habe ich hier noch mehrere
bridge-slave-eth0 Einträge.
Einfach mit folgendem Befehl die Einträge mit Zahlen dahinter entfernen...
Code: Alles auswählen
pi@OrangePi:~$ sudo nmcli connection delete bridge-slave-eth0-1
am Ende sieht es dann im idealen Fall folgendermaßen aus...
Code: Alles auswählen
pi@OrangePi:~$ nmcli connection show
NAME UUID TYPE DEVICE
br0 2ee13146-d9b4-4d76-874e-75f3c72ae1df bridge br0
bridge-slave-eth0 03b2495a-2120-423b-bd20-54d4c85a13c3 802-3-ethernet eth0
Ifupdown (eth0) 681b428f-beaf-8932-dce4-687ed5bae28e 802-3-ethernet --
pi@OrangePi:~$
auch mein
br0 sieht ordentlich aus und die IP 192.168.180.4 wird ihm über die Fritzbox (DHCP Server) übergeben...
Code: Alles auswählen
pi@OrangePi:~$ nmcli connection show br0
connection.id: br0
connection.uuid: 2ee13146-d9b4-4d76-874e-75f3c72ae1df
connection.stable-id: --
connection.interface-name: br0
connection.type: bridge
connection.autoconnect: yes
connection.autoconnect-priority: 0
connection.autoconnect-retries: -1 (default)
connection.timestamp: 1553112839
connection.read-only: no
connection.permissions:
connection.zone: --
connection.master: --
connection.slave-type: --
connection.autoconnect-slaves: -1 (default)
connection.secondaries:
connection.gateway-ping-timeout: 0
connection.metered: unknown
connection.lldp: -1 (default)
ipv4.method: auto
ipv4.dns:
ipv4.dns-search:
ipv4.dns-options: (default)
ipv4.dns-priority: 0
ipv4.addresses:
ipv4.gateway: --
ipv4.routes:
ipv4.route-metric: -1
ipv4.ignore-auto-routes: no
ipv4.ignore-auto-dns: no
ipv4.dhcp-client-id: --
ipv4.dhcp-timeout: 0
ipv4.dhcp-send-hostname: yes
ipv4.dhcp-hostname: --
ipv4.dhcp-fqdn: --
ipv4.never-default: no
ipv4.may-fail: yes
ipv4.dad-timeout: -1 (default)
ipv6.method: auto
ipv6.dns:
ipv6.dns-search:
ipv6.dns-options: (default)
ipv6.dns-priority: 0
ipv6.addresses:
ipv6.gateway: --
ipv6.routes:
ipv6.route-metric: -1
ipv6.ignore-auto-routes: no
ipv6.ignore-auto-dns: no
ipv6.never-default: no
ipv6.may-fail: yes
ipv6.ip6-privacy: -1 (unknown)
ipv6.addr-gen-mode: stable-privacy
ipv6.dhcp-send-hostname: yes
ipv6.dhcp-hostname: --
ipv6.token: --
bridge.mac-address: --
bridge.stp: yes
bridge.priority: 32768
bridge.forward-delay: 15
bridge.hello-time: 2
bridge.max-age: 20
bridge.ageing-time: 300
bridge.multicast-snooping: yes
proxy.method: none
proxy.browser-only: no
proxy.pac-url: --
proxy.pac-script: --
GENERAL.NAME: br0
GENERAL.UUID: 2ee13146-d9b4-4d76-874e-75f3c72ae1df
GENERAL.DEVICES: br0
GENERAL.STATE: activated
GENERAL.DEFAULT: yes
GENERAL.DEFAULT6: yes
GENERAL.VPN: no
GENERAL.ZONE: --
GENERAL.DBUS-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/Settings/2
GENERAL.SPEC-OBJECT: --
GENERAL.MASTER-PATH: --
IP4.ADDRESS[1]: 192.168.180.4/24
IP4.GATEWAY: 192.168.180.1
IP4.DNS[1]: 192.168.180.3
IP4.DOMAIN[1]: fritz.box
DHCP4.OPTION[1]: requested_subnet_mask = 1
DHCP4.OPTION[2]: requested_rfc3442_classless_static_routes = 1
DHCP4.OPTION[3]: subnet_mask = 255.255.255.0
DHCP4.OPTION[4]: domain_name_servers = 192.168.180.3
DHCP4.OPTION[5]: ip_address = 192.168.180.4
DHCP4.OPTION[6]: requested_static_routes = 1
DHCP4.OPTION[7]: dhcp_server_identifier = 192.168.180.1
DHCP4.OPTION[8]: requested_time_offset = 1
DHCP4.OPTION[9]: broadcast_address = 192.168.180.255
DHCP4.OPTION[10]: requested_interface_mtu = 1
DHCP4.OPTION[11]: dhcp_rebinding_time = 756000
DHCP4.OPTION[12]: requested_domain_name_servers = 1
DHCP4.OPTION[13]: dhcp_message_type = 5
DHCP4.OPTION[14]: requested_broadcast_address = 1
DHCP4.OPTION[15]: routers = 192.168.180.1
DHCP4.OPTION[16]: dhcp_renewal_time = 432000
DHCP4.OPTION[17]: requested_domain_name = 1
DHCP4.OPTION[18]: domain_name = fritz.box
DHCP4.OPTION[19]: requested_routers = 1
DHCP4.OPTION[20]: expiry = 1553976839
DHCP4.OPTION[21]: requested_wpad = 1
DHCP4.OPTION[22]: requested_netbios_scope = 1
DHCP4.OPTION[23]: requested_ms_classless_static_routes = 1
DHCP4.OPTION[24]: requested_netbios_name_servers = 1
DHCP4.OPTION[25]: network_number = 192.168.180.0
DHCP4.OPTION[26]: requested_domain_search = 1
DHCP4.OPTION[27]: next_server = 192.168.180.1
DHCP4.OPTION[28]: ntp_servers = 192.168.180.1
DHCP4.OPTION[29]: requested_host_name = 1
DHCP4.OPTION[30]: dhcp_lease_time = 864000
DHCP4.OPTION[31]: requested_ntp_servers = 1
IP6.ADDRESS[1]: 2001:16b8:2094:2400:2f89:b109:7f4a:996/64
IP6.ADDRESS[2]: fd00::93ce:ad9:49fa:9fbd/64
IP6.ADDRESS[3]: fe80::177a:73d2:f43a:4565/64
IP6.GATEWAY: fe80::e228:6dff:fe7c:2eb6
IP6.ROUTE[1]: dst = 2001:16b8:2094:2400::/56, nh = fe80::e228:6dff:fe7c:2eb6, mt = 425
IP6.ROUTE[2]: dst = fd00::/64, nh = fe80::e228:6dff:fe7c:2eb6, mt = 425
IP6.ROUTE[3]: dst = 2001:16b8:2094:2400::/64, nh = ::, mt = 425
IP6.DNS[1]: fd00::70ef:1aeb:e982:3cfd
DHCP6.OPTION[1]: requested_dhcp6_domain_search = 1
DHCP6.OPTION[2]: dhcp6_name_servers = fd00::70ef:1aeb:e982:3cfd
DHCP6.OPTION[3]: dhcp6_server_id = 0:3:0:1:e0:28:6d:7c:2e:b6
DHCP6.OPTION[4]: requested_dhcp6_client_id = 1
DHCP6.OPTION[5]: requested_dhcp6_name_servers = 1
DHCP6.OPTION[6]: dhcp6_unknown_86 = 20:1:16:b8:20:94:24:0:e2:28:6d:ff:fe:7c:2e:b6
DHCP6.OPTION[7]: dhcp6_client_id = 0:4:15:e8:74:2a:af:dd:aa:f8:f0:92:1:40:90:f6:a2:ce
pi@OrangePi:~$