LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-02-2010, 08:28 AM   #1
skoinga
Member
 
Registered: May 2010
Posts: 87

Rep: Reputation: 0
error on ethernet interface


Hi,

I've a server with two NIC.
Sometimes the server becomes unreacheable. When this happens, I did a reboot and then it works.. but when looking at the interface status (with ifconfig command), I've notice several "errors".
So, I've tried to change NIC.. but the problem occurs again.
I've also changed the port on the switch.

Any suggestion? Could be a software problem?
 
Old 11-02-2010, 08:37 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Are both NICs connected to the same router? If so do they have different names and software addresses?

I believe that if they are connected to the same router then they should have different names and software addresses. Otherwise the router may become confused when mapping the hardware address to the software address.

But I could be wrong.
 
Old 11-02-2010, 08:40 AM   #3
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
If it is linux based, check the following,
lspci
dmesg
route -n
/var/log/message
less /etc/sysconfig/network-scripting/ifcfg-eth0 and ifcfg-eth1

Last edited by kirukan; 11-02-2010 at 08:41 AM.
 
Old 11-02-2010, 08:48 AM   #4
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

also check cabling and if available logs on your switch/router.
 
Old 11-02-2010, 01:27 PM   #5
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,681
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by stress_junkie View Post
Are both NICs connected to the same router? If so do they have different names and software addresses?

I believe that if they are connected to the same router then they should have different names and software addresses. Otherwise the router may become confused when mapping the hardware address to the software address.

But I could be wrong.
I have many machines with multiple NICs configured with the same address. This is for fallback redundancy, not load balancing. To make this work right, I set rp_filter to 0 to disable RFC3704 Strict Reverse Path and RFC3704 Loose Reverse Path (intended to prevent in-LAN DDos attacks via IP spoofing). This allows asymmetric paths. If you trust your LAN, this should be OK.

Code:
(for f in /proc/sys/net/ipv4/conf/*/rp_filter;do echo 0 >$f;done)
Collect the IPv6 link-local addresses of your machines with 2 or more NICs. On another machine, ping or SSH in to the machines with non-working IP addresses to see if these IPv6 addresses are working. On the client, you will need to append "%eth0" to the address (or replace "eth0" with whatever client interface can reach the server target NIC). Even if the IPv4 addresses, ARP, or routing gets messed up, if it is on the same LAN with a transparent switch, IPv6 should be able to connect. Try the connection against each interface. If you can get in via SSH, it might be more convenient to diagnose trouble since you are at another machine that can be try to make connections to IPv4 addresses.

Code:
ping6 fe80::215:17ff:fef2:63e8%eth0
ping6 fe80::215:17ff:fef2:63e9%eth0
ssh root@fe80::215:17ff:fef2:63e8%eth0
ssh root@fe80::215:17ff:fef2:63e9%eth0
 
Old 11-02-2010, 01:53 PM   #6
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
check the cabling
 
  


Reply



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
Receive Ethernet VLAN frame on the native ethernet interface (raw packet socket) scottbiker Linux - Networking 0 07-13-2009 03:49 AM
Bridge between ethernet interface and tap interface jayadhanesh Linux - Networking 3 04-12-2009 11:32 PM
ERROR: The interface does not exist (UBUNTU) interface eth0 not configured anshulbhatt Linux - Networking 2 11-20-2008 12:23 PM
Ethernet Interface custangro Solaris / OpenSolaris 7 05-02-2007 05:35 PM
how can i shutdown the PHYSICAL interface of an ethernet interface markraem Linux - Networking 2 04-12-2007 02:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:06 PM.

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