> -----Original Message-----
> From: Souradeep Chakrabarti <schakraba...@microsoft.com>
> Sent: Thursday, November 3, 2022 6:35 PM
> To: Bastian Blank <bastian.bl...@credativ.de>; 1022969-qu...@bugs.debian.org;
> 1022...@bugs.debian.org; 1022969-submit...@bugs.debian.org
> Cc: Jack Aboutboul <jaboutb...@microsoft.com>; Anirudh Rayabharam
> <anirudh.rayabha...@microsoft.com>; Jinank Jain <jinankj...@microsoft.com>
> Subject: Bug#1022969: [EXTERNAL] Bug#1022969: isc-dhcp-client: dhcp6 client
> failing to renew the IPv6 address upon T1 expiry.
>
> Adding Anirudh and Jinank to get those information asked below.
>
>
> > -----Original Message-----
> > From: Bastian Blank <bastian.bl...@credativ.de>
> > Sent: Thursday, November 3, 2022 5:27 PM
> > To: 1022...@bugs.debian.org; 1022969-submit...@bugs.debian.org
> > Cc: Jack Aboutboul <jaboutb...@microsoft.com>
> > Subject: Bug#1022969: [EXTERNAL] Bug#1022969: isc-dhcp-client: dhcp6
> > client failing to renew the IPv6 address upon T1 expiry.
> >
> > [You don't often get email from bastian.bl...@credativ.de. Learn why
> > this is important at https://aka.ms/LearnAboutSenderIdentification ]
> >
> > Hi Souradeep
> >
> > On Thu, Nov 03, 2022 at 08:53:38AM +0100, Bastian Blank wrote:
> > > > Now if we change the date to 100 days, and do a restart of
> > > > networking service, we can see ipv6 global address has got deprecated.
> > > > root@ipv6vm4:/var/lib/dhcp# date --set "2024/02/10"
> > > > Sat Feb 10 00:00:00 UTC 2024
> > > > root@ipv6vm4:/var/lib/dhcp# ip a show
> > > > 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state
> > UP group default qlen 1000
> > > > link/ether 60:45:bd:a7:35:11 brd ff:ff:ff:ff:ff:ff
> > > > inet6 ace:cab:deca:1234::7/128 scope global deprecated
> > > > valid_lft forever preferred_lft 0sec
> > > >
> > > > By looking at the journal log, I can see following the address is
> > > > depreferred.
> > > > Please let me know, if you need any other info.
> >
> > Deprecating an address is correct behaviour, you just advanced the
> > time past the address' maximum life time. But in normal circumstances
> > this would have been renewed by now or replaced with a different address.
> >
> > With the network config as shipped in the Azure images up to Debian
> > 11, I can't get it to do that. The code do deprecate addresses (by
> > running the script with
> > DEPREF6) only runs from a timer, and that timeout is scheduled with
> > select(2) and not directly affected by the date change.
> >
> > So new question: How do you configure the network on this instance?
> > Please show complete contents of:
> > - /etc/network/interfaces
> > - /etc/network/interfaces.d
> > - /run/network/interfaces.d
> >
[Souradeep] root@ipv6vm6:/home/ipv6vm6# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group
default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group
default qlen 1000
link/ether 00:0d:3a:1c:dd:d9 brd ff:ff:ff:ff:ff:ff
inet 172.21.0.9/24 brd 172.21.0.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 ace:cab:deca:1234::9/128 scope global deprecated
valid_lft forever preferred_lft 0sec
inet6 fe80::20d:3aff:fe1c:ddd9/64 scope link
valid_lft forever preferred_lft forever
root@ipv6vm6:/home/ipv6vm6#
root@ipv6vm6:/home/ipv6vm6# cat /run/network/interfaces.d/eth0
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
iface eth0 inet6 manual
try_dhcp 1
root@ipv6vm6:/home/ipv6vm6# cat /etc/network/interfaces
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
# Cloud images dynamically generate config fragments for newly
# attached interfaces. See /etc/udev/rules.d/75-cloud-ifupdown.rules
# and /etc/network/cloud-ifupdown-helper. Dynamically generated
# configuration fragments are stored in /run:
source-directory /run/network/interfaces.d
root@ipv6vm6:/home/ipv6vm6# cat /etc/network/interfaces.d/^C
root@ipv6vm6:/home/ipv6vm6# ls -a /etc/network/interfaces.d/
. ..
root@ipv6vm6:/home/ipv6vm6#
> > There exists also a debug script, which logs all hook calls. For that
> > please modify /etc/dhcp/debug and set RUN to yes. After the next try,
> > you'll find a file /tmp/dhclient-script.debug, please show the contents.
> >
[Souradeep]
root@ipv6vm6:/home/ipv6vm6# cat /tmp/dhclient-script.debug
Tue Jul 11 00:00:53 UTC 2023: entering /etc/dhcp/dhclient-enter-hooks.d,
dumping variables.
reason='RELEASE'
interface='eth0'
old_ip_address='172.21.0.9'
old_network_number='172.21.0.0'
old_subnet_mask='255.255.255.0'
old_broadcast_address='172.21.0.255'
old_routers='172.21.0.1'
old_rfc3442_classless_static_routes='0 172 21 0 1 32 168 63 129 16 172 21 0 1
32 169 254 169 254 172 21 0 1'
old_domain_name='ijm2zgw2r0muji44kmnj4rcrsc.bx.internal.cloudapp.net'
old_domain_name_servers='168.63.129.16'
--------------------------
Tue Jul 11 00:00:53 UTC 2023: entering /etc/dhcp/dhclient-exit-hooks.d, dumping
variables.
reason='RELEASE'
interface='eth0'
old_ip_address='172.21.0.9'
old_network_number='172.21.0.0'
old_subnet_mask='255.255.255.0'
old_broadcast_address='172.21.0.255'
old_routers='172.21.0.1'
old_rfc3442_classless_static_routes='0 172 21 0 1 32 168 63 129 16 172 21 0 1
32 169 254 169 254 172 21 0 1'
old_domain_name='ijm2zgw2r0muji44kmnj4rcrsc.bx.internal.cloudapp.net'
old_domain_name_servers='168.63.129.16'
--------------------------
Tue Jul 11 00:00:55 UTC 2023: entering /etc/dhcp/dhclient-enter-hooks.d,
dumping variables.
reason='PREINIT'
interface='eth0'
--------------------------
Tue Jul 11 00:00:55 UTC 2023: entering /etc/dhcp/dhclient-exit-hooks.d, dumping
variables.
reason='PREINIT'
interface='eth0'
--------------------------
Tue Jul 11 00:00:55 UTC 2023: entering /etc/dhcp/dhclient-enter-hooks.d,
dumping variables.
reason='BOUND'
interface='eth0'
new_ip_address='172.21.0.9'
new_network_number='172.21.0.0'
new_subnet_mask='255.255.255.0'
new_broadcast_address='172.21.0.255'
new_routers='172.21.0.1'
new_rfc3442_classless_static_routes='0 172 21 0 1 32 168 63 129 16 172 21 0 1
32 169 254 169 254 172 21 0 1'
new_domain_name='ijm2zgw2r0muji44kmnj4rcrsc.bx.internal.cloudapp.net'
new_domain_name_servers='168.63.129.16'
old_ip_address='172.21.0.9'
old_network_number='172.21.0.0'
old_subnet_mask='255.255.255.0'
old_broadcast_address='172.21.0.255'
old_routers='172.21.0.1'
old_rfc3442_classless_static_routes='0 172 21 0 1 32 168 63 129 16 172 21 0 1
32 169 254 169 254 172 21 0 1'
old_domain_name='ijm2zgw2r0muji44kmnj4rcrsc.bx.internal.cloudapp.net'
old_domain_name_servers='168.63.129.16'
--------------------------
Tue Jul 11 00:00:55 UTC 2023: entering /etc/dhcp/dhclient-exit-hooks.d, dumping
variables.
reason='BOUND'
interface='eth0'
new_ip_address='172.21.0.9'
new_network_number='172.21.0.0'
new_subnet_mask='255.255.255.0'
new_broadcast_address='172.21.0.255'
new_routers='172.21.0.1'
new_rfc3442_classless_static_routes='0 172 21 0 1 32 168 63 129 16 172 21 0 1
32 169 254 169 254 172 21 0 1'
new_domain_name='ijm2zgw2r0muji44kmnj4rcrsc.bx.internal.cloudapp.net'
new_domain_name_servers='168.63.129.16'
old_ip_address='172.21.0.9'
old_network_number='172.21.0.0'
old_subnet_mask='255.255.255.0'
old_broadcast_address='172.21.0.255'
old_routers='172.21.0.1'
old_rfc3442_classless_static_routes='0 172 21 0 1 32 168 63 129 16 172 21 0 1
32 169 254 169 254 172 21 0 1'
old_domain_name='ijm2zgw2r0muji44kmnj4rcrsc.bx.internal.cloudapp.net'
old_domain_name_servers='168.63.129.16'
--------------------------
Tue Jul 11 00:00:56 UTC 2023: entering /etc/dhcp/dhclient-enter-hooks.d,
dumping variables.
reason='PREINIT6'
interface='eth0'
--------------------------
Tue Jul 11 00:00:56 UTC 2023: entering /etc/dhcp/dhclient-exit-hooks.d, dumping
variables.
reason='PREINIT6'
interface='eth0'
--------------------------
Tue Jul 11 00:00:56 UTC 2023: entering /etc/dhcp/dhclient-enter-hooks.d,
dumping variables.
reason='BOUND6'
interface='eth0'
new_ip6_address='ace:cab:deca:1234::9'
new_ip6_prefixlen='128'
--------------------------
Tue Jul 11 00:00:56 UTC 2023: entering /etc/dhcp/dhclient-exit-hooks.d, dumping
variables.
reason='BOUND6'
interface='eth0'
new_ip6_address='ace:cab:deca:1234::9'
new_ip6_prefixlen='128'
--------------------------
Tue Jul 11 00:00:56 UTC 2023: entering /etc/dhcp/dhclient-enter-hooks.d,
dumping variables.
reason='DEPREF6'
interface='eth0'
cur_ip6_address='ace:cab:deca:1234::9'
cur_ip6_prefixlen='128'
--------------------------
Tue Jul 11 00:00:56 UTC 2023: entering /etc/dhcp/dhclient-exit-hooks.d, dumping
variables.
reason='DEPREF6'
interface='eth0'
cur_ip6_address='ace:cab:deca:1234::9'
cur_ip6_prefixlen='128'
--------------------------
Tue Jul 11 00:00:56 UTC 2023: entering /etc/dhcp/dhclient-enter-hooks.d,
dumping variables.
reason='RENEW6'
interface='eth0'
new_ip6_address='ace:cab:deca:1234::9'
new_ip6_prefixlen='128'
old_ip6_address='ace:cab:deca:1234::9'
old_ip6_prefixlen='128'
--------------------------
Tue Jul 11 00:00:56 UTC 2023: entering /etc/dhcp/dhclient-exit-hooks.d, dumping
variables.
reason='RENEW6'
interface='eth0'
new_ip6_address='ace:cab:deca:1234::9'
new_ip6_prefixlen='128'
old_ip6_address='ace:cab:deca:1234::9'
old_ip6_prefixlen='128'
--------------------------
> > Regards,
> > Bastian
> >
> > --
> > Bastian Blank
> > Berater
> > Telefon: +49 2166 9901-194
> > E-Mail: bastian.bl...@credativ.de
> > credativ GmbH, HRB Mönchengladbach 12080, USt-ID-Nummer: DE204566209
> > Trompeterallee 108, 41189 Mönchengladbach
> > Geschäftsführung: Dr. Michael Meskes, James Mark McGowan Unser Umgang
> > mit personenbezogenen Daten unterliegt folgenden Bestimmungen:
> > https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
> >
> cr%2F&data=05%7C01%7Cschakrabarti%40microsoft.com%7Ce52f9676c2774
> 5
> >
> c55b5c08dabd9c9773%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C6380
> 30
> >
> 779522969036%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoi
> V2luM
> >
> zIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=MAN%2
> FRREQ
> > SLXNK3mkPtC4X9C%2F28D7LJ3Zy9JtNjiHQEY%3D&reserved=0
> >
> edativ.de%2Fdatenschutz&data=05%7C01%7Cschakrabarti%40microsoft.co
> >
> m%7Cb25b7200588d45b8095f08dabd92f5c6%7C72f988bf86f141af91ab2d7cd011d
> >
> b47%7C1%7C0%7C638030736511592216%7CUnknown%7CTWFpbGZsb3d8eyJWIj
> >
> oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000
> >
> %7C%7C%7C&sdata=ckjlqIosNSVpQzw1lzZ625YmtcaNi5PmYqG6Op9St7Y%3
> > D&reserved=0