May-21st-2019, 09:43 AM
Hello,
Yes that is correct, I built a container uniting the codesys and the netx containers. I use the cifx0 interface for codesys ide connection and internet connection via a router which is at 192.168.0.1.
The following configuration does not work (Internet connection inside the container (host mode) where I do the ip route show command, but no internet connection of the host system (e.g. portainer webinterface) and no connection in other bridge mode containers (e.g. node-red in bridge mode).):
When I change the table inside the host mode containter to use only the wifi connection instead:
I do get internet connection on the host (portainer web interface) and the other containers (e.g. node-red in bridge mode).
My docker file and scripts are at github:
https://github.com/fokkersim/netPI-netx-ethernet-lan
Best regards,
Andreas
Yes that is correct, I built a container uniting the codesys and the netx containers. I use the cifx0 interface for codesys ide connection and internet connection via a router which is at 192.168.0.1.
The following configuration does not work (Internet connection inside the container (host mode) where I do the ip route show command, but no internet connection of the host system (e.g. portainer webinterface) and no connection in other bridge mode containers (e.g. node-red in bridge mode).):
Code:
pi@NetPi1:~$ ip route show
default via 192.168.0.1 dev cifx0
10.98.44.0/22 dev wlan0 proto kernel scope link src 10.98.45.128 metric 600
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1
192.168.0.0/24 dev cifx0 proto kernel scope link src 192.168.0.3
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.2 metric 100
Code:
pi@NePi1:~$ ip route show
default via 10.98.44.1 dev wlan0 proto static metric 600
10.98.44.0/22 dev wlan0 proto kernel scope link src 10.98.45.128 metric 600
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1
192.168.0.0/24 dev cifx0 proto kernel scope link src 192.168.0.3
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.2 metric 100
My docker file and scripts are at github:
https://github.com/fokkersim/netPI-netx-ethernet-lan
Best regards,
Andreas