Network problems caused by arp
Problem description
1.A machine has two network cards, ip is 10.1.1.2 and 192.168.1.2, and its gateways are 10.1.1.1 and 192.168.1.1, respectively.
2. B machine has a network card, the ip is 192.168.1.3 and the gateway is 192.168.1.1.
3.10.1.1.1 routing and 192.168.1.1 routing network interworking
4. When ping 10.1.1.2 of B machine returns that the host is unreachable, ping 192.168.1.2 can be reached, and the ping gateway of B machine 192.168.1.1 cannot be reached either.
After troubleshooting, it was found that the host arp sometimes could not get the mac address of the gateway 192.168.1.1. After manual binding, the problem was solved.