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>
index | next in thread | raw e-mail
[-- Attachment #1 --]
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
[-- Attachment #2 --]
<div dir="ltr"><div>Hello!</div><div><br></div><div>In a man page for ping(8) and in it's help output I found option "-e":</div><div> -e gateway<br> Specifies to use gateway as the next hop to the destination. The<br> gateway must be a neighbor of the sending node.</div><div><br></div><div>I tried to use this argument, 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 established bridge0 which has available some LL addresses:</div><div>Neighbor Linklayer Address Netif Expire S Flags<br>fe80::2a0:98ff:fe1d:e270%bridge0 00:a0:98:1d:e2:70 bridge0 23h56m34s S R<br></div><div><br></div><div>I tried to run:<br></div><div>ping -6 -e FE80::2A0:98FF:FE1D:E270%bridge0 <a href="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="ltr" class="gmail_signature" data-smartmail="gmail_signature">MATPOCKuH</div></div></div>
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALmdT0WvtUdteHKEw35tkgZyVzKW2ZT1LKmm1W62vQ_ev2QyPg>
