When creating subnets in Neutron, you can provide values to specify IPv6 Router Advertisement mode and IPv6 address mode.
Values to specify IPv6 Router Advertisement mode and IPv6 address mode can be one of: dhcpv6-stateful, dhcpv6-stateless or slaac (stateless address autoconfiguration).
The subnet settings take effect when it is added to a router.
openstack subnet create --ip-version 6 --subnet-range fd00:10:0:57::/64 --gateway fd00:10:0:57::1000 --network net1 subnet1 --ipv6-address-mode dhcpv6-stateful --ipv6-ra-mode dhcpv6-stateful openstack router subnet add Router1 subnet1
The following table explains the router advertisement flag settings and expected guest instance behavior.
S number | ipv6 ra mode | ipv6 address mode | A, M, O bits set in Router Advertisements sent from Extreme Router | Guest instance behavior |
---|---|---|---|---|
1 | slaac | slaac | 1, 0, 0 | Guest instance obtains IPv6 address from non-OpenStack router using SLAAC. |
2 | dhcpv6-stateful | dhcpv6-stateful | 0, 1, 1 | Guest instance obtains IPv6 address from dnsmasq using DHCPv6 stateful and optional information from dnsmasq using DHCPv6. |
3 | dhcpv6-stateless | dhcpv6-stateless | 1, 0, 1 | Guest instance obtains IPv6 address from non-OpenStack router using SLAAC and optional information from dnsmasq using DHCPv6. |
Note
Other combinations for ipv6-ra-mode and ipv6-address-mode in the above command are considered invalid.Leaf4# show running-config interface ve interface Ve 1330 vrf forwarding vrf_2052 ipv6 anycast-address fd00:10:0:57::1000/64 ipv6 nd managed-config-flag ipv6 nd other-config-flag ipv6 nd prefix fd00:10:0:57::/64 2592000 604800 no-autoconfig no shutdown !
managed-config-flag
is set on the
VE interface other-config-flag
is set on the VE
interface. no-autoconfig
is added to the
ipv6 nd prefix
command on the VE interface.