LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-19-2004, 10:28 PM   #1
dwarf007
Member
 
Registered: Sep 2004
Location: Malaysia
Posts: 181

Rep: Reputation: 30
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
 
Old 10-20-2004, 01:16 AM   #2
nitin_batta
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat Enterprise Server 2.1
Posts: 96

Rep: Reputation: 15
can you try and ping the ftp server and from the error it looks like the ftp server and client are on diff subnets
 
Old 10-20-2004, 01:25 AM   #3
dwarf007
Member
 
Registered: Sep 2004
Location: Malaysia
Posts: 181

Original Poster
Rep: Reputation: 30
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....
 
Old 10-20-2004, 01:38 AM   #4
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 45
What is the IP adress of the computer you are pinging from? Post the output of
ifconfig -a
and
route
 
Old 10-20-2004, 05:24 AM   #5
dwarf007
Member
 
Registered: Sep 2004
Location: Malaysia
Posts: 181

Original Poster
Rep: Reputation: 30
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
 
Old 10-20-2004, 05:35 AM   #6
DertyolBA$HTARD
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware 10
Posts: 86

Rep: Reputation: 15
Have you tried a different ftp client?
 
Old 10-20-2004, 06:56 AM   #7
nitin_batta
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat Enterprise Server 2.1
Posts: 96

Rep: Reputation: 15
Do you have IPtables on and what are yo using the sit0 int for.
 
Old 10-21-2004, 08:59 AM   #8
dwarf007
Member
 
Registered: Sep 2004
Location: Malaysia
Posts: 181

Original Poster
Rep: Reputation: 30
how to check my "IPtables on"? sit0, i wasnt understand what is the thing.
 
Old 10-22-2004, 02:59 AM   #9
nitin_batta
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat Enterprise Server 2.1
Posts: 96

Rep: Reputation: 15
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

Code:
#iptables -L
 
Old 10-23-2004, 07:31 AM   #10
dwarf007
Member
 
Registered: Sep 2004
Location: Malaysia
Posts: 181

Original Poster
Rep: Reputation: 30
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....
 
Old 04-07-2010, 03:06 AM   #11
gsr_kashyap
Member
 
Registered: Jul 2004
Location: india
Distribution: Ubuntu 9.04
Posts: 150

Rep: Reputation: 15
Angry 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
 
Old 04-10-2010, 01:18 PM   #12
TimothyEBaldwin
Member
 
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
ifconfig -a shows all interfaces irrespective of whichever they are up or down.
 
Old 05-07-2010, 03:38 AM   #13
Mamta Rivonkar
LQ Newbie
 
Registered: May 2010
Posts: 1

Rep: Reputation: 0
Cool

Quote:
Originally Posted by gsr_kashyap View Post
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...
 
Old 06-08-2010, 11:07 AM   #14
mikeus
LQ Newbie
 
Registered: Jun 2010
Location: Moscow, Russia
Posts: 2

Rep: Reputation: 0
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.
 
Old 02-15-2011, 11:16 PM   #15
ulla.noor
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
Thanks, for the suggestions, its exactly working fine, once again thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect Failed: not route to host frankjp Linux - Networking 4 06-15-2005 11:09 PM
FTP No Route to Host JShadow Linux - Networking 2 03-11-2005 02:59 AM
ftp: connect: No route to host agki Linux - Networking 2 03-09-2005 04:25 PM
ftp connect: no route to host dominant Linux - Networking 4 09-07-2004 04:29 AM
coulnt not connect to host ftp.suse.com Adibe_Hamm Linux - Distributions 2 12-03-2003 08:24 AM


All times are GMT -5. The time now is 12:53 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration