From nobody Mon Aug 15 09:41:26 2022 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 4M5q6n1RXvz4ZDlb for ; Mon, 15 Aug 2022 09:41:37 +0000 (UTC) (envelope-from SRS0=vcPf=YT=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4M5q6l5s2lz42hp for ; Mon, 15 Aug 2022 09:41:35 +0000 (UTC) (envelope-from SRS0=vcPf=YT=klop.ws=ronald-lists@realworks.nl) Date: Mon, 15 Aug 2022 11:41:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1660556488; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=q+zJM2fCkIqqoRveJ9vKiFjpdbyjUrHooqo22XUFXLY=; b=qF3wzjaag7J3e9SQdvaIpNzxMDETL0zXC8920IOuosdRbl+IPzqQcwRnpVhGRIEiv+fPRk BQZYrIR/8ZDwKehVjh1BnnibC/h1Di/w9IHGq3sNZ3FpORR0oJH7y2i4ZXHW96Ks+wzGJ0 Qv1de6jml9WJa84BjHqUHrFEGbzY4rFy1tL3mxiH5C0WvKVRTWH8FlKNIqxT4zsRGdXgEA 30lwweX8zc5sjhzw9pFAD9piUJH94PDeOifKlcwb4wmwJHRkqLBsaDebLPqJK77r4CtoIU YqS7Phr9vnykEwlxrqH7Qaft2p2fzwhKUz+/vJ+j6gjPZv3SxADxYd6R0Sc3XA== From: Ronald Klop To: Benoit Chesneau Cc: "freebsd-net@FreeBSD.org" Message-ID: <1540677665.110.1660556486732@localhost> In-Reply-To: References: <718207270.67.1660552177215@localhost> Subject: Re: what to check? no IPV6 pings between nodes on the same switch 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 Content-Type: multipart/alternative; boundary="----=_Part_109_1151619572.1660556486676" X-Mailer: Realworks (619.111) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Queue-Id: 4M5q6l5s2lz42hp X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=rw2 header.b=qF3wzjaa; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of "SRS0=vcPf=YT=klop.ws=ronald-lists@realworks.nl" designates 194.109.157.24 as permitted sender) smtp.mailfrom="SRS0=vcPf=YT=klop.ws=ronald-lists@realworks.nl" X-Spamd-Result: default: False [-3.16 / 15.00]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_SHORT(-1.00)[-0.998]; NEURAL_HAM_MEDIUM(-0.96)[-0.962]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; FORGED_SENDER(0.30)[ronald-lists@klop.ws,SRS0=vcPf=YT=klop.ws=ronald-lists@realworks.nl]; R_SPF_ALLOW(-0.20)[+ip4:194.109.157.0/24]; R_DKIM_ALLOW(-0.20)[klop.ws:s=rw2]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; RCVD_COUNT_ZERO(0.00)[0]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_NEQ_ENVFROM(0.00)[ronald-lists@klop.ws,SRS0=vcPf=YT=klop.ws=ronald-lists@realworks.nl]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; HAS_X_PRIO_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; DKIM_TRACE(0.00)[klop.ws:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[] X-ThisMailContainsUnwantedMimeParts: N ------=_Part_109_1151619572.1660556486676 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Set rtsold_enable=3D"YES" in rc.conf and restart. Does that help? " DESCRIPTION rtsold is the daemon program to send ICMPv6 Router Solicitation messag= es on the specified interfaces. If a node (re)attaches to a link, rtsold sends some Router Solicitations on the link destined to the link-local scope all-routers multicast address to discover new routers and to get non link-local addresses. rtsold should be used on IPv6 hosts (non-router nodes) only. " Btw: accept_rtadv makes "rtsol" to run once on startup if you set it in rc.= conf and use it to boot the machine. (BTW: for me this does not work well e= nough, so I run rtsold explicitly.) Setting accept_rtadv by ifconfig will n= ot run rtsol. Regards, Ronald. =20 Van: Benoit Chesneau Datum: maandag, 15 augustus 2022 11:25 Aan: Benoit Chesneau CC: Ronald Klop , "freebsd-net@FreeBSD.org" Onderwerp: Re: what to check? no IPV6 pings between nodes on the same switc= h >=20 > OK here is the weird but interesting thing. When I start to capture icmp= 6 packets using tcpdump `tcpdump -i ql0 icmp6` then ping6 starts to work. = Even after stopping the capture. Any idea what could it be ? > =20 > Beno=C3=AEt=20 > ------- Original Message ------- > On Monday, August 15th, 2022 at 10:50, Benoit Chesneau wrote: > >>=20 >> Hi, >> =20 >> Thanks for the help :) The nodes can indeed ping each others using the l= ink-local address. What does it means? I tested to set `accept_rtadv` using= the ifconfig command without much success. >> =20 >> =20 >> Here are the ifconfigs, the prefix is the same for all To be sure, I re= placed the content by using sed. >> =20 >> node 1: >> =20 >> ``` >> $ ifconfig ql0 >> ql0: flags=3D8843 metric 0 mtu 1= 500 >> options=3D507bb >> ether b4:7a:f1:7a:9c:10 >> inet6 ::11 prefixlen 64 >> inet6 fe80::b67a:f1ff:fe7a:9c10%ql0 prefixlen 64 scopeid 0x1 >> media: Ethernet autoselect (25GBase-SR ) >> status: active >> nd6 options=3D21 >> ``` >> =20 >> node 2: >> =20 >> ``` >> $ ifconfig ql0 >> ql0: flags=3D8843 metric 0 mtu 1= 500 >> options=3D507bb >> ether b4:7a:f1:7a:99:52 >> inet6 ::12 prefixlen 64 >> inet6 fe80::b67a:f1ff:fe7a:9952%ql0 prefixlen 64 scopeid 0x1 >> media: Ethernet autoselect (25GBase-SR ) >> status: active >> nd6 options=3D21 >> ``` >> =20 >> node 3 >> ``` >> ifconfig ql0 >> ql0: flags=3D8843 metric 0 mtu 1= 500 >> options=3D507bb >> ether b4:7a:f1:18:ff:d8 >> inet6 ::13 prefixlen 64 >> inet6 fe80::b67a:f1ff:fe18:ffd8%ql0 prefixlen 64 scopeid 0x1 >> media: Ethernet autoselect (25GBase-SR ) >> status: active >> nd6 options=3D21 >> ``` >> =20 >> =20 >> ------- Original Message ------- >> On Monday, August 15th, 2022 at 10:29, Ronald Klop wrote: >> >>> Hi, >>>=20 >>> My rc.conf config has: >>> ifconfig_genet0_ipv6=3D"inet6 accept_rtadv" >>>=20 >>> Can you post the output of "ifconfig" and "ipfw show"? >>> Can you ping the link-local address of the other hosts? >>>=20 >>> Regards. >>> Ronald. >>>=20 >>> =20 >>> Van: Benoit Chesneau >>> Datum: maandag, 15 augustus 2022 08:59 >>> Aan: "freebsd-net@FreeBSD.org" >>> Onderwerp: what to check? no IPV6 pings between nodes on the same switc= h >>>>=20 >>>> =20 >>>> I have setup 3 nodes on a fresh Freebsd 13.1-RELEASE-p1. They have the= same gateway and IPS are in same /64. All 3 nodes are on the same switch (= mikrotik) and same vlan untagged. >>>>=20 >>>> I can ping them from an external machine through the router/gateway bu= t the nodes can't ping each others. When I run `ndp-a` it only return the g= ateway and the node ipv6 (+ their libks) but not the ips of the other nodes= . >>>>=20 >>>> Previously these nodes wee under linux and were able to ping each othe= rs. >>>>=20 >>>> What could be the issue? What do I need to check? >>>>=20 >>>> Configuration is pretty straightforward: >>>> =20 >>>> ``` >>>> hostname=3D"node1.domain.tld" >>>>=20 >>>> keymap=3D"fr.macbook.kbd" >>>>=20 >>>> ifconfig_ql0=3D"" >>>>=20 >>>> ifconfig_ql0_ipv6=3D"inet6 ::11/64" >>>>=20 >>>> ipv6_defaultrouter=3D"::1" >>>>=20 >>>> sshd_enable=3D"YES" >>>>=20 >>>> ntpd_enable=3D"YES" >>>>=20 >>>> # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable >>>>=20 >>>> dumpdev=3D"AUTO" >>>>=20 >>>> zfs_enable=3D"YES" >>>> ``` >>>> =20 >>>> Others machines are `::12`, `::13`Sent from Proton Mai= l for iOS >>>> =20 >>>> Beno=C3=AEt=20 >>=20 >=20 ------=_Part_109_1151619572.1660556486676 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Set rtsold_enable="YES" in rc.conf and restart.
Does that help?

