• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Default Gateway does not work
#5
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
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  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,640 June-19th-2019, 03:58 PM
Last Post: Andi
  netPI & Edge Gateway differences MGharat 5 3,509 May-10th-2019, 10:48 AM
Last Post: Armin@netPI
  Pull image does not work Jonas.Sellmann@outlook.de 3 2,970 August-1st-2018, 08:07 AM
Last Post: Armin@netPI
  Edge Gateway Manager - Docker Management HagnSchool 1 2,166 June-8th-2018, 07:50 AM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 2 Guest(s)