Date: Wed, 15 Dec 2021 11:32:00 -0700 From: Alan Somers <asomers@freebsd.org> To: KOT MATPOCKuH <matpockuh@gmail.com> Cc: freebsd-stable List <freebsd-stable@freebsd.org> Subject: Re: ping -6 ignores -e parameter Message-ID: <CAOtMX2jUey0qA8MTmRzjVmdQJp5-JOBEeLwGtoNvrucdvwcTWQ@mail.gmail.com> In-Reply-To: <CALmdT0WvtUdteHKEw35tkgZyVzKW2ZT1LKmm1W62vQ_ev2QyPg@mail.gmail.com> References: <CALmdT0WvtUdteHKEw35tkgZyVzKW2ZT1LKmm1W62vQ_ev2QyPg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 15, 2021 at 11:16 AM KOT MATPOCKuH <matpockuh@gmail.com> wrote: > > 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 What version of FreeBSD are you using? There was a major change to ping's code in FreeBSD 13. Please show the output of 'freebsd-version' and 'netstat -rn'. -Alan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2jUey0qA8MTmRzjVmdQJp5-JOBEeLwGtoNvrucdvwcTWQ>