System Monitor reports link local IPv6 address when global address exists
See original GitHub issueThe 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:
- Created 3 years ago
- Reactions:2
- Comments:17 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
no fixes for that yet?