Re: [openstack-dev] Configuring ISC dhclient on guest to acquire ipv6 default gateway

2015-12-29 Thread Vladimir Eremin
Hi Andrei,

You’re seeing default route as a link-local address of router just because the 
routing things is working this way in IPv6 in general, not in OpenStack. 
gateway_ip is actually set on router interface, and could be reachable, and 
actually valid choice for routing, but there is no way (and it makes no sense) 
to automatically configure router’s GUA as a default gateway address.

-- 
With best regards,
Vladimir Eremin,
Fuel Deployment Engineer,
Mirantis, Inc.



> On Dec 28, 2015, at 6:35 PM, Andrei Radulescu-Banu 
> <andrei.radulescu-b...@exfo.com> wrote:
> 
> Thanks for your help, Vladimir. You are right, now that I look more closely, 
> in dhcpv6-stateful mode the default gateway is acquired through router 
> advertisement (instead of dhcp6 options). And the default gateway I get is 
> the link-local address instead of the configured gateway_ip of 1:2:3:4::1.
> 
> This was confusing, to say the least - and not well explained anywhere - but 
> it is working. I've tested all three modes of configuration 
> (ipv6_address_mode and ipv6_ra_mode both simultaneously set to 
> dhcpv6-stateful, dhcpv6-stateless or slaac). In all cases I am acquiring a 
> default gateway - and it is the link local address of the default gateway. I 
> can tell it works because the default gateway is pingable through the 
> interface, and the low 3 bytes of the default gateway ip6 address matches the 
> low 3 bytes of the gateway MAC address. (The MAC address is viewable when 
> reviewing the router interfaces through the Horizon UI, for example - the 
> actual link local ip6 addresses of the default gateway are not displayed).
> 
> Best,
> Andrei
> 
> 
> --
> 
> Message: 2
> Date: Fri, 25 Dec 2015 19:07:31 +0300
> From: Vladimir Eremin <vere...@mirantis.com>
> To: "OpenStack Development Mailing List (not for usage questions)"
>   <openstack-dev@lists.openstack.org>
> Subject: Re: [openstack-dev] Configuring ISC dhclient on guest to
>   acquire ipv6 default gateway
> Message-ID: <5864af60-644c-438e-9d82-80c4fced1...@mirantis.com>
> Content-Type: text/plain; charset=utf-8
> 
> Hi Andrei,
> 
> Default gateways for IPv6 is always configured with Router Advertisements 
> (RA), no matter what addressing mode is used. Please ensure that:
> 
> - you have a virtual router connected to your IPv6 subnet, this would provide 
> RA (and actual router) in your network
> - accept_ra is enabled in your guest OS: sysctl -a | grep accept_ra
> 
> -- 
> With best regards,
> Vladimir Eremin,
> Fuel Deployment Engineer,
> Mirantis, Inc.
> 
> 
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Configuring ISC dhclient on guest to acquire ipv6 default gateway

2015-12-28 Thread Andrei Radulescu-Banu
Thanks for your help, Vladimir. You are right, now that I look more closely, in 
dhcpv6-stateful mode the default gateway is acquired through router 
advertisement (instead of dhcp6 options). And the default gateway I get is the 
link-local address instead of the configured gateway_ip of 1:2:3:4::1.

This was confusing, to say the least - and not well explained anywhere - but it 
is working. I've tested all three modes of configuration (ipv6_address_mode and 
ipv6_ra_mode both simultaneously set to dhcpv6-stateful, dhcpv6-stateless or 
slaac). In all cases I am acquiring a default gateway - and it is the link 
local address of the default gateway. I can tell it works because the default 
gateway is pingable through the interface, and the low 3 bytes of the default 
gateway ip6 address matches the low 3 bytes of the gateway MAC address. (The 
MAC address is viewable when reviewing the router interfaces through the 
Horizon UI, for example - the actual link local ip6 addresses of the default 
gateway are not displayed).

Best,
Andrei


--

Message: 2
Date: Fri, 25 Dec 2015 19:07:31 +0300
From: Vladimir Eremin <vere...@mirantis.com>
To: "OpenStack Development Mailing List (not for usage questions)"
<openstack-dev@lists.openstack.org>
Subject: Re: [openstack-dev] Configuring ISC dhclient on guest to
    acquire ipv6 default gateway
Message-ID: <5864af60-644c-438e-9d82-80c4fced1...@mirantis.com>
Content-Type: text/plain; charset=utf-8