"
DESCRIPTION
     rtsold is the daemon program to send ICMPv6 Router Solicitation messages
     on the specified interfaces.  If a node (re)attaches to a link, rtsold
     sends some Router Solicitations on the link destined to the link-local
     scope all-routers multicast address to discover new routers and to get
     non link-local addresses.

     rtsold should be used on IPv6 hosts (non-router nodes) only.
"

Btw: accept_rtadv makes "rtsol" to run once on startup if you set it in rc.conf and use it to boot the machine. (BTW: for me this does not work well enough, so I run rtsold explicitly.) Setting accept_rtadv by ifconfig will not run rtsol.

Regards,
Ronald.

 

Van: Benoit Chesneau <benoitc@enki-multimedia.eu>
Datum: maandag, 15 augustus 2022 11:25
Aan: Benoit Chesneau <benoitc@enki-multimedia.eu>
CC: Ronald Klop <ronald-lists@klop.ws>, "freebsd-net@FreeBSD.org" <freebsd-net@freebsd.org>
Onderwerp: Re: what to check? no IPV6 pings between nodes on the same switch

OK here is the weird but interesting thing. When I start  to capture icmp6 packets using tcpdump `tcpdump -i ql0 icmp6` then ping6 starts to work.  Even after stopping the capture. Any idea what could it be ?
 
Benoît 
------- Original Message -------
On Monday, August 15th, 2022 at 10:50, Benoit Chesneau <benoitc@enki-multimedia.eu> wrote:
 
Hi,
 
Thanks for the help :) The nodes can indeed ping each others using the link-local address. What does it means? I tested to set `accept_rtadv` using the ifconfig command without much success.
 
 
Here are the ifconfigs, the prefix is the same for all To be sure, I  replaced the content by <PREFIX> using sed.
 
node 1:
 
```
 $ ifconfig ql0
ql0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=507bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWFILTER,VLAN_HWTSO>
ether b4:7a:f1:7a:9c:10
inet6 <PREFIX>::11 prefixlen 64
inet6 fe80::b67a:f1ff:fe7a:9c10%ql0 prefixlen 64 scopeid 0x1
media: Ethernet autoselect (25GBase-SR <full-duplex>)
status: active
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
```
 
node 2:
 
```
 $ ifconfig ql0
ql0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=507bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWFILTER,VLAN_HWTSO>
ether b4:7a:f1:7a:99:52
inet6 <PREFIX>::12 prefixlen 64
inet6 fe80::b67a:f1ff:fe7a:9952%ql0 prefixlen 64 scopeid 0x1
media: Ethernet autoselect (25GBase-SR <full-duplex>)
status: active
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
```
 
node 3
```
ifconfig ql0
ql0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=507bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWFILTER,VLAN_HWTSO>
ether b4:7a:f1:18:ff:d8
inet6 <PREFIX>::13 prefixlen 64
inet6 fe80::b67a:f1ff:fe18:ffd8%ql0 prefixlen 64 scopeid 0x1
media: Ethernet autoselect (25GBase-SR <full-duplex>)
status: active
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
```
 
 
------- Original Message -------
On Monday, August 15th, 2022 at 10:29, Ronald Klop <ronald-lists@klop.ws> wrote:
 
Hi,

My rc.conf config has:
ifconfig_genet0_ipv6="inet6 accept_rtadv"

Can you post the output of "ifconfig" and "ipfw show"?
Can you ping the link-local address of the other hosts?

Regards.
Ronald.

 

Van: Benoit Chesneau <benoitc@enki-multimedia.eu>
Datum: maandag, 15 augustus 2022 08:59
Aan: "freebsd-net@FreeBSD.org" <freebsd-net@freebsd.org>
Onderwerp: what to check? no IPV6 pings between nodes on the same switch

 
I have setup 3 nodes on a fresh Freebsd 13.1-RELEASE-p1. They have the same gateway and IPS are in same /64. All 3 nodes are on the same switch (mikrotik) and same vlan untagged.

I can ping them from an external machine through the router/gateway but the nodes can't ping each others. When I run `ndp-a` it only return the gateway and the node ipv6 (+ their libks) but not the ips of the other nodes.

Previously these nodes wee under linux and were able to ping each others.

What could be the issue? What do I need to check?

Configuration is pretty straightforward:
 
```

hostname="node1.domain.tld"

keymap="fr.macbook.kbd"

ifconfig_ql0=""

ifconfig_ql0_ipv6="inet6 <PREFIX>::11/64"

ipv6_defaultrouter="<PREFIX>::1"

sshd_enable="YES"

ntpd_enable="YES"

# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable

dumpdev="AUTO"

zfs_enable="YES"

```
 
Others machines are `<PREFIX>::12`, `<PREFIX>::13`Sent from Proton Mail for iOS
 
Benoît 
------=_Part_109_1151619572.1660556486676--