• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Default Gateway does not work
#7
(August-1st-2019, 08:00 AM)Armin@netPI Wrote: Ok now I am able to see your screen shots.

When I am looking to your screen shot you made using the command

Code:
ip route show

 then I see a default gateway 169.254.100.97 which is pretty much the same as in your netPI's LAN settings page (screen shot 2). So this matches

So my expectation is like you that whenever you ping to 8.8.8.8 for example you are getting a reply instantly.

On the other hand you are telling me that you were able to pull the "hilscher debian container" which tells me also that the principle connection over your gateway works and also the DNS server must have been working correctly since pulling an image goes over the name https://registry-1.docker.io/v2/ internally always.

My netPI here in the office network receives its IP over a gateway/server too and I think this is the case in 99% of all applications I know of with netP. I tried the same like you ... loading the debian stretch container ... starting it with host mode setting.

Here is what I did

Code:
root@NTB827EBD50766:/# ip route show
default via 10.11.0.10 dev eth0 proto dhcp metric 100
10.11.0.0/16 dev eth0 proto kernel scope link src 10.11.5.13 metric 100
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
root@NTB827EBD50766:/# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=55 time=1.652 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=55 time=1.648 ms
^C--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1.648/1.650/1.652/0.000 ms
root@NTB827EBD50766:/#

here it works as expected. Especially in "host mode" the container shares the TCP/IP stack of the host system so it runs 100% in the same context as the host ... and your host is able to pull images ... but the container is not able to ping an external IP address ... this really sounds weird to me and I defenitively cannot explain.

Thx
Armin

Maybe i explained not precise enough in which way i have pulled the container. Therefore i have changed the ip settings and connected the netPI to a completly different network. The setup with the modem had never access to the internet.

I did another small test.
I have changed the modem IP address to 192.168.178.1 and changed the netPI LAN settings as following.
   

Then it is possible to ping devices at the internet. All is fine.
   

When I change the modem IP sddress to 169.254.100.97 and don't touch the netPI's settings no connection to the internet is possible annymore. The netPI's IP address is set through DHCP at 169.254.100.70.

I think the network 169.254.100.xxx creates the problems. I can't imagine what is the reason for this. But in I have to use this network in my appliication.
  Reply


Messages In This Thread
Default Gateway does not work - by lunz1 - July-31st-2019, 12:37 PM
RE: Default Gateway does not work - by Armin@netPI - July-31st-2019, 12:46 PM
RE: Default Gateway does not work - by Armin@netPI - July-31st-2019, 02:26 PM
RE: Default Gateway does not work - by lunz1 - August-1st-2019, 06:47 AM
RE: Default Gateway does not work - by Armin@netPI - August-1st-2019, 08:00 AM
RE: Default Gateway does not work - by lunz1 - August-1st-2019, 08:38 AM
RE: Default Gateway does not work - by Armin@netPI - August-1st-2019, 08:15 AM
RE: Default Gateway does not work - by Armin@netPI - August-1st-2019, 11:34 AM
RE: Default Gateway does not work - by lunz1 - August-1st-2019, 12:08 PM
RE: Default Gateway does not work - by Armin@netPI - August-1st-2019, 12:09 PM
RE: Default Gateway does not work - by Armin@netPI - August-1st-2019, 01:22 PM
RE: Default Gateway does not work - by Armin@netPI - August-2nd-2019, 08:01 AM
RE: Default Gateway does not work - by lunz1 - August-13th-2019, 11:16 AM
RE: Default Gateway does not work - by Armin@netPI - August-14th-2019, 06:57 AM
RE: Default Gateway does not work - by Armin@netPI - August-14th-2019, 08:01 AM
RE: Default Gateway does not work - by Armin@netPI - August-15th-2019, 02:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVED] netPI stops working (502 - Bad Gateway) Andi 3 3,632 June-19th-2019, 03:58 PM
Last Post: Andi
  netPI & Edge Gateway differences MGharat 5 3,499 May-10th-2019, 10:48 AM
Last Post: Armin@netPI
  Pull image does not work Jonas.Sellmann@outlook.de 3 2,959 August-1st-2018, 08:07 AM
Last Post: Armin@netPI
  Edge Gateway Manager - Docker Management HagnSchool 1 2,158 June-8th-2018, 07:50 AM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)