Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [gelöst] Debian (bullseye) feste IP Adresse

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst] Debian (bullseye) feste IP Adresse

    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      WolfgangFB last edited by WolfgangFB

      Ich möchte auf meinem Raspberry eine feste IP Adresse einstellen, aber meine Einträge in /etc/dhcpcd.conf werden ignoriert.

      # Example static IP configuration:
      interface eth0
      static ip_address=192.168.0.206/24
      #static ip6_address=fd51:42f8:caae:d92e::ff/64
      static routers=192.168.0.200
      static domain_name_servers=8.8.8.8
      

      Er nimmt sich immer eine DHCP Adresse.

      pi@raspberrypi202:~ $ ifconfig
      eth0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC>  mtu 1500
              inet 192.168.1.202  netmask 255.255.255.0  broadcast 192.168.1.255
      
      

      Eth0 ist also vorhanden und wird verwendet.

      Was muss ich machen, damit eine feste IP Adresse verwendet wird?

      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @WolfgangFB last edited by

        @wolfgangfb
        Anderes Netz?
        192.168.1
        192.168.0

        W 1 Reply Last reply Reply Quote 0
        • W
          WolfgangFB @Thomas Braun last edited by

          @thomas-braun

          Oops, vertippt, jetzt geändert, ändert aber nichts am Problem.

          pi@raspberrypi202:~ $ less /etc/dhcpcd.conf
          [...]
          # Example static IP configuration:
          interface eth0
          static ip_address=192.168.1.206/24
          #static ip6_address=fd51:42f8:caae:d92e::ff/64
          static routers=192.168.1.200
          static domain_name_servers=8.8.8.8
          
          pi@raspberrypi202:~ $ ifconfig
          eth0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC>  mtu 1500
                  inet 192.168.1.202  netmask 255.255.255.0  broadcast 192.168.1.255
                  inet6 fe80::ba27:ebff:fed4:d6e2  prefixlen 64  scopeid 0x20<link>
          
          
          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @WolfgangFB last edited by

            @wolfgangfb

            Statische IPs werden ja auch in der
            /etc/network/interfaces
            festgelegt.

            W 1 Reply Last reply Reply Quote 0
            • W
              WolfgangFB @Thomas Braun last edited by

              @thomas-braun

              Das habe ich, zusätzlich, gemäß

              https://www.elektronik-kompendium.de/sites/raspberry-pi/1912151.htm

              auch getan.

              pi@raspberrypi202:~ $ more /etc/network/interfaces
              # interfaces(5) file used by ifup(8) and ifdown(8)
              
              # Please note that this file is written to be used with dhcpcd
              # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
              
              # Include files from /etc/network/interfaces.d:
              source-directory /etc/network/interfaces.d
              
              # Ethernet
              auto eth0
              allow-hotplug eth0
              iface eth0 inet static
              address 192.168.1.206
              netmask 255.255.255.0
              gateway 192.168.1.200
              dns-nameservers 192.168.1.200
              
              1 Reply Last reply Reply Quote 0
              • Joe Iker
                Joe Iker last edited by

                Ist der Raspi mit Grafischer Oberfläche (Gnome) ?

                Wenn ja, kann es sein das unter Gnome der "network-manager" läuft, und der ignoriert die config der /etc/network/iterfaces....

                Ich hatte das Problem bei meinem Magic Mirror, der beim Boot immer kurz korrekt im Netz war und dann nach dem starten der GUI plötzlich per dhcp lief....

                W 1 Reply Last reply Reply Quote 0
                • W
                  WolfgangFB @Joe Iker last edited by

                  @joe-iker
                  Ich habe jetzt die Lösung gefunden.
                  Stutzig geworden bin ich, nachdem ich beim Bootvorgang einmal zugesehen habe, Da ist mir folgende Zeile aufgefallen:

                   Starting Wait for network to be configured by ConnMan...
                  

                  beim Googeln nach ConnMan bin ich dann auf folgende Seite gestoßen:

                  https://askubuntu.com/questions/798346/does-anybody-know-how-to-disable-connman

                  und habe in

                  /etc/connman/main.conf
                  
                  NetworkInterfaceBlacklist = eth0,vmnet,vboxnet,virbr,ifb,ve-,vb-
                  

                  aktiviert.
                  Dann hat das Booten erstmal ewig gedauert weil auf Connman gewartet werden musste, aber nach ca. 90 Sekunden hatte der Raspi dann die statische IP Adresse.

                  Dann habe ich ConnMan deaktiviert (keine Ahnung warum das überhaupt vorhanden ist/war)

                  sudo systemctl disable connman.service
                  

                  Und jetzt bootet der Raspi wieder zügig und hat die statische IP Adresse, die in

                  /etc/network/interfaces
                  

                  eingetrageen ist.

                  1 Reply Last reply Reply Quote 0
                  • D
                    dominik.braun82 last edited by

                    habe das gleiche Problem....

                    Wo muss ich den Begriff

                    /etc/connman/main.conf
                    

                    und

                    NetworkInterfaceBlacklist = eth0,vmnet,vboxnet,virbr,ifb,ve-,vb-
                    

                    eingeben?

                    Bei mir aufgetreten nach Umstellung auf Bullseye.

                    Danke

                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @dominik.braun82 last edited by

                      @dominik-braun82

                      Schmeiß den raus

                      sudo apt remove connman
                      

                      Wie kommt der überhaupt auf das System? In einer Grundinstallation von Bullseye Lite ist der nämlich nicht installiert:

                      Last login: Sat Jan 22 23:10:37 2022 from 100.75.198.95
                      
                      Wi-Fi is currently blocked by rfkill.
                      Use raspi-config to set the country before use.
                      
                      pi@chet:~ $ systemctl status connman
                      Unit connman.service could not be found.
                      pi@chet:~ $ apt policy connman
                      connman:
                        Installed: (none)
                        Candidate: 1.36-2.2
                        Version table:
                           1.36-2.2 500
                              500 http://deb.debian.org/debian bullseye/main arm64 Packages
                      pi@chet:~ $
                      
                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      Support us

                      ioBroker
                      Community Adapters
                      Donate
                      FAQ Cloud / IOT
                      HowTo: Node.js-Update
                      HowTo: Backup/Restore
                      Downloads
                      BLOG

                      727
                      Online

                      31.9k
                      Users

                      80.1k
                      Topics

                      1.3m
                      Posts

                      4
                      9
                      11777
                      Loading More Posts
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes
                      Reply
                      • Reply as topic
                      Log in to reply
                      Community
                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                      The ioBroker Community 2014-2023
                      logo