May-22nd-2019, 10:01 AM
(This post was last modified: May-22nd-2019, 10:02 AM by Armin@netPI.)
Hello Andreas,
can't confirm.
I deployed the latest container as you do. I configured "dhcp" also. I do not use any Wifi at all, just "eth0"l.
Then I connected a cable to netPIs industrial ethernet port with a DHCP server. So "cifx0" is getting an ip address and gateway settings etc. automatically.
Then I started a putty session and opened a console on port 22 over "cifx0". The I removed the "eth0" cable, so the only physical connection is "cifx0"
Then I called:
Since "eth0" is no more ... the first ping failed. Looking to route shows me that the default gateway goes over "eth0". I change to "cifx0" and then ping to google.com works, so I have Internet access.
Thx
Armin
can't confirm.
I deployed the latest container as you do. I configured "dhcp" also. I do not use any Wifi at all, just "eth0"l.
Then I connected a cable to netPIs industrial ethernet port with a DHCP server. So "cifx0" is getting an ip address and gateway settings etc. automatically.
Then I started a putty session and opened a console on port 22 over "cifx0". The I removed the "eth0" cable, so the only physical connection is "cifx0"
Then I called:
Code:
root@2d70db465dc3:~# ping google.com
^C
root@2d70db465dc3:~# ip route show
default via 172.17.0.1 dev eth0
10.11.0.0/16 dev cifx0 proto kernel scope link src 10.11.5.54
172.17.0.0/16 dev eth0 proto kernel scope link src 172.17.0.2
root@2d70db465dc3:~# ip route del default
root@2d70db465dc3:~# ip route add default via 10.11.0.10 dev cifx0
root@2d70db465dc3:~# ip route show
default via 10.11.0.10 dev cifx0
10.11.0.0/16 dev cifx0 proto kernel scope link src 10.11.5.54
172.17.0.0/16 dev eth0 proto kernel scope link src 172.17.0.2
root@2d70db465dc3:~# ping google.com
PING google.com (172.217.23.142): 56 data bytes
64 bytes from 172.217.23.142: icmp_seq=0 ttl=55 time=2.812 ms
64 bytes from 172.217.23.142: icmp_seq=1 ttl=55 time=2.340 ms
Since "eth0" is no more ... the first ping failed. Looking to route shows me that the default gateway goes over "eth0". I change to "cifx0" and then ping to google.com works, so I have Internet access.
Thx
Armin
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)