Before the commit a71dcfd392cc1022c2 , routes corresponding to gateway 1 and gateway 2 can be added, but the route corresponding to gateway 0 fails to be added, and error message like :"RTNETLINK answers: File exists".
After the patch is merged, the route corresponding to gateway0 can replace the default route added by the kernel. As a result, the other two routes cannot be added, and the error message is displayed: Error: Nexthop has invalid gateway.
The patch aims to solve the race problem between routes and works successfully.But the failure to add gateway1 and gateway2 directly affects my network. In this case, users should not use the configuration like this? Or do we have a better solution?
When I use the following configuration, restart the network service.
Configuration content: /etc/sysconfig/network-scripts/ifcfg-eth2
/etc/sysconfig/network-scripts/route-eth2
Before the commit a71dcfd392cc1022c2 , routes corresponding to gateway 1 and gateway 2 can be added, but the route corresponding to gateway 0 fails to be added, and error message like :"RTNETLINK answers: File exists".
After the patch is merged, the route corresponding to gateway0 can replace the default route added by the kernel. As a result, the other two routes cannot be added, and the error message is displayed:
Error: Nexthop has invalid gateway.
The patch aims to solve the race problem between routes and works successfully.But the failure to add gateway1 and gateway2 directly affects my network. In this case, users should not use the configuration like this? Or do we have a better solution?