question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

System Monitor reports link local IPv6 address when global address exists

See original GitHub issue

The problem

The systemmonitor.ipv6_address on wlan0 is reported as fe80::…, which is a fixed address with scope link that never changes.

The more interesting IPv6 address is the scope global address, which due to upstream internet provider’s address assignment changes from time to time.

ifconfig -a lists both addresses, the link local one is listed first, followed by the global address.

Environment

– | –

Component Version
Home Assistant 0.117.6
Frontend version 20201021.4 - latest
docker_version 19.03.12
host_os HassOS 4.16
os_name Linux
os_version 4.19.127-v7l
python_version 3.8.6
supervisor 2020.11.0
  • Home Assistant Core release with the issue: 0.117.6
  • Last working Home Assistant Core release (if known):
  • Operating environment (OS/Container/Supervised/Core): OS
  • Integration causing this issue: systemmonitor
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/systemmonitor/

Problem-relevant configuration.yaml

sensor:
  - platform: systemmonitor
    resources:
      - type: ipv6_address
        arg: wlan0

Traceback/Error logs


Additional information

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mbo18commented, Jul 19, 2022

The code from this integration could be rewrite to use the work @bdraco did on the network integration. I think that it will solve this issue as it should be possible to get the link local IP address and the global one’s

0reactions
FelipeMartinicommented, Aug 11, 2022

no fixes for that yet?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why are link local addresses necessary In IPv6
Link-local addresses in IPv6 are exactly that: they are addresses that each and every network interface must have as soon as IPv6 is...
Read more >
What You Need to Know about IPv6 Link-Local Addresses
Link -local IPv6 addresses are on every interface of every IPv6-enabled host and router. They are essential for LAN-based Neighbor Discovery ...
Read more >
RFC 7404 - Using Only Link-Local Addressing inside an IPv6 ...
Using Only Link-Local Addressing inside an IPv6 Network (RFC 7404, November 2014)
Read more >
IPv6 Address Representation and Address Types - Cisco Press
Global unicast: A routable address in the IPv6 Internet, ... Link-local addresses are another type of unicast address as shown in Figure 4-6 ......
Read more >
The Time Is Still Now for IPv6 - American Registry for Internet ...
A system can have different types of IPv6 unicast addresses including: ... Unlike its IPv4 counterpart, this IPv6 link-local address is ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found