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
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
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:
#