Re: [PATCH] ipv4: fix inet_select_addr() when enable route_localnet

2019-06-16 Thread Luoshijie (Poincare Lab)
On 2019/6/15 9:00, David Ahern wrote: > On 6/14/19 10:55 AM, luoshijie wrote: >> From: Shijie Luo >> >> Suppose we have two interfaces eth0 and eth1 in two hosts, follow >> the same steps in the two hosts: >> # sysctl -w net.ipv4.conf.eth1.route_localnet=1 >> # sysctl -w net.ipv4.conf.eth1.arp_an

Re: [PATCH] ipv4: fix inet_select_addr() when enable route_localnet

2019-06-14 Thread David Ahern
On 6/14/19 10:55 AM, luoshijie wrote: > From: Shijie Luo > > Suppose we have two interfaces eth0 and eth1 in two hosts, follow > the same steps in the two hosts: > # sysctl -w net.ipv4.conf.eth1.route_localnet=1 > # sysctl -w net.ipv4.conf.eth1.arp_announce=2 > # ip route del 127.0.0.0/8 dev lo

[PATCH] ipv4: fix inet_select_addr() when enable route_localnet

2019-06-14 Thread luoshijie
From: Shijie Luo Suppose we have two interfaces eth0 and eth1 in two hosts, follow the same steps in the two hosts: # sysctl -w net.ipv4.conf.eth1.route_localnet=1 # sysctl -w net.ipv4.conf.eth1.arp_announce=2 # ip route del 127.0.0.0/8 dev lo table local and then set ip to eth1 in host1 like: #