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.
The solution was in the setup of the gateways of server three. I had each of the subnets reply on
192.168.1.2 eth1. This doesn't work for the subnets that are comming off the NIC. The solution was to have the table read:
Server3:
Code:
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.5.0 * 255.255.255.0 U 0 0 0 eth5
192.168.4.0 192.168.5.2 255.255.255.0 UG 0 0 0 eth1
192.168.3.0 * 255.255.255.0 U 0 0 0 eth3
192.168.2.0 192.168.3.2 255.255.255.0 UG 0 0 0 eth1
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
192.168.0.0 192.168.1.2 255.255.255.0 UG 0 0 0 eth1
WAN * 255.255.248.0 U 0 0 0 eth0
default ISP_PROVIDED 0.0.0.0 UG 100 0 0 eth0
Quote:
I have a set up of three identical servers. They all have a dual gigabit onboard network adapter (eth0, eth1) and an Intel PRO 1000VT Quad Port 1GbE NIC (eth2, eth3, eth4, eth5). I have them connected to each other as follows:
I set up routing on Server1 (eth1 is set to a utility server for remote connection):
Code:
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.4.0 * 255.255.255.0 U 0 0 0 eth4
192.168.2.0 * 255.255.255.0 U 0 0 0 eth2
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
192.168.254.0 * 255.255.255.0 U 0 0 0 eth1
default 192.168.0.2 0.0.0.0 UG 100 0 0 eth0
Server2:
Code:
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.5.0 * 255.255.255.0 U 0 0 0 eth5
192.168.4.0 * 255.255.255.0 U 0 0 0 eth4
192.168.3.0 * 255.255.255.0 U 0 0 0 eth3
192.168.2.0 * 255.255.255.0 U 0 0 0 eth2
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
Server3:
Code:
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.5.0 * 255.255.255.0 U 0 0 0 eth5
192.168.4.0 192.168.1.2 255.255.255.0 UG 0 0 0 eth1
192.168.3.0 * 255.255.255.0 U 0 0 0 eth3
192.168.2.0 192.168.1.2 255.255.255.0 UG 0 0 0 eth1
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
192.168.0.0 192.168.1.2 255.255.255.0 UG 0 0 0 eth1
WAN * 255.255.248.0 U 0 0 0 eth0
default ISP_PROVIDED 0.0.0.0 UG 100 0 0 eth0
I have forwarding on
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
Now my problem is, from Server1 i can ping 192.168.1.3, but not 192.168.3.3 or 192.168.5.3. Similarly, from Server3 i can ping 192.168.0.1, but not 192.168.2.1 or 192.168.4.1. Finally, from Server2 i can ping all of them.
Any ideas?
Last edited by Mitch Gaylord; 12-29-2009 at 03:30 PM.
Reason: solved
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.