Linux network programming no route to host solution

Source: Internet
Author: User

Linux network programming no route to host solution "consolidate data"(2013-05-13 21:38:12) reproduced
Tags: net iptables it Category: Linux
Resources
http://1413570.blog.51cto.com/1403570/792861
http://2614223.blog.51cto.com/2604223/764757

In the vmvare with two MySQL, found with MySQL not connected to MySQL server, with telnet login MySQL 3306 port, found incredibly is no route to host;

[[Email protected] ~]$ telnet 192.168.2.48 3306
Trying 192.168.2.48 ...
Telnet:connect to address 192.168.2.48:no route to host
Telnet:unable to connect-to-remote host:no route to host

Feel very difference, it is estimated that the virtual machine installed a problem, the virtual machine in the firewall to clear a bit, found feasible.

[email protected] ~]$ sudo iptables-f



After the installation of VSFTPD today, the basic configuration is OK, local access to the other server access, prompting Ftp:connect:No route to host this problem, first of all, and VSFTPD service configuration is irrelevant, because you are already able to access the local , the first consideration is whether the firewall adds 21 ports, with the command iptables-l--line-num Discovery has been added, in addition, only consider the firewall is less FTP module, resulting in errorEdit Vi/etc/sysconfig/iptables-configAdd a line: iptables_modules= "Ip_nat_ftp ip_conntrack_ftp" after restarting Iptables[[email protected] ~]# service IPTABLES  restartflushing firewall rules: [OK]setting chains to policy accept:filter [OK]unloading iptables modules: [OK] ]applying iptables Firewall rules: [OK]loading additional iptables modules:ip_nat_ftp ip_conntrack_ftp [OK]ok, module Already loaded and then access the FTP service is OK ...

Linux network programming no route to host solution

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.