Project

General

Profile

Actions

Bug #6446

open

Assigning an IPv6 Static Address still results in dynamic IPv6 being assigned

Added by r a over 8 years ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
networking
Start date:
2015-11-07
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
External Bug:

Description

My ISP has now recently starting providing IPv6, after initially configuring IPv6 on some laptops and VMs.
I started looking at enabling IPv6 on OpenIndiana Hipster.

In order to add an IPv6 address, you must enable autoconfiguration first as per https://docs.oracle.com/cd/E23824_01/html/821-1453/ipv6-config-tasks-64.html

  1. ipadm create-addr -T addconf e1000g1/v6
when I try to add a static address as per document
  1. ipadm create-addr -T static 2000:A:B:C:D:E:F:G/64 e1000g1/v6
    ipadm: Invalid arguments
    usage: create-addr [-t] -T static [-d] -a{local|remote}=addr[/prefixlen]
    <addrobj>
    create-addr [-t] -T dhcp [-w <seconds> | forever] <addrobj>
    create-addr [-t] -T addrconf [-i interface-id]
    [-p {stateful|stateless}={yes|no}] <addrobj>
if I change the addrobj then the address is added, eg
  1. ipadm create-addr -T static 2000:A:B:C:D:E:F:G/64 e1000g1/v6a

The document indicates to turn off IPv6 Address Autoconfiguration you need to include in /etc/inet/ndpd.conf the following definition

e1000g1 StatelessAddrConf false

When I check the Address Information
  1. ipadm show-addr o all
    ADDROBJ TYPE STATE CURRENT PERSISTENT ADDR
    lo0/v4 static ok U---
    --- 127.0.0.1/8
    e1000g1/v4 static ok U---- U-- A.B.C.D/N
    lo0/v6 static ok U---- --- ::1/128
    e1000g1/v6 addrconf ok U---- U-- fe80::::::::/10
    e1000g1/v6a static ok U---- U-- 2000::::::/64
    e1000g1/v6 addrconf ok U---- --- 2000::::::/64

I would like to able to remove the auto-configured Global address, I modified the ndpd.conf so that included

e1000g1 StatelessAddrConf false
e1000g1/v6 StatelessAddrConf false

I have tried them singly and together in different order but the autoconfigured Global Address keeps appearing.

The autoconfigured global address would initially disappear after performing a "pkill -HUP in.ndpd" but it always returns.

It should be possible to assign an IPv6 address statically without enabling autoconfiguration.

IPv6 configuration should be as easy that provided for example on Linuxmint.
Being able to set
a) static Link Local Address
b) DHCP Address only
c) DHCP Options only
d) Automatic (via Router Advertisements/DHCPv6)
e) manual


Related issues

Related to illumos gate - Feature #11916: Support for RFC 8106 in in.ndpdNew

Actions
Actions #1

Updated by r a about 8 years ago

As part of my IPv6 research for IPv6 training documentation, I created an ISC DHCPv6 server which was configured to broadcast a Router Advertisement IPv6 Stateful configuration packet. My OpenIndiana deployment despite being configured with static ipv6 addressing, requested an IPv6 address from the ISC DHCPv6 server.

So OpenIndiana despite being configured with a Static IPv6 Address and auto-configuration was turned off, responded to the IPv6 Router Advertisements.

Actions #2

Updated by Marcel Telka about 1 month ago

  • Project changed from OpenIndiana Distribution to illumos gate
  • Category set to networking
Actions #3

Updated by Marcel Telka about 1 month ago

Actions

Also available in: Atom PDF