Date: Wed, 15 Dec 2021 21:15:47 +0300 From: KOT MATPOCKuH <matpockuh@gmail.com> To: freebsd-stable List <freebsd-stable@freebsd.org> Subject: ping -6 ignores -e parameter Message-ID: <CALmdT0WvtUdteHKEw35tkgZyVzKW2ZT1LKmm1W62vQ_ev2QyPg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
--000000000000c43e2d05d3334ccb Content-Type: text/plain; charset="UTF-8" Hello! In a man page for ping(8) and in it's help output I found option "-e": -e gateway Specifies to use gateway as the next hop to the destination. The gateway must be a neighbor of the sending node. I tried to use this argument, ping ignores this parameter and sends the packet via default gateway. For example I have a tun0 which has ipv6 default gw, and an established bridge0 which has available some LL addresses: Neighbor Linklayer Address Netif Expire S Flags fe80::2a0:98ff:fe1d:e270%bridge0 00:a0:98:1d:e2:70 bridge0 23h56m34s S R I tried to run: ping -6 -e FE80::2A0:98FF:FE1D:E270%bridge0 google.com But the packet was sent via tun0 interface. What is wrong with it? -- MATPOCKuH --000000000000c43e2d05d3334ccb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hello!</div><div><br></div><div>In a man page for pin= g(8) and in it's help output I found option "-e":</div><div>= =C2=A0 =C2=A0=C2=A0 -e gateway<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0Specifies to use gateway as the next hop to the destination.=C2=A0 T= he<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0gateway must be a nei= ghbor of the sending node.</div><div><br></div><div>I tried to use this arg= ument, ping ignores this parameter and sends the packet via default gateway= .</div><div>For example I have a tun0 which has ipv6 default gw, and an est= ablished bridge0 which has available some LL addresses:</div><div>Neighbor = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 Linklayer Address =C2=A0Netif Expire =C2=A0 =C2=A0= S Flags<br>fe80::2a0:98ff:fe1d:e270%bridge0 =C2=A0 =C2=A0 00:a0:98:1d:e2:70= bridge0 23h56m34s S R<br></div><div><br></div><div>I tried to run:<br></di= v><div>ping -6 -e FE80::2A0:98FF:FE1D:E270%bridge0 <a href=3D"http://google= .com">google.com</a></div><div>But the packet was sent via tun0 interface.<= /div><div><br></div><div>What is wrong with it?</div><div><br></div><div>--= <br><div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_sig= nature">MATPOCKuH</div></div></div> --000000000000c43e2d05d3334ccb--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALmdT0WvtUdteHKEw35tkgZyVzKW2ZT1LKmm1W62vQ_ev2QyPg>