KNX ROUTER Mode with OH2 docker

Hi there,

I´m using OH2 in a docker image (openhab/openhab - latest SNAPSHOT) and migrated from the version (synopkg).
Now I can´t get the KNX ROUTER mode working.

Here my settings:

# 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.

# KNX gateway port (optional, defaults to 3671)
# Note: If you use eibd, setting to 6720

# Local endpoint to specify the multicast interface, no port is used (optional)

Do i habe to reset the ip address to something else (I´m using --net=host, though… as docker network setting)

What do the logs show?
Enable log:set DEBUG org.openhab.binding.knx in the console (ssh openhab@localhost -p 8101 with password: habopen).

My knx.cfg example for ROUTER type:


It’s always good to set the Multicast IP ( even if it is default when using ROUTER type of connection. The same applies for the bus address which should be unique on your KNX Bus.

I don’t have experience with Docker containers and multicasting… maybe some extra config options need to be set in docker?


tried your settings … annnnddd …it work´s …
Thanks man :slight_smile:
Couldn´t get the console running, though:

with the command from openhab page:

docker exec -it openhab /openhab/runtime/bin/client
client: Ignoring predefined value for KARAF_HOME
Logging in as openhab
Authentication failed

didn´t give me the opportunity to tell him the password

with ssh

ssh openhab@localhost -p 8101
ssh_exchange_identification: Connection closed by remote host
1 Like

Awesome! :slight_smile:

This could be due to several issues… I don’t know where to start troubleshooting here…
Maybe try to remove old ssh keys and then try again? (ssh-keygen -f "/root/.ssh/known_hosts" -R [localhost]:8101)
I haven’t played much with docker (planning to)

1 Like