Skip to content

IPv6 link-local address oddities on LinuxONE in CI #2368

@Trott

Description

@Trott

I could be mistaken somewhere somehow, but I think the problem with a test on LinuxONE might be a misconfiguration on the machine. I'm not sure who to ping about this. Maybe @mhdawson knows?

IPv6 link-local addresses start with fe80:.

Below is the output of os.networkInterfaces() on that machine. As you can see, the lo interface does not have a link-local address. I believe this is a violation of RFC 4291 Section 2.8. (Wikipedia has it in more plain language: "Unlike IPv4, IPv6 requires a link-local address on every network interface on which the IPv6 protocol is enabled, even when routable addresses are also assigned.")

{
  lo: [
    {
      address: '127.0.0.1',
      netmask: '255.0.0.0',
      family: 'IPv4',
      mac: '00:00:00:00:00:00',
      internal: true,
      cidr: '127.0.0.1/8'
    },
    {
      address: '::1',
      netmask: 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff',
      family: 'IPv6',
      mac: '00:00:00:00:00:00',
      internal: true,
      cidr: '::1/128',
      scopeid: 0
    }
  ],
  'enccw0.0.1000': [
    {
      address: '148.100.86.21',
      netmask: '255.255.254.0',
      family: 'IPv4',
      mac: '02:c1:21:0e:b0:cb',
      internal: false,
      cidr: '148.100.86.21/23'
    },
    {
      address: '2620:91:0:649:c1:21ff:fe0e:b0cb',
      netmask: 'ffff:ffff:ffff:ffff::',
      family: 'IPv6',
      mac: '02:c1:21:0e:b0:cb',
      internal: false,
      cidr: '2620:91:0:649:c1:21ff:fe0e:b0cb/64',
      scopeid: 0
    },
    {
      address: 'fe80::c1:21ff:fe0e:b0cb',
      netmask: 'ffff:ffff:ffff:ffff::',
      family: 'IPv6',
      mac: '02:c1:21:0e:b0:cb',
      internal: false,
      cidr: 'fe80::c1:21ff:fe0e:b0cb/64',
      scopeid: 2
    }
  ]
}

Originally posted by @Trott in nodejs/node#14500 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions