From nobody Sun Jun 26 14:13:45 2022 X-Original-To: net@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 A2955879EBE for ; Sun, 26 Jun 2022 14:13:45 +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 4LWCWs2W14z3H2C for ; Sun, 26 Jun 2022 14:13:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 36255167C3 for ; Sun, 26 Jun 2022 14:13:45 +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 25QEDjYR017458 for ; Sun, 26 Jun 2022 14:13:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 25QEDj4m017457 for net@FreeBSD.org; Sun, 26 Jun 2022 14:13:45 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: net@FreeBSD.org Subject: [Bug 264908] It does not work to obtain an IP address via DHCP simultaneously for multiple interfaces Date: Sun, 26 Jun 2022 14:13:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: admin@support.od.ua 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 cc 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: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656252825; 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=nNIgq01n2AnEIm5m8slryoshnQn87zKR8IXyhpYUm4g=; b=ZSrJDjaQDvGvCtJX6a6PYobE4gimfp4ETmyM8DqPRLrnBNFTkmdtE7zphhetpvFyLtSVes eyS5liFLzCRoYvIK4BGP6y88PnqxoDeCc4nkSnnT5A6FXO98Ag3I69b5tEeAZjkK3aPrcG lYlUZdZ933qG5PjVxe24bIaSJWfRiajqKywd/ogzFJfDnISdmJuJvlLZnarK+WBALX6T+x XL1TuDO+u0SALS0uYmFheHJ5iV9tXfS6c8lKFOJTg4tlfHElB4NEkqdk2zFQg1hm3sEyk5 3OYs3kh2Rj6U5LH1XjeKlU+jri5DPowTTYcliq3FsYaxTY2V6jYPLrawsFPSAg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656252825; a=rsa-sha256; cv=none; b=JvjQUGkCB/FyGCwt5WSs6VDqVI1UaS0tkTBgiHwR/bJcRMDj7E7d81vvcIqzbCktQeI9T4 hcdJeDmJdZaUZ1aKzEun1xq3bU97luWE7pd506Y6IqVW2b5Um3TI1G9ZJKUfUxAAwCs4ru YHhuoICe1BclBjNrjYwZEu7EuhQChHLEeMEhq4Kj+NLTIq9cLJpnzFIdPPGkSd+u3vKEmd OOp1OXCn06mBR8tLXfF+aXmRzPf7PPFrVICuozvf9aGhilwR4/QlDJjLxjpv4a9C4f6LsY kv8EInmqvvdcYiQB212uyVOQaZkEtqxIsq+A3h4qcKJbHdehs6fLOzzB/os0RQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264908 Bug ID: 264908 Summary: It does not work to obtain an IP address via DHCP simultaneously for multiple interfaces Product: Base System Version: 12.3-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: admin@support.od.ua CC: net@FreeBSD.org Given physical server in KimSufi (OVH): Atom(TM) CPU N2800 @ 1.86GHz, 2 core/4 threads, RAM 4GB, one 2TB HDD, 100Mb network interface (em0) # uname -a FreeBSD tank2.storage 12.3-STABLE FreeBSD 12.3-STABLE #0 r372168M: Sat Jun = 25 20:34:53 EEST 2022 # uname -KU 1203507 1203507 # ifconfig -l em0 enc0 lo0 pflog0 pfsync0 ygg0 # sysrc -a | grep -E 'ygg|_em0|DHCP|NOAUTO' ifconfig_DEFAULT: SYNCDHCP ifconfig_em0: DHCP ifconfig_em0_alias0: inet6 2001:XXXX:Y:YYYY::2 ifconfig_em0_ipv6: inet6 2001:XXXX:YYYY:XXXX::1/56 yggdrasil_enable: YES # grep -v ^# /etc/dhclient.conf In logs after system start: ... Jun 26 12:12:05 tank2 kernel: Starting devd. Jun 26 12:12:05 tank2 kernel: Starting dhclient. Jun 26 12:12:05 tank2 kernel: ifconfig: ioctl (SIOCAIFADDR): File exists Jun 26 12:12:05 tank2 kernel: em0: not found Jun 26 12:12:05 tank2 kernel: exiting. Jun 26 12:12:05 tank2 kernel: /etc/rc.d/dhclient: WARNING: failed to start dhclient ... Jun 26 12:12:12 tank2 ntpd[6966]: Soliciting pool server 149.202.91.39 ... Jun 26 15:12:18 tank2 dhclient[65385]: DHCPDISCOVER on ygg0 to 255.255.255.= 255 port 67 interval 3 ... Jun 26 15:12:21 tank2 dhclient[65385]: DHCPDISCOVER on ygg0 to 255.255.255.= 255 port 67 interval 4 ... Jun 26 15:18:19 tank2 dhclient[65385]: DHCPDISCOVER on ygg0 to 255.255.255.= 255 port 67 interval 5 Jun 26 15:18:24 tank2 dhclient[65385]: DHCPDISCOVER on ygg0 to 255.255.255.= 255 port 67 interval 10 Jun 26 15:18:34 tank2 dhclient[65385]: DHCPDISCOVER on ygg0 to 255.255.255.= 255 port 67 interval 11 Jun 26 15:18:45 tank2 dhclient[65385]: DHCPDISCOVER on ygg0 to 255.255.255.= 255 port 67 interval 12 Jun 26 15:18:47 tank2 ntpd[6966]: Soliciting pool server 162.159.200.123 Jun 26 15:18:57 tank2 dhclient[65385]: DHCPDISCOVER on ygg0 to 255.255.255.= 255 port 67 interval 14 Jun 26 15:19:11 tank2 dhclient[65385]: DHCPDISCOVER on ygg0 to 255.255.255.= 255 port 67 interval 9 Jun 26 15:19:20 tank2 dhclient[65385]: No DHCPOFFERS received. Jun 26 15:19:20 tank2 dhclient[65385]: No working leases in persistent data= base - sleeping. ... The NTP server on v6 gets the right time, so the time stamp jumped to 3 hou= rs I try to manually get network settings via DHCP: # dhclient enc0 ifconfig: ioctl (SIOCAIFADDR): Invalid argument enc0: not found exiting. # dhclient em0 ifconfig: ioctl (SIOCAIFADDR): File exists em0: not found exiting. Network settings haven't changed since 12.2-STABLE. As a solution to the problem, adding lines to rc.conf and reboot helps: ifconfig_enc0=3D"NOAUTO" ifconfig_ygg0=3D"NOAUTO" How to reproduce the issue. Create a FreeBSD 12.3-STABLE (virtual) machine with more than one network interface that receives network settings. Add lines to rc.conf config: ifconfig_DEFAULT=3D"SYNCDHCP" ifconfig_em0=3D"DHCP" Reboot machine. --=20 You are receiving this mail because: You are on the CC list for the bug.=