Hi Andrei,

Default gateways for IPv6 is always configured with Router Advertisements (RA), 
no matter what addressing mode is used. Please ensure that:

- you have a virtual router connected to your IPv6 subnet, this would provide 
RA (and actual router) in your network
- accept_ra is enabled in your guest OS: sysctl -a | grep accept_ra

-- 
With best regards,
Vladimir Eremin,
Fuel Deployment Engineer,
Mirantis, Inc.


__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Configuring ISC dhclient on guest to acquire ipv6 default gateway

2015-12-25 Thread Vladimir Eremin
Hi Andrei,

Default gateways for IPv6 is always configured with Router Advertisements (RA), 
no matter what addressing mode is used. Please ensure that:

- you have a virtual router connected to your IPv6 subnet, this would provide 
RA (and actual router) in your network
- accept_ra is enabled in your guest OS: sysctl -a | grep accept_ra

-- 
With best regards,
Vladimir Eremin,
Fuel Deployment Engineer,
Mirantis, Inc.



> On Dec 23, 2015, at 12:50 AM, Andrei Radulescu-Banu 
>  wrote:
> 
> Hi all,
>  
> I’ve been trying for a few days to understand how this should work. My guest 
> OS is Linux based, using ISC dhclient. In devstack I have configured an ipv6 
> net and subnet:
>  
> [stack@localhost images]$ neutron net-show private6
> +---+--+
> | Field | Value|
> +---+--+
> | admin_state_up| True |
> | availability_zone_hints   |  |
> | availability_zones| nova |
> | id| 55170162-305e-4d04-a159-2a141f0cd685 |
> | mtu   | 0|
> | name  | private6 |
> | port_security_enabled | True |
> | provider:network_type | vxlan|
> | provider:physical_network |  |
> | provider:segmentation_id  | 1063 |
> | router:external   | False|
> | shared| False|
> | status| ACTIVE   |
> | subnets   | 4ea435ac-0ede-4dbc-9096-d97c256cc4d5 |
> | tenant_id | 9ede0af4cbe94caf8222b1dcfaac0754 |
> +---+--+
>  
> [stack@localhost images]$ neutron subnet-show private-subnet6
> +---+--+
> | Field | Value|
> +---+--+
> | allocation_pools  | {"start": "1:2:3:4::100", "end": "1:2:3:4::200"} |
> | cidr  | 1:2:3:4::/64 |
> | dns_nameservers   | 1:2:3:4::2   |
> | enable_dhcp   | True |
> | gateway_ip| 1:2:3:4::1   |
> | host_routes   |  |
> | id| 4ea435ac-0ede-4dbc-9096-d97c256cc4d5 |
> | ip_version| 6|
> | ipv6_address_mode | dhcpv6-stateful  |
> | ipv6_ra_mode  | dhcpv6-stateful  |
> | name  | private-subnet6  |
> | network_id| 55170162-305e-4d04-a159-2a141f0cd685 |
> | subnetpool_id |  |
> | tenant_id | 9ede0af4cbe94caf8222b1dcfaac0754 |
> +---+--+
>  
> When running dhclient on the interface, however, I am only able to acquire 
> the interface address, but not the interface default gateway. I suppose the 
> default gateway should be obtained through dhcp6 rather than neighbor 
> discovery, because I set both ipv6_address_mode and ipv6_ra_mode to 
> dhcpv6-stateful.
>  
> Any ideas? 
>  
> Thanks,
> Andrei
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Configuring ISC dhclient on guest to acquire ipv6 default gateway

2015-12-24 Thread Dmitry Bilunov
Hello, Andrei.

Could you provide the pcap file of your DHCPv6 transactions between server
and client?
You can generate such file using sudo tcpdump -w /path/to/file.pcap -i eth0
-n "ip6 and udp and port 547"

On Wed, Dec 23, 2015 at 12:50 AM, Andrei Radulescu-Banu <
andrei.radulescu-b...@exfo.com> wrote:

