# KNX gateway IP address
# (optional, if serialPort or connection type 'ROUTER' is specified)
ip=192.168.1.217
# Local KNX Binding bus address.
# Use it, when two or more openHAB Instances are connected to the same KNX bus.
# (optional, defaults to 0.0.0)
#busaddr=1.1.233
# Ignore local KNX Events, prevents internal events coming from
# 'openHAB event bus' a second time to be sent back to the 'openHAB event bus'.
# Note: To send back events second time is a Bug, but for backward compatibility, the behavior is not changed.
# For new installations, its recommend to set "ignorelocalevents=true"
# (optional, defaults to false)
ignorelocalevents=true
# KNX IP connection type. Could be either TUNNEL or ROUTER (optional, defaults to TUNNEL)
# Note: If you cannot get the ROUTER mode working (even if it claims it is connected),
# use TUNNEL mode instead with setting both the ip of the KNX gateway and the localIp.
type=TUNNEL
# KNX gateway port (optional, defaults to 3671)
# Note: If you use eibd, setting to 6720
#port=
# Local endpoint to specify the multicast interface, no port is used (optional)
localIp=192.168.1.217
2021-04-02 18:24:39.890 [ERROR] [nx.internal.connection.KNXConnection] - Error connecting to KNX bus: on connect to /192.168.1.217:3671
2021-04-02 18:24:39.888 [WARN ] [nx.internal.connection.KNXConnection] - Initial connection to KNX bus failed!
2021-04-02 18:24:39.888 [ERROR] [tuwien.auto.calimero ] - KNXnet/IP Tunneling 192.168.1.217:3671: communication failure on connect
java.net.BindException: Cannot assign requested address (Bind failed)
at java.net.PlainDatagramSocketImpl.bind0(Native Method) ~[?:1.8.0_152]
at java.net.AbstractPlainDatagramSocketImpl.bind(AbstractPlainDatagramSocketImpl.java:93) ~[?:1.8.0_152]
at java.net.DatagramSocket.bind(DatagramSocket.java:392) ~[?:1.8.0_152]
at java.net.DatagramSocket.<init>(DatagramSocket.java:242) ~[?:1.8.0_152]
at tuwien.auto.calimero.knxnetip.ClientConnection.connect(ClientConnection.java:147) ~[?:?]
at tuwien.auto.calimero.knxnetip.KNXnetIPTunnel.<init>(KNXnetIPTunnel.java:131) ~[?:?]
at tuwien.auto.calimero.link.KNXNetworkLinkIP.<init>(KNXNetworkLinkIP.java:142) ~[?:?]
at org.openhab.binding.knx.internal.connection.KNXConnection.connectByIp(KNXConnection.java:296) ~[?:?]
at org.openhab.binding.knx.internal.connection.KNXConnection.connect(KNXConnection.java:183) ~[?:?]
at org.openhab.binding.knx.internal.connection.KNXConnection.updated(KNXConnection.java:452) ~[?:?]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189) ~[?:?]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152) ~[?:?]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85) ~[?:?]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1118) ~[?:?]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1074) ~[?:?]
at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138) ~[?:?]
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105) ~[?:?]
at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_152]
Warrender6 hat geschrieben: ↑2. Apr 2021 18:55
Kann mir bitte jemand weiterhelfen?
Vielen Dank!
Hat denn Dein Gateway vom DHCP Server die in der cfg eingestellte Adresse auch erhalten?? Dies kannt Du auf dem Router oder DHCP Bereich feststellen. Die IP Adresse in der openHAB Konfiguration anzugeben, gewährleistet nicht, dass diese Adresse durch den DHCP Server vergeben wird.
Für solche wichtigen Geräte (also alles was zwingend immer die gleiche IP Adresse haben muss) gibt es eigentlich nur 2 Möglichkeiten.
feste IP Adresse im Gerät einstellen, welche ausserhalb des DHCP Server Scopes liegt
DHCP Reservation auf dem DHCP Server konfigurieren (MAC Adresse des Devices mit der IP Adresse aus dem DHCP Scope)
Bei "nur" DHCP bekommt das Gerät bei einem Neustart eine beliebige freie Adresse aus dem DHCP Scope.
Hoffe, dies hilft.
openHAB 4.1.0 Release mit openHABian in einem Debian Bookworm (LXC) unter Proxmox 8.1.3
Warrender6 hat geschrieben: ↑2. Apr 2021 22:07
Natürlich habe ich die Adresse statisch hinterlegt.
Warrender6 hat geschrieben: ↑2. Apr 2021 22:07
Sie ist auch vom openhab aus pingbar
Was ja nicht zwingend das Gateway ist. Liegt die Adresse evtl. zufällig im DHCP Scope Bereich und wurde vom DHCP einem anderen Gerät zugewiesen?
Dann würde das Gateway abschalten und wäre nicht erreichbar, ein Ping würde trotzdem klappen.
Wenn bei Dir DNS funktioniert, könnte ein nslookup auf die Adresse noch mehr Informationen liefern.
PS: Wenn alles klappt, würde ich eine Wechsel auf das 2.0 KNX Binding empfehlen. Für einen späteren Umstieg auf OH 3 sollte im Vorfeld den Legacy Bindings schon der Rücken gekehrt sein
openHAB 4.1.0 Release mit openHABian in einem Debian Bookworm (LXC) unter Proxmox 8.1.3