Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
10-19-2004, 10:28 PM
|
#1
|
Member
Registered: Sep 2004
Location: Malaysia
Posts: 181
Rep:
|
ftp: connect: No route to host
I am trying to setup FTP server using vsftpd, but i the middle i face some problems. My local connected pc's are not able to access the local FTP server.
I had upgrade to the latest kernel in both LAN pc
Code:
[eugene@localhost eugene]$ uname -r
2.6.8.1-MyKernel
The problem didint solve...
Code:
[root@localhost eugene]# ftp 192.168.1.XXX
ftp: connect: No route to host
what does "ftp: connect: No route to host" means?
Anyone knows please help, thanks
|
|
|
10-20-2004, 01:16 AM
|
#2
|
Member
Registered: Aug 2004
Location: India
Distribution: Redhat Enterprise Server 2.1
Posts: 96
Rep:
|
can you try and ping the ftp server and from the error it looks like the ftp server and client are on diff subnets
|
|
|
10-20-2004, 01:25 AM
|
#3
|
Member
Registered: Sep 2004
Location: Malaysia
Posts: 181
Original Poster
Rep:
|
The below IP address is the my FTP server computer IP
I ping this from my LAN computer
Code:
[root@localhost eugene]# ping 192.168.1.185
PING 192.168.1.185 (192.168.1.185) 56(84) bytes of data.
64 bytes from 192.168.1.185: icmp_seq=0 ttl=64 time=0.754 ms
64 bytes from 192.168.1.185: icmp_seq=1 ttl=64 time=0.171 ms
64 bytes from 192.168.1.185: icmp_seq=2 ttl=64 time=0.199 ms
64 bytes from 192.168.1.185: icmp_seq=3 ttl=64 time=0.178 ms
--- 192.168.1.185 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.171/0.325/0.754/0.248 ms, pipe 2
Both FTP server and client in different subnets? So what so i do now?
Thanks for the help....
|
|
|
10-20-2004, 01:38 AM
|
#4
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
What is the IP adress of the computer you are pinging from? Post the output of
ifconfig -a
and
route
|
|
|
10-20-2004, 05:24 AM
|
#5
|
Member
Registered: Sep 2004
Location: Malaysia
Posts: 181
Original Poster
Rep:
|
The below are the results of "ping", "ifconfig -a", "route" for both of my pc (ftp server and client pc). Anybody knows what is my probem please help..... Thank You.....
Client PC IP address 192.168.1.221
FTP server IP address 192.168.1.185
The below command are typed in the FTP server pc
Code:
[root@localhost root]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0C:6E:30:A1:69
inet addr:192.168.1.185 Bcast:255.255.255.255 Mask:255.255.255.0
inet6 addr: fe80::20c:6eff:fe30:a169/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:734550 errors:0 dropped:0 overruns:0 frame:0
TX packets:690278 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:653437487 (623.1 Mb) TX bytes:248945022 (237.4 Mb)
Interrupt:3 Base address:0xe000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:39676 errors:0 dropped:0 overruns:0 frame:0
TX packets:39676 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:13840163 (13.1 Mb) TX bytes:13840163 (13.1 Mb)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Code:
[root@localhost root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
Code:
[root@localhost root]# ping 192.168.1.221
PING 192.168.1.221 (192.168.1.221) 56(84) bytes of data.
64 bytes from 192.168.1.221: icmp_seq=0 ttl=64 time=0.181 ms
64 bytes from 192.168.1.221: icmp_seq=1 ttl=64 time=0.162 ms
64 bytes from 192.168.1.221: icmp_seq=2 ttl=64 time=0.160 ms
64 bytes from 192.168.1.221: icmp_seq=3 ttl=64 time=0.163 ms
--- 192.168.1.221 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.160/0.166/0.181/0.015 ms, pipe 2
Thje below command are typed in client pc
Code:
[root@localhost root]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:C0:9F:29:33:1D
inet addr:192.168.1.221 Bcast:255.255.255.255 Mask:255.255.255.0
inet6 addr: fe80::2c0:9fff:fe29:331d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:84 errors:0 dropped:0 overruns:0 frame:0
TX packets:93 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9559 (9.3 Kb) TX bytes:8728 (8.5 Kb)
Interrupt:11 Base address:0x3000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2271 errors:0 dropped:0 overruns:0 frame:0
TX packets:2271 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2226546 (2.1 Mb) TX bytes:2226546 (2.1 Mb)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Code:
[root@localhost root]# ping 192.168.1.185
PING 192.168.1.185 (192.168.1.185) 56(84) bytes of data.
64 bytes from 192.168.1.185: icmp_seq=0 ttl=64 time=1.09 ms
64 bytes from 192.168.1.185: icmp_seq=1 ttl=64 time=0.203 ms
64 bytes from 192.168.1.185: icmp_seq=2 ttl=64 time=0.160 ms
64 bytes from 192.168.1.185: icmp_seq=3 ttl=64 time=0.165 ms
--- 192.168.1.185 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.160/0.405/1.095/0.399 ms, pipe 2
Code:
[root@localhost root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
|
|
|
10-20-2004, 05:35 AM
|
#6
|
Member
Registered: Sep 2004
Location: USA
Distribution: Slackware 10
Posts: 86
Rep:
|
Have you tried a different ftp client?
|
|
|
10-20-2004, 06:56 AM
|
#7
|
Member
Registered: Aug 2004
Location: India
Distribution: Redhat Enterprise Server 2.1
Posts: 96
Rep:
|
Do you have IPtables on and what are yo using the sit0 int for.
|
|
|
10-21-2004, 08:59 AM
|
#8
|
Member
Registered: Sep 2004
Location: Malaysia
Posts: 181
Original Poster
Rep:
|
how to check my "IPtables on"? sit0, i wasnt understand what is the thing.
|
|
|
10-22-2004, 02:59 AM
|
#9
|
Member
Registered: Aug 2004
Location: India
Distribution: Redhat Enterprise Server 2.1
Posts: 96
Rep:
|
Quote:
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
|
The sit0 i mentioned earlier is from the o/p of ifconfig -a from the FTP server.
BTW if you dunn need it you can anyway shut it down.
Code:
#ifconfig sit0 down
Iptables can be shutdown using
Code:
#service iptables stop
in case of Redhat
Or to just view what rules you have you can use
|
|
|
10-23-2004, 07:31 AM
|
#10
|
Member
Registered: Sep 2004
Location: Malaysia
Posts: 181
Original Poster
Rep:
|
What is this for?
Code:
[root@localhost sbin]# /sbin/iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
I had solve the connection of the FTP client to FTP server. Actually the problem is from the Linux internal firewall. I didnt enable FTP. About the connection is solve now.
Here is another error for me when my LAN client PC try to search dir in FTP server
Code:
[root@localhost root]# ftp 192.168.1.xxx
Connected to 192.168.1.xxx (192.168.1.xxx).
220 Welcome to TYJ's FTP
Name (192.168.1.xxx:eugene): user1
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (192,168,1,xxx,221,85)
ftp: connect: No route to host
ftp>
can i know what is going on? What is the next step i should do?
Anyone knows please help...
Thanks....
|
|
|
04-07-2010, 03:06 AM
|
#11
|
Member
Registered: Jul 2004
Location: india
Distribution: Ubuntu 14.04
Posts: 155
Rep:
|
unable to down sit0
i too have the same problem but i am unable to down sit0 by using the below command:
ifconfig sit0 down
and after checking it by ifconfig -a
it still shows sit0
|
|
|
04-10-2010, 01:18 PM
|
#12
|
Member
Registered: Mar 2009
Posts: 249
Rep:
|
ifconfig -a shows all interfaces irrespective of whichever they are up or down.
|
|
|
05-07-2010, 03:38 AM
|
#13
|
LQ Newbie
Registered: May 2010
Posts: 1
Rep:
|
Quote:
Originally Posted by gsr_kashyap
i too have the same problem but i am unable to down sit0 by using the below command:
ifconfig sit0 down
and after checking it by ifconfig -a
it still shows sit0
|
** after bringing iptables service down, I am able to access from local machines..
#service iptables stop Resolved the issue...
|
|
|
06-08-2010, 11:07 AM
|
#14
|
LQ Newbie
Registered: Jun 2010
Location: Moscow, Russia
Posts: 2
Rep:
|
Such an issue occurs when the 'ip_conntrack_ftp' kernel module is not loaded. To work with iptables enabled you need to configure the system's init scripts (e.g. via /etc/sysconfig/iptables-config on RedHat-like Linux) to load it on system startup.
Last edited by mikeus; 06-08-2010 at 11:10 AM.
|
|
|
02-15-2011, 11:16 PM
|
#15
|
LQ Newbie
Registered: Oct 2009
Posts: 1
Rep:
|
Thanks, for the suggestions, its exactly working fine, once again thanks
|
|
|
All times are GMT -5. The time now is 02:10 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|