Mosquitto MQTT- Broker eine feste IP Adresse vergeben

    • Offizieller Beitrag

    Und der Broker oder gerne auch der Pi sollen nun die 192.168.43.90

    Der Broker und Pi sind doch das selbe :denker:. Und warum die .90? Wenn der Pi immer der .82 kriegt, dann nimm doch die. Du wirst allerdings nicht sicherstellen können, dass dein Pi immer die gleiche IP kriegt.

  • Mosquitto MQTT- Broker eine feste IP Adresse vergeben? Schau mal ob du hier fündig wirst!

  • Die App ist eine Eigenentwicklung von nem Kumpel, jedoch ist der gerade verhindert um mir das anzupassen und da sich die App noch im Beta-Status befindet lässt sich das nicht Konfigurieren, da die IP fest vercodet wurde -.-*

    Und warum die .90?

    Warum?

    dbv seit der Beantwortung der Frage hast du schon zwei mal gefragt, wie oft denn noch?! :lol:

    • Offizieller Beitrag

    Das hab ich komplett ignoriert, mea culpa. Ich hab gelesen, dass man bei nem gerooteten Android den dhcp dienst anpassen kann. Ansonsten seh ich keine chance...ausser vielleicht 7 weitere geräte mit dem hotspot verbinden damit der pi dann die 90 kriegt. Oder ihr passt die App an, eine IP sollte immer einstellbar sein

  • Wie richte ich den mir eine 2.IP für die WLAN-Schnittstelle ein?

    Poste mal von deinem PI, die Ausgaben von:

    Code
    ps -fC dhcpcd
    cat /etc/dhcpcd.conf
    systemctl status systemd-networkd

    The most popular websites without IPv6 in Germany.  IPv6-Ausreden

    Meine PIs

    PI4B/8GB (border device) OpenBSD 7.4 (64bit): SSH-Server, WireGuard-Server, ircd-hybrid-Server, stunnel-Proxy, Mumble-Server

    PI3B+ FreeBSD 14.0-R-p6 (arm64): SSH-Serv., WireGuard-Serv., ircd-hybrid-Serv., stunnel-Proxy, Mumble-Serv., ddclient

    PI4B/4GB Bullseye-lite (64bit; modifiziert): SSH-Server, WireGuard-Server, ircd-hybrid-Server, stunnel-Proxy, Mumble-Server, botamusique, ample

  • Hm, laut man page scheint dhcpcd keine Anforderung einer bestimmten IP per DHCP zu unterstützen.

    Siehe "The host statement" in man dhcpd.conf(isc-dhcp-server_4.2.4)

    " ... The host declaration provides a way for the DHCP server to identify a DHCP or BOOTP client, and also a way to assign the client a static IP address. ..."

    Wenn du nichts zu sagen hast, sag einfach nichts.

    Einmal editiert, zuletzt von llutz (22. März 2018 um 17:51)

  • Das scheint neu zu sein – meine Pis laufen noch auf Jessie, da gibt's keinen Punkt "the host statement" in der man page. Dafür steht dort:

    Zitat

    static value

    Configures a static value. If you set ip_address then dhcpcd will not attempt to obtain a lease and just use the value for the address with an infinite lease time.

    Wenn dhcpcd das inzwischen doch kann, umso besser!

    Edith sagt: Ich schrieb von dhcpcd, nicht von dhcpd.

    Einmal editiert, zuletzt von Manul (22. März 2018 um 17:53)

  • Hey Hallo und guten Morgen,

    hier hat sich ja noch einiges getan, vielen Dank.

    Ich habe heute evtl. die Moeglichkeit den Handy Hotspot des Samsung S7 durch einen LTE-Router zu ersetzen. :)

    Aber das wird sich erst im laufe des tages klaren.

    Hier mal die gewuenschten config ausschnitte:


    ps -fC dhcpcd:

    UID PID PPID C STIME TTY TIME CMD

    root 411 1 0 09:02 ? 00:00:00 /sbin/dhcpcd -q -b

    cat /etc/dhcpcd.conf:

    # A sample configuration for dhcpcd.

    # See dhcpcd.conf(5) for details.

    # Allow users of this group to interact with dhcpcd via the control socket.

    #controlgroup wheel

    # Inform the DHCP server of our hostname for DDNS.

    hostname

    # Use the hardware address of the interface for the Client ID.

    clientid

    # or

    # Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.

    # Some non-RFC compliant DHCP servers do not reply with this set.

    # In this case, comment out duid and enable clientid above.

    #duid

    # Persist interface configuration when dhcpcd exits.

    persistent

    # Rapid commit support.

    # Safe to enable by default because it requires the equivalent option set

    # on the server to actually work.

    option rapid_commit

    # A list of options to request from the DHCP server.

    option domain_name_servers, domain_name, domain_search, host_name

    option classless_static_routes

    # Most distributions have NTP support.

    option ntp_servers

    # Respect the network MTU. This is applied to DHCP routes.

    option interface_mtu

    # A ServerID is required by RFC2131.

    require dhcp_server_identifier

    # Generate Stable Private IPv6 Addresses instead of hardware based ones

    slaac private

    # Example static IP configuration:

    #interface eth0

    #static ip_address=192.168.0.10/24

    #static ip6_address=fd51:42f8:caae:d92e::ff/64

    #static routers=192.168.0.1

    #static domain_name_servers=192.168.0.1 8.8.8.8 fd51:42f8:caae:d92e::1

    # It is possible to fall back to a static IP if DHCP fails:

    # define static profile

    #profile static_eth0

    #static ip_address=192.168.1.23/24

    #static routers=192.168.1.1

    #static domain_name_servers=192.168.1.1

    # fallback to static profile on eth0

    #interface eth0

    #fallback static_eth0

    systemctl status systemd-networkd:

    ● systemd-networkd.service - Network Service

    Loaded: loaded (/lib/systemd/system/systemd-networkd.service; disabled; vendo

    Active: inactive (dead)

    Docs: man:systemd-networkd.service(8)

    lines 1-4/4 (END)


    man dhcpd.conf:

    Kein Handbucheintrag für dhcpd.conf vorhanden

    ich versuche mich mal mit dem dhcpcd und berichte euch dann wieder.

    hoffe die .conf ausschnitte helfen euch weiter.

    Gruss und vielen Dank

    Fizzo361

  • Ich denke, an deiner dhcpcd.conf hat schon mal jemand rum gefummelt. Das dürfte (mit diesem Inhalt) nicht mehr der original Zustand dieser Datei sein. Ist dir da Näheres bekannt (wer und warum das gemacht worden ist)? ... bevor man was wieder daran ändert ...

    The most popular websites without IPv6 in Germany.  IPv6-Ausreden

    Meine PIs

    PI4B/8GB (border device) OpenBSD 7.4 (64bit): SSH-Server, WireGuard-Server, ircd-hybrid-Server, stunnel-Proxy, Mumble-Server

    PI3B+ FreeBSD 14.0-R-p6 (arm64): SSH-Serv., WireGuard-Serv., ircd-hybrid-Serv., stunnel-Proxy, Mumble-Serv., ddclient

    PI4B/4GB Bullseye-lite (64bit; modifiziert): SSH-Server, WireGuard-Server, ircd-hybrid-Server, stunnel-Proxy, Mumble-Server, botamusique, ample

Jetzt mitmachen!

Du hast noch kein Benutzerkonto auf unserer Seite? Registriere dich kostenlos und nimm an unserer Community teil!