Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-22-2009, 04:44 AM
|
#1
|
|
LQ Newbie
Registered: Oct 2009
Posts: 4
Rep:
|
Interface issue
Can any1 plz help me::::
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??
#mii-tool
eth0:no link
eth1:link ok
|
|
|
|
10-23-2009, 01:15 PM
|
#2
|
|
Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,644
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:47 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|