> Hi all,
>
>
>
> I’ve been trying for a few days to understand how this should work. My
> guest OS is Linux based, using ISC dhclient. In devstack I have configured
> an ipv6 net and subnet:
>
>
>
> [stack@localhost images]$ neutron net-show private6
>
> +---+--+
>
> | Field | Value|
>
> +---+--+
>
> | admin_state_up| True |
>
> | availability_zone_hints   |  |
>
> | availability_zones| nova |
>
> | id| 55170162-305e-4d04-a159-2a141f0cd685 |
>
> | mtu   | 0|
>
> | name  | private6 |
>
> | port_security_enabled | True |
>
> | provider:network_type | vxlan|
>
> | provider:physical_network |  |
>
> | provider:segmentation_id  | 1063 |
>
> | router:external   | False|
>
> | shared| False|
>
> | status| ACTIVE   |
>
> | subnets   | 4ea435ac-0ede-4dbc-9096-d97c256cc4d5 |
>
> | tenant_id | 9ede0af4cbe94caf8222b1dcfaac0754 |
>
> +---+--+
>
>
>
> [stack@localhost images]$ neutron subnet-show private-subnet6
>
> +---+--+
>
> | Field | Value|
>
> +---+--+
>
> | allocation_pools  | {"start": "1:2:3:4::100", "end": "1:2:3:4::200"} |
>
> | cidr  | 1:2:3:4::/64 |
>
> | dns_nameservers   | 1:2:3:4::2   |
>
> | enable_dhcp   | True |
>
> | gateway_ip| 1:2:3:4::1   |
>
> | host_routes   |  |
>
> | id| 4ea435ac-0ede-4dbc-9096-d97c256cc4d5 |
>
> | ip_version| 6|
>
> | ipv6_address_mode | dhcpv6-stateful  |
>
> | ipv6_ra_mode  | dhcpv6-stateful  |
>
> | name  | private-subnet6  |
>
> | network_id| 55170162-305e-4d04-a159-2a141f0cd685 |
>
> | subnetpool_id |  |
>
> | tenant_id | 9ede0af4cbe94caf8222b1dcfaac0754 |
>
> +---+--+
>
>
>
> When running dhclient on the interface, however, I am only able to acquire
> the interface address, but not the interface default gateway. I suppose the
> default gateway should be obtained through dhcp6 rather than neighbor
> discovery, because I set both ipv6_address_mode and ipv6_ra_mode to
> dhcpv6-stateful.
>
>
>
> Any ideas?
>
>
>
> Thanks,
>
> Andrei
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] Configuring ISC dhclient on guest to acquire ipv6 default gateway

2015-12-22 Thread Andrei Radulescu-Banu
Hi all,

I've been trying for a few days to understand how this should work. My guest OS 
is Linux based, using ISC dhclient. In devstack I have configured an ipv6 net 
and subnet:

[stack@localhost images]$ neutron net-show private6
+---+--+
| Field | Value|
+---+--+
| admin_state_up| True |
| availability_zone_hints   |  |
| availability_zones| nova |
| id| 55170162-305e-4d04-a159-2a141f0cd685 |
| mtu   | 0|
| name  | private6 |
| port_security_enabled | True |
| provider:network_type | vxlan|
| provider:physical_network |  |
| provider:segmentation_id  | 1063 |
| router:external   | False|
| shared| False|
| status| ACTIVE   |
| subnets   | 4ea435ac-0ede-4dbc-9096-d97c256cc4d5 |
| tenant_id | 9ede0af4cbe94caf8222b1dcfaac0754 |
+---+--+

[stack@localhost images]$ neutron subnet-show private-subnet6
+---+--+
| Field | Value|
+---+--+
| allocation_pools  | {"start": "1:2:3:4::100", "end": "1:2:3:4::200"} |
| cidr  | 1:2:3:4::/64 |
| dns_nameservers   | 1:2:3:4::2   |
| enable_dhcp   | True |
| gateway_ip| 1:2:3:4::1   |
| host_routes   |  |
| id| 4ea435ac-0ede-4dbc-9096-d97c256cc4d5 |
| ip_version| 6|
| ipv6_address_mode | dhcpv6-stateful  |
| ipv6_ra_mode  | dhcpv6-stateful  |
| name  | private-subnet6  |
| network_id| 55170162-305e-4d04-a159-2a141f0cd685 |
| subnetpool_id |  |
| tenant_id | 9ede0af4cbe94caf8222b1dcfaac0754 |
+---+--+

When running dhclient on the interface, however, I am only able to acquire the 
interface address, but not the interface default gateway. I suppose the default 
gateway should be obtained through dhcp6 rather than neighbor discovery, 
because I set both ipv6_address_mode and ipv6_ra_mode to dhcpv6-stateful.

Any ideas?

Thanks,
Andrei
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev