Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 a linux box with four interfaces(eth).
I have connected cable and assigned Ip for two of the interfaces.When I try pinging the IP,after adding default GW,it is pinging for one of the assigned IP addresses.
For the other interface and other IP address,it is not pinging even if I do
* ifconfig eth1 down for teh other one.
The physical link is not getting detected at all for eth0.
thought there could be some cabling issue,but the cable was fine.
Can some one plz let me know how to resolve this issue??
You might try swapping the cables to see if you still have link on eth1 but not on eth0. This would tell you the problem is with eth0 itself.
If on the other hand you now have link on eth0 but not eth1 after the swap it tells you it is an issue with whatever was connected to eth0 before the swap. (e.g. The cable or the switch port on the other end to which you're connected. Sometimes switches will disable a port if they see it go up and down a couple of times.)
Also you don't mention whether these are both in the same subnet/VLAN. If not you need to make a route entry to route traffic for the second NIC.
Having your default gateway on eth1's subnet rather than eth0's can cause issues as well. Recently I found this on RHEL 5 server where I was trying to set the gateway for eth1 as the default gateway and it causes issues bringing up eth0. My solution was to save ifcfg-eth0 and ifcfg-eth1 (outside the directory where they lived then create a new ifcfg-eth0 that had the contents (including MAC) of the old ifcfg-eth1 and vice-versa so what had been eth1 was now eth0. That way my default gateway was now the one that eth0 was seeing. (This means the port on back of server that previously was eth0 was now eth1 and vice-versa.)
Finally you might want to try using ethtool rather than mii-tool if your interfaces support it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.