From nobody Fri Jul 12 17:06:04 2024 X-Original-To: freebsd-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 4WLJ016ZXfz5Qq5V for ; Fri, 12 Jul 2024 17:06:09 +0000 (UTC) (envelope-from sm@codenetworks.net) Received: from relayout01-q02.dominioabsoluto.net (relayout01-q02.dominioabsoluto.net [217.116.26.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WLJ003bpdz4VWZ for ; Fri, 12 Jul 2024 17:06:08 +0000 (UTC) (envelope-from sm@codenetworks.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=codenetworks.net header.s=domabs header.b=LT8yff3h; dmarc=none; spf=pass (mx1.freebsd.org: domain of sm@codenetworks.net designates 217.116.26.65 as permitted sender) smtp.mailfrom=sm@codenetworks.net Received: from relayout01-redir.dominioabsoluto.net (relayout01-redir.dominioabsoluto.net [217.116.26.69]) by relayout01.dominioabsoluto.net (Postfix) with ESMTP id 4WLHzx0LY7z3wxv for ; Fri, 12 Jul 2024 19:06:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codenetworks.net; s=domabs; t=1720803965; bh=G7MxgfRkdbol7oFO5GJuItOByw2ck+nexBCSDrjn83U=; h=Date:To:From:Subject:From; b=LT8yff3hYwx5khjNDhjlzY+4OY0riNAy9hILpS7m5gXAFA1QUtdJbTqOWHqprKhmt yV93evAm5B701sKpCaeG/LZJsNaqL1FrHiBG0xOAzIjGbHhdfb/rs+Lps2zG5Pptvr EP9XP81QcE5IQG5oRunipFEhfgClXsp1B+xWX1Ys= Received: from [192.168.3.20] (unknown [188.241.98.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sm.codenetworks.net) by relayout01-dsp.dominioabsoluto.net (Postfix) with ESMTPSA id 4WLHzw5VMtz1xpr for ; Fri, 12 Jul 2024 19:06:04 +0200 (CEST) Content-Type: multipart/alternative; boundary="------------syzCHzmL0sxiZonNychVsxOM" Message-ID: Date: Fri, 12 Jul 2024 19:06:04 +0200 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 User-Agent: Mozilla Thunderbird Content-Language: en-US To: "freebsd-net@freebsd.org" From: Santiago Martinez Subject: Multiple Fibs and INET6 X-PostalOut-Country: IP: 188.241.98.123 | Country: ES X-PostalOut-Information: AntiSPAM and AntiVIRUS on relayout01 X-PostalOut-MsgID: 4WLHzw5VMtz1xpr.AEC83 X-PostalOut-SpamCheck: no es spam, clean X-PostalOut-From: sm@codenetworks.net X-PostalOut-Watermark: 1721408764.90778@zeW1lS4sj7TPAThvsax3Sw X-Spam-Status: No X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.72 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.93)[-0.932]; RCVD_IN_DNSWL_LOW(-0.20)[217.116.26.65:from,217.116.26.69:received]; R_SPF_ALLOW(-0.20)[+ip4:217.116.26.0/24]; R_DKIM_ALLOW(-0.20)[codenetworks.net:s=domabs]; RWL_MAILSPIKE_GOOD(-0.10)[217.116.26.65:from]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; XM_UA_NO_VERSION(0.01)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:16371, ipnet:217.116.24.0/21, country:ES]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DMARC_NA(0.00)[codenetworks.net]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[codenetworks.net:+] X-Rspamd-Queue-Id: 4WLJ003bpdz4VWZ This is a multi-part message in MIME format. --------------syzCHzmL0sxiZonNychVsxOM Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Everyone. While adding -F ( fib as used in netstat ) to ping and ping6 I have found something that from my understanding is not correct. Please can you advise? I have the following setup : -- two fibs (0 and 1) -- two  loop-backs (lo0 and lo1). -- Lo1 has been assigned to fib1 --net.add_addr_allfibs = 0 My interface output looks like this: ifconfig lo0 | grep inet6        inet6 ::1 prefixlen 128        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 ifconfig lo1 | grep inet6        inet6 fe80::1%lo1 prefixlen 64 scopeid 0x3 If I do a netstat -rn -6  -F0 I get the following which is was i expected. Internet6: Destination                       Gateway                       Flags     Netif Expire ::/96                             link#2                        URS         lo0 ::1                               link#2                        UHS         lo0 ::ffff:0.0.0.0/96                 link#2                        URS         lo0 fe80::%lo0/10                     link#2                        URS         lo0 fe80::%lo0/64                     link#2                        U           lo0 fe80::1%lo0                       link#2                        UHS         lo0 ff02::/16                         link#2                        URS         lo0 Now,  netstat -rn -6  -F1 shows  "fe80::1%lo0" which should not be there and "fe80::1%lo1" is missing which should be there. Internet6: Destination                       Gateway                       Flags     Netif Expire fe80::%lo1/64                     link#3                        U           lo1 *fe80::1%lo0                       link#2                        UHS         lo0* What output I was expecting was: Internet6: Destination                       Gateway                       Flags     Netif Expire fe80::%lo1/64                     link#3                        U           lo1 *fe80::1%lo1                       link#3                        UHS         lo1* This makes the ping -6 -F0 fe80::1%lo0  to work but ping -6 -F1 fe80::1%l01 to fail which I wanted to use as test case. Thanks in advance. Santiago --------------syzCHzmL0sxiZonNychVsxOM Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hi Everyone.

While adding -F ( fib as used in netstat ) to ping and ping6 I have found something that from my understanding is not correct.
Please can you advise?

I have the following setup :

-- two fibs (0 and 1) 
-- two  loop-backs (lo0 and lo1).
-- Lo1 has been assigned to fib1
-- net.add_addr_allfibs = 0

My interface output looks like this:

ifconfig lo0 | grep inet6
       inet6 ::1 prefixlen 128
       inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2

ifconfig lo1 | grep inet6
       inet6 fe80::1%lo1 prefixlen 64 scopeid 0x3

If I do a netstat -rn -6  -F0 I get the following which is was i expected.

Internet6:
Destination                       Gateway                       Flags     Netif Expire
::/96                             link#2                        URS         lo0
::1                               link#2                        UHS         lo0
::ffff:0.0.0.0/96                 link#2                        URS         lo0
fe80::%lo0/10                     link#2                        URS         lo0
fe80::%lo0/64                     link#2                        U           lo0
fe80::1%lo0                       link#2                        UHS         lo0
ff02::/16                         link#2                        URS         lo0

Now,  netstat -rn -6  -F1 shows  "fe80::1%lo0" which should not be there and "fe80::1%lo1" is missing which should be there.

Internet6:
Destination                       Gateway                       Flags     Netif Expire
fe80::%lo1/64                     link#3                        U           lo1
fe80::1%lo0                       link#2                        UHS         lo0

What output I was expecting was:

Internet6:
Destination                       Gateway                       Flags     Netif Expire
fe80::%lo1/64                     link#3                        U           lo1
fe80::1%lo1                       link#3                        UHS         lo1


This makes the ping -6 -F0 fe80::1%lo0  to work but ping -6 -F1 fe80::1%l01 to fail which I wanted to use as test case.

Thanks in advance.

Santiago


--------------syzCHzmL0sxiZonNychVsxOM--