> -邮件原件-
> 发件人: David Ahern [mailto:dsah...@gmail.com]
> 发送时间: Monday, August 24, 2020 10:34
> 收件人: Guodeqing (A) ; da...@davemloft.net
> 抄送: k...@kernel.org; netdev@vger.kernel.org
> 主题: Re: [PATCH] ipv4: fix the problem of ping failure in some cases
>
> On 8/23
On 8/23/20 8:27 PM, David Ahern wrote:
> On 8/22/20 1:46 AM, guodeqing wrote:
>> ie.,
>> $ ifconfig eth0 9.9.9.9 netmask 255.255.255.0
>>
>> $ ping -I lo 9.9.9.9
If that ever worked it was wrong; the address is scoped to eth0, not lo.
>> ping: Warning: source address might be selected on device o
On 8/22/20 1:46 AM, guodeqing wrote:
> ie.,
> $ ifconfig eth0 9.9.9.9 netmask 255.255.255.0
>
> $ ping -I lo 9.9.9.9
> ping: Warning: source address might be selected on device other than lo.
> PING 9.9.9.9 (9.9.9.9) from 9.9.9.9 lo: 56(84) bytes of data.
>
> 4 packets transmitted, 0 received, 10
ie.,
$ ifconfig eth0 9.9.9.9 netmask 255.255.255.0
$ ping -I lo 9.9.9.9
ping: Warning: source address might be selected on device other than lo.
PING 9.9.9.9 (9.9.9.9) from 9.9.9.9 lo: 56(84) bytes of data.
4 packets transmitted, 0 received, 100% packet loss, time 3068ms
This is because the retu