Soft rnrm Ping Terminal Solution

Source: Internet
Author: User

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 !!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.