LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 06-21-2006, 10:10 AM   #1
gplus
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Rep: Reputation: 0
"No route to Host" on the same network?


I have 2 servers setup on the same network, but I don't know why I can't connect to each other, no matter I try to ftp, ssh, email... etc. I always got "No rote to host" and the connection was closed.

I have already turn off both server's firwall and try, but the problem still exist.
I think I need some help...

Server 1 route -n
-------------------------------------
Kernel IP routing table @ 219.77.1.10
Destination Gateway Genmask Flags Metric Ref Use
Iface
219.77.1.0 0.0.0.0 255.255.255.128 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 219.77.1.1 0.0.0.0 UG 0 0 0 eth0


Server 2 route -n (with 2 ips)
-------------------------------------
Kernel IP routing table @ 219.77.1.11 and 219.77.1.12
Destination Gateway Genmask Flags Metric Ref Use
Iface
219.77.1.11 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
219.77.1.12 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
219.77.1.0 0.0.0.0 255.255.255.128 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 219.77.1.1 0.0.0.0 UG 0 0 0 eth0
 
Old 06-21-2006, 10:31 AM   #2
intel_ro
Member
 
Registered: Jun 2006
Location: Romania
Distribution: RH 9, FD 2,3,4,5 Debian
Posts: 37

Rep: Reputation: 15
are u shure your interace are up because no route to host is about interfaces .. if u use virtual interface check the config files /etc/stsconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=x.x.x.x
NETMASK=255.255.255.128
NETWORK=x.x.x.0
BROADCAST=x.x.x.127
ONBOOT=yes
MII_NOT_SUPPORTED=yes

/etc/stsconfig/network-scripts/ifcfg-eth0:0
DEVICE=eth0:0
BOOTPROTO=static
IPADDR=x.x.x.x
NETMASK=255.255.255.128
NETWORK=x.x.x.0
BROADCAST=x.x.x.127
ONBOOT=yes
MII_NOT_SUPPORTED=yes

add don't use staic route command for setting virtual inteface ip ! and check the cables if u have link !

Last edited by intel_ro; 06-21-2006 at 10:33 AM.
 
Old 06-21-2006, 10:49 AM   #3
gplus
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Original Poster
Rep: Reputation: 0
I have also check the "network-scripts" directory and I am sure I got the right setting on both ifcfg-eth0 and ifcfg-0:0. Moreover, I can access to externel network (let say ftp to mirror.centos.org) without any problem.
 
Old 06-21-2006, 12:33 PM   #4
intel_ro
Member
 
Registered: Jun 2006
Location: Romania
Distribution: RH 9, FD 2,3,4,5 Debian
Posts: 37

Rep: Reputation: 15
did u set netmask at ifcfg-eth0:0 and eth0 because see the netmask u use is 255.255.255.255 and one more thing activate ip_forward to forward traffic from interface eth0 to eth0:0
 
Old 06-21-2006, 01:00 PM   #5
intel_ro
Member
 
Registered: Jun 2006
Location: Romania
Distribution: RH 9, FD 2,3,4,5 Debian
Posts: 37

Rep: Reputation: 15
if u set it like this will work
files /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=219.77.1.11
NETMASK=255.255.255.128
NETWORK=219.77.1.0
BROADCAST=219.77.1.127
ONBOOT=yes
MII_NOT_SUPPORTED=yes

/etc/stsconfig/network-scripts/ifcfg-eth0:0
DEVICE=eth0:0
BOOTPROTO=static
IPADDR=219.77.1.12
NETMASK=255.255.255.128
NETWORK=219.77.1.0
BROADCAST=219.77.1.127
ONBOOT=yes
MII_NOT_SUPPORTED=yes
 
  


Reply



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
Pan :: "No route to host" error tireseas Linux - Networking 3 05-02-2005 09:47 PM
Route to subnet exists but I get "Network unreachable" when adding default route fciuffani Linux - Networking 4 08-18-2004 02:11 PM
"No route to host" on RH 8.0 + W2K LAN szatki Linux - Networking 8 02-19-2004 12:30 PM
could "no route to host" be caused by non-crossover cable? brandonweinberg Linux - Networking 13 01-31-2004 09:47 AM
Permanently set "route add" -host and default gw sacants Linux - Newbie 1 07-18-2003 04:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:42 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration