Just a curious question. Pi2 - MyOSMC - Eth0 Status No Internet but all apparently works whitout any issue. Strange :)

the title I think describes my doubt/question.

My Pi2 it’s connected by LAN to my router and have a static ip address.
192.168.1.4 DNS used 1.1.1.1 and 1.0.0.1. Gateway it’s my router 192.168.1.1 and Mask it’s correctly configurated at 255.255.255.0.

I can use very well all internet services like youtube… twitch and all other streaming services but if i try to look on MyOSMC settings in the ETH0 Status it’s report, wrogly, NO INTERNET.

How it’s possible ?
I have tryed to do a search for similar by google and found some similar thread about Vero device. I have read some of this whitout founding somethigs like “universal” solution.
For example apparently i found this at most recent thread about this issue:

I have also tryed to follow same ssh command on my Pi2 setup and for example i can ping the google dns or obtain similar result to other ssh command.
What can I check further?

Hi,

sounds like your router is partially blocking communciation to the internet since you use a static IP.
So, look at your router’s manual and check whether there’s something to be done for static IPs. Or just for tests use DHCP.

mmmm… it’s interesting i need some test and try to report a feedback later.

From MyOSMC i have tryed to enable the DHCP and it’s appears (Connected) after some seconds.

For some hours i try to use OSMC whit dhcp enabled and i back to see on MyOSMC if somethings it’s be changed. It’s not i retry to reconfigure my usually Static ip and see what’s append.

could it be a problem that it is attached via a router switch?
To be precise:
192.168.1.1 it’s my connected internet router… italian fttc. it’s located in bedroom.
192.168.1.254 it’s my switch located on launchroom.

The both router it’s connected by a lan cable… x.254 has openwrt installed over it. x.1 it’s have the stock tim firmware. On openwrt i have apparently disabled its dhcp server (to leave active only one by my tim router) and it’s firewall… I have no idea what to check further :slight_smile:

But MyOSMC what does it check to determine if it is connected to the internet or not ?

EDIT
Otherwise i can right now post the command result from ssh:

root@osmc:~# arp -e
Address                  HWtype  HWaddress           Flags Mask            Iface
_gateway                 ether   10:13:31:b1:37:c0   C                     eth0
192.168.1.2              ether   d0:17:c2:ae:4f:c1   C                     eth0
root@osmc:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=115 time=18.718 ms
64 bytes from 8.8.8.8: seq=1 ttl=115 time=18.170 ms
64 bytes from 8.8.8.8: seq=2 ttl=115 time=18.176 ms
64 bytes from 8.8.8.8: seq=3 ttl=115 time=18.341 ms
64 bytes from 8.8.8.8: seq=4 ttl=115 time=18.591 ms
64 bytes from 8.8.8.8: seq=5 ttl=115 time=18.679 ms
64 bytes from 8.8.8.8: seq=6 ttl=115 time=18.251 ms
64 bytes from 8.8.8.8: seq=7 ttl=115 time=18.145 ms
64 bytes from 8.8.8.8: seq=8 ttl=115 time=18.214 ms
64 bytes from 8.8.8.8: seq=9 ttl=115 time=18.305 ms
64 bytes from 8.8.8.8: seq=10 ttl=115 time=18.101 ms
64 bytes from 8.8.8.8: seq=11 ttl=115 time=18.575 ms
^C
--- 8.8.8.8 ping statistics ---
12 packets transmitted, 12 packets received, 0% packet loss
round-trip min/avg/max = 18.101/18.355/18.718 ms
root@osmc:~# ifconfig
eth0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC>  mtu 1500
        inet 192.168.1.4  netmask 255.255.255.0  broadcast 192.168.1.255
        ether b8:27:eb:c2:b8:df  txqueuelen 1000  (Ethernet)
        RX packets 2167  bytes 975245 (952.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1661  bytes 231021 (225.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 243  bytes 16353 (15.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 243  bytes 16353 (15.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
root@osmc:~# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether b8:27:eb:c2:b8:df brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.4/24 brd 192.168.1.255 scope global eth0
       valid_lft forever preferred_lft forever
root@osmc:~# ip ro
default via 192.168.1.1 dev eth0
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.4
192.168.1.1 dev eth0 scope link
root@osmc:~# cat /etc/resolv.conf
# Generated by Connection Manager
nameserver 1.1.1.1
nameserver 1.0.0.1
root@osmc:~# arp -an
? (192.168.1.1) at 10:13:31:b1:37:c0 [ether] on eth0
? (192.168.1.2) at d0:17:c2:ae:4f:c1 [ether] on eth0

There’s some command output found on other similar thread… apparently all it’s ok…

  1. What’s the output from running connmanctl state ?
  2. The information you have supplied is interesting but please also supply full logs: grab-logs -A

Take a look at this, which describes how connman decides if it’s online during startup. Note that it looks like DNS must be available for it to detect an online status.

1 Like

Ok then if the problem were more serious I would have no problem posting the full log :slight_smile:

what seems strange to me is that for example streaming it’s works… but in myosmc it’s like my pi2 is offline. Very strange :slight_smile:

About this connam…I was reading this excerpt:

During the online check procedure, ConnMan will temporarily install
a host route to both the ipv4.connman.net and ipv6.connman.net so that
the online check query can be directed via the correct network
interface which the connected service is using.

could it be the problem that i have disabled ipv6? also on my FTTC Router and also on openwrt?
maybe since the ipv6 test fails it’s consider offline connection directly ?

edit - otherwise this is the result:

root@osmc:~# connmanctl state
  State = online
  OfflineMode = False
  SessionMode = False

So you “have a problem” posting logs? What’s that supposed to mean? Look, if you come to this site asking for help, you know we often need logs to see what’s happening.

Wait it’s problably a traslation issue/misunderstanding… it’s not a problems for me posting a full log if this issue/trouble if it’s really needed :slight_smile:

For now I hope the problem is not serious… if the problem remains limited on MyOSMC maybe osmc is not the problem but mine home networks.

@dillthedog and @JimKnopf and other users that thai noticed this thread:

Finally look here… apparently i have resolved this strange issue.
On OSMC and on my Pi2 config i din’t touch anythings… you can see my current and ever user network setting. Static IP… Gateway it’s my FTCC router and the dns by cloudflare.

Look finally now it’s correctly say “Connected”.

On my networks i have made some modification apparently on my Router/Switch whit openwrt. Firstly i have update to latest and current openwrt version.
After that i have try to look some configuration on it… for example i see there’s a firewall enabled by default on openwrt and its can’t be disabled. After search some suggestion over internet how i can disable firewall on openwrt i have ENABLED all stock rules to accept (some of this it’s setted to reject) and i have create an addictional rules to accept all traffic to all service (UDP and TCP) for all ports.

i don’t know if this helped me solve the problem… because i have also modified so other configuration on openwrt. i wouldn’t say it was only the very old openwrt version create the issue ?

let’s see what will happen in the next few days… I’ll keep an eye on it :slight_smile:

Consider this reply wrote whit help by Google Translator… may contain errors :slight_smile:

Surely there is a firewall enabled but that only blocks incoming WAN traffic and ensures that outgoing connections are going through the NAT.
You should not change any of the WAN firewall rules and I would also be careful with others. I run Openwrt on all my routers and access points and have not come across this issue.

1 Like

maybe the problem is that i have 2 routers ? To be precise:
My gateway it’s a technicolor DGA4132… it’s also have a firewall enabled and i can set the level protection and I’ve always kept this up to “Medium”.

My second router it’s an Pirelli AGPF ([OpenWrt Wiki] Pirelli Alice Gate VoIP 2 Plus Wi-Fi Business) i use this as switch on my TV Rooms.
Also this there’s have a firewall rules and there’s no have a WAN ports because it’s not a real switch. For connect the both router i have used a “normal” LAN ports.

Ora ho settato tutte le regole cosi:

This my seconds router it’s not connected directly on internet and perhaps the fact that it has all the rules open it’s not a big problem ?
honestly if I had to report everything to default settings I don’t think there is a special feature…

EDIT
Anyway i have recently buy my new Raspberry Pi4 4GB Labist Kit… suppose i have to me next 16 February. Respect my current Pi2 there’s have a Gigabit lan and to take full advantage of it i need to change the Pirelli AGPF whit a switch whit gigabit lan :slight_smile:

On Amazon i have take a look on a Tplink switch whit wireless access… about 30€. do you have any other advice for the purchase ?