Linux - NetworkingThis 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.
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.
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
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
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.