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.
1) Can you ping 192.168.10.3 from the machine itself?
2) Do all link lights look OK?
3) If this is 2 machines connected directly - is a crossver cable used?
4) What is your network layout?
2) Links are ok, after some more testing, I know the card is fine as is the cable.
3) I am basically making a test environment to set up ntop within in a switch. So, the box has one NIC connected to a switch and the other NIC is connected to a DIFFERENT switch that has only two other machines connected to it. Those two can see each other just fine.
I have tried turning both interfaces off. Bringing up just one of them at a time on the 192.168.2.0 network. Both interfaces worked when placed on the 192.168.2.0 network found in switch 1. When I tried the same on the other network/switch, no luck.
I even brought both interfaces up on the 192.168.2.0 network at the same time and they both worked.
Bringing up a damn interface should be cake. I have never run into this before. I am about stumped...
As far as I can see that should work fine. Do you have an objection to using 2 ip ranges - ie use 172 addresses for machines on the second switch. It makes the routing a little easier to manage.
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.10.0 192.168.10.3 255.255.255.0 UG 0 0 0 eth0
192.168.10.0 0.0.0.0 255.255.255.0 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 192.168.2.254 0.0.0.0 UG 0 0 0 eth1
i see you added the route for the network. but in the third line there is route for that network saying that the gateway is 0.0.0.0 i.e. the default gateway. delete that route and then try pinging.
compare the 5th line of the ifconfig output for eth0:
"TX packets:1017 errors:0 dropped:0 overruns:0 carrier:157"
end eth1:
"TX packets:6853185 errors:0 dropped:0 overruns:185 carrier:0"
The 'carrier' <> 0 shows the problems with transmission.
I think the 'overruns'<>0 is also problematic.
Unfortunately these ifconfig output parms are not well documented.
I've looked at source files and it looked like an error counter but it was not worth to study it too much :)
So basically you've got two different isolated network segments:
network card 1 network goes to switch 1
network card 2 network goes to switch 2 ?
I think you've got to bridge the two network cards together somehow, not sure how you to do that on linux yet, XP point and click bridge the two cards. Probably need some IP Tables routing rules,Don't think specifying a gateway on its own will get you anywhere as it'll be a gateway to nowhere - remember switches work with MAC addresses.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.