From nobody Sun Feb 18 12:36:29 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Td4sn6LHcz545pV for ; Sun, 18 Feb 2024 12:36:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Td4sn3d4Sz4fsT for ; Sun, 18 Feb 2024 12:36:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708259789; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=b76AH/MFWkbAYlD51g1MBxj3ylssNnrXGkgtsOLqi+E=; b=ATU33JEbnbpvHPLdX5oS20B6nHEc6pbEVibYpAEqO/XYMbXSia8LIFl8Y4ui1zgmkNveHY zbg6C68aU84jh3Zrz9FAIXf2CdPU0I5yNNs9JKXshyWXszBRRccOI0N6polF4T0b4+EPqK C/Hh3TB5UXYOOKmAR9y4ZS0WjmcvFZGNiPuWKNYmdkkr/lQfEzp0XvQ9ipia8HN/4qMmei UVPBbphkurrqGDghOaEW4A4mQ22TtqwWYzZxYU0VVyS6BxsHgJ2dO0uJifs58YjHB8KT45 hRUYWIjHG9rewwHX84y3icN7EX3EAnQbJFgPSvWfqMV1AKyM+6fT5jE/WR2/2A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708259789; a=rsa-sha256; cv=none; b=sXdZOl7wU13k1V946siXuRvphQ5Bf4D2LZGoERVPKcb/GG2VARQmEYDVVyb7zobJr1+ejm x/yG6Dfim+1gv7GbT0X3cIHcVMaL+833g4TlYH3+7gdQEedQTr06jWvxozT36JvmNMim4g VMW+9TENu9/yBZGxw/ZZkeZ65/FOlZGF6OXLu+WS2I23Asb17xZ+hgLgzI3igp8JEftHL2 gymmnPdja27HV9lyzLC2R4C5FBcEbLVNZwuJDNZY9G88WPnHT0R2rJFOG8tPIixCUfPAZj GR98DEujoxAHOsl+8FzZmobsCHqcKHeYP0534HJqV9WGX3AaDnqTJxLHZPH+dQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Td4sn2hm4zr9C for ; Sun, 18 Feb 2024 12:36:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 41ICaT0n090387 for ; Sun, 18 Feb 2024 12:36:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 41ICaTnR090386 for bugs@FreeBSD.org; Sun, 18 Feb 2024 12:36:29 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 277128] IPV6 public address lost after networking driver reload and attaching a new network interface Date: Sun, 18 Feb 2024 12:36:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: osamaabb@amazon.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277128 Bug ID: 277128 Summary: IPV6 public address lost after networking driver reload and attaching a new network interface Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: osamaabb@amazon.com Issue: IPV6 Public address lost after reloading a network driver OR attachi= ng a new interface on a running instance Reproduction: The issue was reproduced in aws EC2 services, it reproduces over all region= s: Region: us-west-2 (Oregon) AMI: ami-0e1d8ff3b9c3f2571 Instance: c5.12xlrage Reproduction steps: 1- Create a subnet that allows ipv6 addresses and make sure to tick "Enable auto-assign IPv6 address" in the subnet settings 2- Create a new interface in the newly created subnet 3- Attached the interface to the instance - This interface will be seen as = ena0 in the upcoming examples Issue No. 1: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D At this point you'll see the newly attached interface (ena0) is attached but does not have a public IPv6 address: root@freebsd:/home/ec2-user # ifconfig enas0: flags=3D8863 metric 0 mtu 90= 01 options=3D200423 ether 02:da:b6:58:d9:d3 inet6 fe80::da:b6ff:fe58:d9d3%enas0 prefixlen 64 scopeid 0x1 inet 172.31.30.153 netmask 0xfffff000 broadcast 172.31.31.255 media: Ethernet autoselect (Unknown ) status: active nd6 options=3D23 ena0: flags=3D8863 metric 0 mtu 9001 options=3D200423 ether 02:12:77:45:cf:75 inet6 fe80::12:77ff:fe45:cf75%ena0 prefixlen 64 scopeid 0x3 inet 172.31.207.24 netmask 0xfffff000 broadcast 172.31.207.255 media: Ethernet autoselect (Unknown ) status: active nd6 options=3D23 Reboot the instance, you'll see that the new interface will get a public IP= v6 address: ec2-user@freebsd:~ $ ifconfig enas0: flags=3D8863 metric 0 mtu 90= 01 options=3D200423 ether 02:da:b6:58:d9:d3 inet6 fe80::da:b6ff:fe58:d9d3%enas0 prefixlen 64 scopeid 0x1 inet 172.31.30.153 netmask 0xfffff000 broadcast 172.31.31.255 media: Ethernet autoselect (Unknown ) status: active nd6 options=3D23 ena0: flags=3D8863 metric 0 mtu 9001 options=3D200423 ether 02:12:77:45:cf:75 inet6 fe80::12:77ff:fe45:cf75%ena0 prefixlen 64 scopeid 0x2 inet6 2600:1f14:c0:8803:618:da09:7da9:310 prefixlen 128 inet 172.31.207.24 netmask 0xfffff000 broadcast 172.31.207.255 media: Ethernet autoselect (Unknown ) status: active nd6 options=3D23 Issue No. 2: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Reload the driver by running kldunload if_ena.ko && kldload ./if_ena.ko and you'll see that the public IPv6 address is lost ec2-user@freebsd:~ $ ifconfig enas0: flags=3D8863 metric 0 mtu 90= 01 options=3D200423 ether 02:da:b6:58:d9:d3 inet6 fe80::da:b6ff:fe58:d9d3%enas0 prefixlen 64 scopeid 0x1 inet 172.31.30.153 netmask 0xfffff000 broadcast 172.31.31.255 media: Ethernet autoselect (Unknown ) status: active nd6 options=3D23 ena0: flags=3D8863 metric 0 mtu 9001 options=3D200423 ether 02:12:77:45:cf:75 inet6 fe80::12:77ff:fe45:cf75%ena0 prefixlen 64 scopeid 0x2 inet6 2600:1f14:c0:8803:618:da09:7da9:310 prefixlen 128 inet 172.31.207.24 netmask 0xfffff000 broadcast 172.31.207.255 media: Ethernet autoselect (Unknown ) status: active nd6 options=3D23 -------Reboot------- root@freebsd:/home/ec2-user/fix-flag # ifconfig enas0: flags=3D8863 metric 0 mtu 90= 01 options=3D200423 ether 02:da:b6:58:d9:d3 inet6 fe80::da:b6ff:fe58:d9d3%enas0 prefixlen 64 scopeid 0x1 inet 172.31.30.153 netmask 0xfffff000 broadcast 172.31.31.255 media: Ethernet autoselect (Unknown ) status: active nd6 options=3D23 ena0: flags=3D8863 metric 0 mtu 9001 options=3D200423 ether 02:12:77:45:cf:75 inet6 fe80::12:77ff:fe45:cf75%ena0 prefixlen 64 scopeid 0x2 inet 172.31.207.24 netmask 0xfffff000 broadcast 172.31.207.255 media: Ethernet autoselect (Unknown ) status: active nd6 options=3D23 Looked at the tcpdump results and saw no dhcpv6 requests Tried to restart the router solicitation daemon, saw router advertisement messages but still no IPV6 --=20 You are receiving this mail because: You are the assignee for the bug.=