1. When no configuration is made
Terminal: Ping other addresses to respond, but ping www.baidu.com shows that the host cannot be found.
Server: Ping 192.168.0.189 responds, Ping 192.168.1.1 does not respond, and Ping 192.168.1.210 does not respond.
Ii. After configuration
1,Add a route to the server:Route add 192.168.1.1 Dev eth1After
At this time, Ping 192.168.1.1 on the server side has a response, but ping 192.168.1.210 has no response.
2,Add a route to the server:Route add 192.168.1.0/24 GW 192.168.1.1After,
Ping 192.168.1.210 on the server to respond !!!
Rnrm Ping 192.168.1.210 responds !!!
3.SoftAPEnd-to-End route modification: Route del default Dev eth0 route add default GW 192.168.0.1 Dev eth0At this time, Ping www.baidu.com on the soft AP and terminal to respond!
(The gateway of the default route of the original soft AP is 0.0.0.0 and changed to 192.168.0.1)
Iii. Summary
The main reason for the failure of the server or rnrmping to access the network 192.168.1.0/24 is that the server does not specify the interface through which the packet destined for 192.168.1.0/24 goes out, no gateway is specified. (the default route of the server is used by default, that is, the eth0 Nic is used out. After eth0 is used, the gateway is 219.245.89.254 !)!
Appendix: Soft AP Routing
Server Routing, key !!