I have installed 3 nic, but only one can "ping" other machine, why?
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.
Think about it. It you are a program on your machine, and want to send stuff out to the internet, how do you know which card to use? The only way to use multiple NICs is to manually configure the routes so that each one serves a different range of IP addresses.
So, a firewall machine would have one NIC only serving 192.168.x.x addresses, and the other everything else.
Unless you have such a situation, I would shut the other cards off. Thatt's what I do. Just becasue you have multiple NICs does not mean you should use them!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.