I have installed 3 nic, but only one can "ping" other machine, why?
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 installed 3 nic, but only one can "ping" other machine, why?
My server (it has 2-CPU) has two Intel Gigabit netcard, and I added a DFE-530TX netcard, the OS is Redhat AS 2.1, their IP are 192.168.3.100, 192.168.3.101, 192.168.3.102 respectively. Only when the 192.168.3.102 was link to network, I can ping 192.168.3.138( other machine ), other two nic can not do so.
I have edited /etc/modules.conf and /etc/sysconfig/networ-scripts/ifcfg-ethN, but the problem can not be resolved.
When I typed route command, it displays following:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.3.0 * 255.255.255.0 U 0 0 0 eth2
192.168.3.0 * 255.255.255.0 U 0 0 0 eth1
192.168.3.0 * 255.255.255.0 U 0 0 0 eth2
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default my.router 0.0.0.0 UG 0 0 0 eth0
I would suggest taking a look at the route table (type 'route') You might just find that traffic for the local network is set to use eth0 only. That one has caught me out once or twice!
Question is, why have you got three network cards all on the same network? You know you can set more than one address on a single card?
Sorry, I can not know your exact means. However I can assure the problem is raised by route table: it shoud be setup manully.
If 3 nic were configured 192.168.1.1, 192.168.2.1,192.168.3.1, all nic can ping other machines , such as 192.168.1.1-->192.168.1.2 , 192.168.2.1-->192.168.2.2, 192.168.3.1-->192.168.3.2 .
Only way to make full use of 3 NIC is to use load balancing. Even when using that you would need to have the three NICs connected to different ports on a gigbit switch, or else you won't gain anything. It would only cause overhead to determine which card to send packets to, only to find that the wire was busy from trafic from one of the other cards.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.