Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-22-2009, 04:44 AM   #1
LQ Newbie
Registered: Oct 2009
Posts: 4

Rep: Reputation: 0
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??

eth0:no link
eth1:link ok
Old 10-23-2009, 01:15 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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.


box, interface, linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Interface issue sweaniv Linux - Hardware 1 10-23-2009 04:16 PM
Apache2 Interface Issue subcon Linux - Enterprise 2 08-08-2007 11:41 AM
network issue. no interface. slack 10.0 capicu Slackware 8 09-23-2005 06:33 PM
Interface issue geomonap Linux - General 1 01-13-2005 02:57 PM
interface issue geomonap Linux - Networking 1 01-13-2005 09:11 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:14 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration