Skip to end of metadata
Go to start of metadata

As of 20150917T235937Z IPv6 support has been added to vmadm via a new property "ips". The ips parameter supports multiple addresses including IPv4, IPv6, dhcp (for IPv4), and addrconf (for SLAAC or DHCPv6).

Link local addresses, DHCPv6 and static are implicitly permitted. As of 20151224T060557Z, SLAAC addresses are, too. Before that, though, each SLAAC address needs to be added to nics.*.allowed_ips or allow_ip_spoofing needs to be enabled. If an IPv6 address or addrconf are specified, in.ndpd will be automatically enabled.

In this example, the expected IPv6 address has been derived from the "mac" field via EUI-64 and added to "allowed_ips".

See vmadm(1) for more information.

Labels:
ipv6 ipv6 Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Mar 15, 2013

    Stateless Auto Configuration seems to work, or am I missing something?

    1. Enable ip spoofing as above

    2. Setup the interface - #ifconfig net0 inet6 plumb up

    3. Kick the Neighbour Discovery Service - #svcadm enable ndp

    The zone should start broadcasting router solicitations, and auto configure address(es) based on the prefix(es) received from the router(s).

    1. Mar 15, 2013

      3. enabling ndp indeed seems sufficient.
      When enabling ndp one does not seem to have to configure the static config for net0/v6s.
      I used the custom SMF service and script and noticed on 1 of my zones that ndp was enabled.

      irssi% svcs -l ndp                                                                                                                                                                     
      fmri         svc:/network/routing/ndp:default                                                                                                                                          
      name         in.ndpd IPv6 neighbour discovery daemon                                                                                                                                   
      enabled      true (temporary)                                                                                                                                                          
      state        online                                                                                                                                                                    
      next_state   none                                                                                                                                                                      
      state_time   Wed Mar 13 18:12:20 2013                                                                                                                                                  
      logfile      /var/svc/log/network-routing-ndp:default.log                                                                                                                              
      restarter    svc:/system/svc/restarter:default                                                                                                                                         
      contract_id  361                                                                                                                                                                       
      dependency   require_all/refresh svc:/network/routing-setup (online)                                                                                                                   

      irssi% ipadm show-addr                                                                                                                                                                 
      ADDROBJ           TYPE     STATE        ADDR                                                                                                                                           
      lo0/v4            static   ok           127.0.0.1/8                                                                                                                                    
      net0/_a           static   ok           192.168.3.201/24                                                                                                                               
      lo0/v6            static   ok           ::1/128                                                                                                                                        
      net0/v6a          addrconf ok           fe80::10d3:4dff:fe7f:fec4/10                                                                                                                   
      net0/v6s          static   ok           2001:980:93d7:1:10d3:4dff:fe7f:fec4/64                                                                                                         
      net0/?            addrconf down         2001:980:93d7:1:10d3:4dff:fe7f:fec4/64

      The last line is repeated many times.

      Then I disabled ndp:

      irssi% s svcadm disable ndp                                                                                                                                                            
      Password:                                                                                                                                                                              
      irssi% svcs -l ndp                                                                                                                                                                     
      fmri         svc:/network/routing/ndp:default                                                                                                                                          
      name         in.ndpd IPv6 neighbour discovery daemon                                                                                                                                   
      enabled      false                                                                                                                                                                     
      state        disabled                                                                                                                                                                  
      next_state   none                                                                                                                                                                      
      state_time   Fri Mar 15 22:41:33 2013                                                                                                                                                  
      logfile      /var/svc/log/network-routing-ndp:default.log                                                                                                                              
      restarter    svc:/system/svc/restarter:default                                                                                                                                         
      contract_id                                                                                                                                                                            
      dependency   require_all/refresh svc:/network/routing-setup (online)

      irssi% ipadm show-addr                                                                                                                                                                 
      ADDROBJ           TYPE     STATE        ADDR                                                                                                                                           
      lo0/v4            static   ok           127.0.0.1/8                                                                                                                                    
      net0/_a           static   ok           192.168.3.201/24                                                                                                                               
      lo0/v6            static   ok           ::1/128                                                                                                                                        
      net0/v6a          addrconf ok           fe80::10d3:4dff:fe7f:fec4/10                                                                                                                   
      net0/v6s          static   ok           2001:980:93d7:1:10d3:4dff:fe7f:fec4/64                                                                                                         
      net0/v6a          addrconf down         2001:980:93d7:1:10d3:4dff:fe7f:fec4/64

  2. Dec 18, 2014

    SLAAC is also working in lx branded zones

    1. Oct 15, 2017

      This can be configured during zone creation. See LX Branded Zones.