From nobody Sat Mar 23 09:43:07 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 4V1vQ36v4Vz5F2vY for ; Sat, 23 Mar 2024 09:43:07 +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 4V1vQ35cfvz4cCJ for ; Sat, 23 Mar 2024 09:43:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711186987; a=rsa-sha256; cv=none; b=mnwaODgpALy0BJ7ewjPc9+roaU4t6a1iE5Roj9P5z00LioKiy+o+wGsaSgziG90clj+dL9 OF565sGam4AwsHbOpIb5nvUoUaYmO8BzmY7WfAi3Nau5RbgNEW4NHViFiuqWunX2gnkmHk 51W7MO8IK0lBskcVIRsSNMi/tAvvv7iCZxVpIPPuFTUwR4bfIip0V1ePX43JcHyHjSzdbU ocamDT/wDhOdG3tdmuBNpE0SAQXX6xwS6fER7i+jGrsTjmqilBkBX9ZLepeGLauagQgwu8 BlIZq5VXMt4fgsfKBBNIlPvq51EjeOp7VvtJT2EphuugnbNikWmrOUTH1AWePA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711186987; 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=ZW5lAz93YSReDqqAlI/9942A3JnhS1CSgLupEciFtco=; b=GIfW0kfF8RncfGoJvtqiqkOTdJjBovXR9cF0V2R7fjeq4kw+WLmb/E6rrharSu1S0M67dq +0UOYLd5HOEiNDQ8FvbiIStMiZUJ5bDFlp/Z9xkrJjBRWarQjeYwVmRwojbrPwwBE7tjTt mSTA7y3JUsme2MC7QcCaxaAYrsvO8pph3eBuRLyDWCgkNLNxB00wWmqDpwXQZGhC5/7pfa 0WwUgVPF3fM7HCqzwKQXLpDtsVFGt8vXXFrvtiunefavmonqdqRjhDLFWo+8/4PQqBiaDL Z2hGifAbF5OUt3tLQQvI0BzntusEvCEEujjhp1SV95Dw4UFZUTfzr/zJ7gEJNw== 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 4V1vQ35DHWzkMh for ; Sat, 23 Mar 2024 09:43:07 +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 42N9h727089053 for ; Sat, 23 Mar 2024 09:43:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42N9h7VV089051 for bugs@FreeBSD.org; Sat, 23 Mar 2024 09:43:07 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 277904] DHCP and static ip not correctly configured Date: Sat, 23 Mar 2024 09:43:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: crb@ChrisBowman.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=3D277904 Bug ID: 277904 Summary: DHCP and static ip not correctly configured Product: Base System Version: 14.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: conf Assignee: bugs@FreeBSD.org Reporter: crb@ChrisBowman.com I have the following line in my /etc/rc.conf: ifconfig_bge0=3D"DHCP" ifconfig_bge0_alias0=3D"99.104.201.113/29" ifconfig_bge0_ipv6=3D"inet6 accept_rtadv" If I reboot with this, upon restart ifconfig reports the following: bge0: flags=3D1008843 metr= ic 0 mtu 1500 =20=20=20=20=20=20=20 options=3Dc019b ether c4:2c:03:0b:9d:f6 inet 192.168.1.48 netmask 0xffffff00 broadcast 192.168.1.255 inet6 fe80::c62c:3ff:fe0b:9df6%bge0 prefixlen 64 scopeid 0x1 inet6 2600:1700:5430:10b1:c62c:3ff:fe0b:9df6 prefixlen 64 autoconf pltime 604800 vltime 2592000 media: Ethernet autoselect (1000baseT ) status: active nd6 options=3D23 lo0: flags=3D1008049 metric 0 mtu 1= 6384 options=3D680003 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 groups: lo nd6 options=3D21 Note that only the DHCP address is present not the static IP of 99.104.201.113/31 If I immediately run "service netif restart;ifconfig" as root I get the following output: # service netif restart ; ifconfig Stopping dhclient. Stopping Network: lo0 bge0. lo0: flags=3D8048 metric 0 mtu 16384 options=3D680003 groups: lo nd6 options=3D21 bge0: flags=3D8802 metric 0 mtu 1500 =20=20=20=20=20=20=20 options=3Dc019b ether c4:2c:03:0b:9d:f6 media: Ethernet autoselect nd6 options=3D21 /etc/rc.d/netif: WARNING: $ifconfig_bge0_alias0 needs leading "inet" keyword for an IPv4 address. Starting Network: lo0 bge0. lo0: flags=3D1008049 metric 0 mtu 1= 6384 options=3D680003 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 groups: lo nd6 options=3D21 bge0: flags=3D1008843 metr= ic 0 mtu 1500 =20=20=20=20=20=20=20 options=3Dc019b ether c4:2c:03:0b:9d:f6 inet 192.168.1.48 netmask 0xffffff00 broadcast 192.168.1.255 inet 99.104.201.113 netmask 0xfffffff8 broadcast 99.104.201.119 inet6 fe80::c62c:3ff:fe0b:9df6%bge0 prefixlen 64 scopeid 0x1 inet6 2600:1700:5430:10b1:c62c:3ff:fe0b:9df6 prefixlen 64 autoconf pltime 604800 vltime 2592000 media: Ethernet autoselect (1000baseT ) status: active nd6 options=3D23 bge0: flags=3D1008843 metr= ic 0 mtu 1500 =20=20=20=20=20=20=20 options=3Dc019b ether c4:2c:03:0b:9d:f6 inet 192.168.1.48 netmask 0xffffff00 broadcast 192.168.1.255 inet 99.104.201.113 netmask 0xfffffff8 broadcast 99.104.201.119 inet6 fe80::c62c:3ff:fe0b:9df6%bge0 prefixlen 64 scopeid 0x1 inet6 2600:1700:5430:10b1:c62c:3ff:fe0b:9df6 prefixlen 64 autoconf pltime 604800 vltime 2592000 media: Ethernet autoselect (1000baseT ) status: active nd6 options=3D23 lo0: flags=3D1008049 metric 0 mtu 1= 6384 options=3D680003 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 groups: lo nd6 options=3D21 Note the final ifconfig lists both the DHCP address and the Static IP. Fro this I conclude that the configuration in /etc/rc.conf is correct but f= or some reason doesn't work correctly at start up. I'm still trying to read startup script to understand why. --=20 You are receiving this mail because: You are the assignee for the bug.=