From nobody Wed Nov 13 23:47:09 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 4Xpg1T67K6z5clBF for ; Wed, 13 Nov 2024 23:47:09 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xpg1T2NTtz4lC2 for ; Wed, 13 Nov 2024 23:47:09 +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=1731541629; 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=sut0/FHKsfpNtPssIZgYLnqkT3WJTsW96nq1E6CKnQo=; b=sslkcqyfVcDdvFRauc1iFWK1XydF/iwCp8YDLsBfJUaeyxMbzzpzYEVNo34bcbDwYkObB7 DxWusjN19zVIViTxr9kvK1Z3IfFaNkNOHrxo3lQyXLaJhoVrVrKp+t94fDUt2uN1+W5OwZ BSlI9OFsWOnmZL0l02kb75d6QcBYTyw8uPW5OapAEq9App4Gl7Qw5x/HOvd0+Uydj+4Dqp 65W4xnPDyCEJuiYjW+xEi+JFIEkS1YzipxkeJN/5Blb7Nh75S8wYzMwzXrZBnsK8Kw6Gec PMVR4xn+++nVYt/b+sGVe8UiFu6WBLadUg4I4V1mYu9O7RChuJzQJoqBT9Js6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731541629; a=rsa-sha256; cv=none; b=lMGLc/R64NbVFk7cMRZf/iXDa+DVWEkdjyKnDk2qOG/WoAFPtuYA6XxxN00gjSXxXLJVL7 O/4jHDa53vpPWoo/onedIrJwF7LCU3SvsEATp7vhknCvz1knROaiTSW5mSfYbEfd7qFqj+ 9lxPkUL0DH48ou2HlLGTw1QgMFBw53xX1MSN+DvvxejSc1nE2wjdgRUAKqDW5g1olK9K14 5f9tnNteyxxhyJV151xrppepuKUsrZdBHHv0pXAg1XVnoXFSwoxje5koq2yDOjvKBFch7F tkdFMNK1q6oezEU0V84QREHo6ezJbKnpN+A8jb5BeCsdxOFxDFOSqRGyEMxKXw== 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 4Xpg1T0NWGzFCT for ; Wed, 13 Nov 2024 23:47:09 +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 4ADNl8eZ071244 for ; Wed, 13 Nov 2024 23:47:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4ADNl8J2071243 for bugs@FreeBSD.org; Wed, 13 Nov 2024 23:47:08 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 282744] setfib does not add the default gateway to the second routing table. Date: Wed, 13 Nov 2024 23:47:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.1-RELEASE 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 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=3D282744 Bug ID: 282744 Summary: setfib does not add the default gateway to the second routing table. Product: Base System Version: 14.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: admin@support.od.ua # uname -a FreeBSD vb-14-1.domain.com 14.1-PRERELEASE FreeBSD 14.1-PRERELEASE #0 stable/14-n267586-19e335596658: Thu May 2 20:41:56 UTC 2024=20=20=20=20 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 # grep fibs /boot/loader.conf net.fibs=3D2 root@vb-14-1:~ # ifconfig em2 em2: flags=3D1008843 metri= c 0 mtu 1500 =20=20=20=20=20=20=20 options=3D48505bb ether 08:00:27:33:a3:63 inet6 fe80::a00:27ff:fe33:a363%em2 prefixlen 64 scopeid 0x3 media: Ethernet autoselect (1000baseT ) status: active nd6 options=3D23 root@vb-14-1:~ # setfib 1 ifconfig em2 inet 192.168.77.104/24 root@vb-14-1:~ # setfib 1 route add default 192.168.77.2 add net default: gateway 192.168.77.2 fib 1: Invalid argument root@vb-14-1:~ # ifconfig em2 em2: flags=3D1008843 metri= c 0 mtu 1500 =20=20=20=20=20=20=20 options=3D48505bb ether 08:00:27:33:a3:63 inet 192.168.77.104 netmask 0xffffff00 broadcast 192.168.77.255 inet6 fe80::a00:27ff:fe33:a363%em2 prefixlen 64 scopeid 0x3 media: Ethernet autoselect (1000baseT ) status: active nd6 options=3D23 The same commands work fine in 12.3-STABLE. root@vb-12-3:~ # sysctl net.fibs net.fibs: 5 root@vb-12-3:~ # ifconfig em2 em2: flags=3D8843 metric 0 mtu 1500 =20=20=20=20=20=20=20 options=3D81009b ether 08:00:27:51:7f:dd inet6 fe80::a00:27ff:fe51:7fdd%em2 prefixlen 64 scopeid 0x3 media: Ethernet autoselect (1000baseT ) status: active nd6 options=3D23 root@vb-12-3:~ # setfib 1 ifconfig em2 inet 192.168.77.202/24 root@vb-12-3:~ # setfib 1 route add default 192.168.77.2 add net default: gateway 192.168.77.2 fib 1 root@vb-12-3:~ # netstat -rnF 1 Routing tables (fib: 1) Internet: Destination Gateway Flags Netif Expire default 192.168.77.2 UGS em2 127.0.0.1 link#6 UH lo0 192.168.4.0/24 link#1 U em0 192.168.56.0/24 link#4 U em3 192.168.66.0/24 link#2 U em1 192.168.77.0/24 link#3 U em2 Internet6: Destination Gateway Flags N= etif Expire ::/96 ::1 UGRS = lo0 ::1 link#6 UH = lo0 ::ffff:0.0.0.0/96 ::1 UGRS = lo0 fda2:223c:f4f::/64 link#1 U = em0 fe80::/10 ::1 UGRS = lo0 fe80::%em0/64 link#1 U = em0 fe80::%em1/64 link#2 U = em1 fe80::%em2/64 link#3 U = em2 fe80::%em3/64 link#4 U = em3 fe80::%lo0/64 link#6 U = lo0 ff02::/16 ::1 UGRS = lo0 root@vb-12-3:~ # netstat -rnF 0 Routing tables Internet: Destination Gateway Flags Netif Expire default 192.168.4.1 UGS em0 127.0.0.1 link#6 UH lo0 192.168.4.0/24 link#1 U em0 192.168.4.234 link#1 UHS lo0 192.168.56.0/24 link#4 U em3 192.168.56.107 link#4 UHS lo0 192.168.66.0/24 link#2 U em1 192.168.66.109 link#2 UHS lo0 192.168.77.0/24 link#3 U em2 192.168.77.202 link#3 UHS lo0 Internet6: Destination Gateway Flags N= etif Expire ::/96 ::1 UGRS = lo0 ::1 link#6 UH = lo0 ::ffff:0.0.0.0/96 ::1 UGRS = lo0 fda2:223c:f4f::/64 link#1 U = em0 fda2:223c:f4f:0:a00:27ff:feac:236c link#1 UHS = lo0 fe80::/10 ::1 UGRS = lo0 fe80::%em0/64 link#1 U = em0 fe80::a00:27ff:feac:236c%em0 link#1 UHS = lo0 fe80::%em1/64 link#2 U = em1 fe80::a00:27ff:febc:8e4b%em1 link#2 UHS = lo0 fe80::%em2/64 link#3 U = em2 fe80::a00:27ff:fe51:7fdd%em2 link#3 UHS = lo0 fe80::%em3/64 link#4 U = em3 fe80::a00:27ff:fe94:7274%em3 link#4 UHS = lo0 fe80::%lo0/64 link#6 U = lo0 fe80::1%lo0 link#6 UHS = lo0 ff02::/16 ::1 UGRS = lo0 root@vb-12-3:~ # netstat -rnF 1 Routing tables (fib: 1) Internet: Destination Gateway Flags Netif Expire default 192.168.77.2 UGS em2 127.0.0.1 link#6 UH lo0 192.168.4.0/24 link#1 U em0 192.168.56.0/24 link#4 U em3 192.168.66.0/24 link#2 U em1 192.168.77.0/24 link#3 U em2 Internet6: Destination Gateway Flags N= etif Expire ::/96 ::1 UGRS = lo0 ::1 link#6 UH = lo0 ::ffff:0.0.0.0/96 ::1 UGRS = lo0 fda2:223c:f4f::/64 link#1 U = em0 fe80::/10 ::1 UGRS = lo0 fe80::%em0/64 link#1 U = em0 fe80::%em1/64 link#2 U = em1 fe80::%em2/64 link#3 U = em2 fe80::%em3/64 link#4 U = em3 fe80::%lo0/64 link#6 U = lo0 ff02::/16 ::1 UGRS = lo0 --=20 You are receiving this mail because: You are the assignee for the bug.=