LinuxQuestions.org
Review your favorite Linux distribution.
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 05-14-2010, 02:46 AM   #1
WonderLlama
LQ Newbie
 
Registered: Apr 2010
Location: Across town
Distribution: Slackware 11; Ubuntu 9.10 (netbook)
Posts: 24

Rep: Reputation: 15
eth0 works great, eth1 not working


Ok, so eth0 is up and working great. eth1, however, comes up with a link light, however the packet counters in ifconfig remain at 0. Appears that eth1 isn't working. Here's my setup:

-Dell latitude CPi laptop with 2 PCMCIA network cards and no built-in ethernet.
-Slackware v11
-eth0 is connected inside my router on my 192 network. Static address with good connectivity
-eth1 is connected on the other side of my router in promiscuous mode in order to listen to the traffic coming into my network.

Troubleshooting so far: I have switched the pcmcia cards between slots and regardless of which card is in eth0 or eth1, eth0 works and eth1 does not. I have also switched the card dongle between cards as well as the ethernet cabling between the cards. With any of the combinations eth0 works like a champ but eth1 does not, so I think I've ruled out hardware problems.

At this point I think it's a configuration problem with the eth1 interface but I don't know where to start to diagnose the problem. Sure would appreciate any ideas from the group. Thanks.
 
Old 05-14-2010, 11:53 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,102

Rep: Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719
Quote:
Originally Posted by WonderLlama View Post
Ok, so eth0 is up and working great. eth1, however, comes up with a link light, however the packet counters in ifconfig remain at 0. Appears that eth1 isn't working. Here's my setup:

-Dell latitude CPi laptop with 2 PCMCIA network cards and no built-in ethernet.
-Slackware v11
-eth0 is connected inside my router on my 192 network. Static address with good connectivity
-eth1 is connected on the other side of my router in promiscuous mode in order to listen to the traffic coming into my network.

Troubleshooting so far: I have switched the pcmcia cards between slots and regardless of which card is in eth0 or eth1, eth0 works and eth1 does not. I have also switched the card dongle between cards as well as the ethernet cabling between the cards. With any of the combinations eth0 works like a champ but eth1 does not, so I think I've ruled out hardware problems.

At this point I think it's a configuration problem with the eth1 interface but I don't know where to start to diagnose the problem. Sure would appreciate any ideas from the group. Thanks.
Have you tried just typing in "sudo ifconfig eth1 up"? Could be that the interface is down. And does that interface have a static or DHCP address?
 
Old 05-14-2010, 02:49 PM   #3
WonderLlama
LQ Newbie
 
Registered: Apr 2010
Location: Across town
Distribution: Slackware 11; Ubuntu 9.10 (netbook)
Posts: 24

Original Poster
Rep: Reputation: 15
Interface is indeed up. Shows 'up' on ifconfig. interface is also set for static, not dhcp,and the ip address also shows up on ifconfig. Everything I can see from ifconfig and the physical HW indicates that it's up, but it just doesn't see the traffic (of which there is a lot...verified with wireshark on seperate computer).

I can also successfully ping the address on eth1 from the console.

Here is the output from ifconfig -a


Code:
eth0      Link encap:Ethernet  HWaddr 00:50:8B:59:A4:01
          inet addr:192.168.1.10  Bcast:192.168.1.255 Mask:255.255.255.0
          inet6 addr: fe80::250:8bff:fe59:a401/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17781 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2909 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1530083 (1.4 MiB)  TX bytes:475513 (464.3 KiB)
          Interrupt:3 Base address:0x300

eth1      Link encap:Ethernet  HWaddr 00:10:A4:06:43:0B
          inet addr:10.1.1.2  Bcast:10.255.255.255  Mask:255.0.0.0
          inet6 addr: fe80::210:a4ff:fe06:430b/64 Scope:Link
          UP BROADCAST RUNNING NOARP PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:468 (468.0 b)
          Interrupt:5 Base address:0x310

Last edited by WonderLlama; 05-15-2010 at 02:14 AM.
 
Old 05-15-2010, 02:54 AM   #4
WonderLlama
LQ Newbie
 
Registered: Apr 2010
Location: Across town
Distribution: Slackware 11; Ubuntu 9.10 (netbook)
Posts: 24

Original Poster
Rep: Reputation: 15
Some more troubleshooting...

I can ping the eth1 interface from the console. When I connect another laptop to the same hub (not switch) as the eth1 laptop I am unable to ping the eth1 interface, nor can the eth1 interface ping the other laptop (both addresses are on the same subnet (10.1.0.x).

So I attached wireshark to the hub to see the traffic. When I initiate the ping from the laptop I see the arp request go on the line but there is no arp reply. So I removed the "noarp" setting from eth1. No change.

Then I tried to ping the laptop from eth1. wireshark sees the arp request from eth1 and the arp reply from the laptop, however the eth1 interface sends out another arp request as if it never received the arp response from the laptop.

So I checked the arp table on eth1 laptop. For the 10.1.0.x address the arp entry does not have a mac address. Rather under HWaddress it has (incomplete). I can flush the entries and try again but each time it comes back as (incomplete).

Sounds to me like eth1 is not receiving any data from the network, but can send data out. This is the case regardless of the network card as I have swapped the two PCMCIA cards and eth1 (now on the other card) has the same problem. So the problem sticks with eth1, not the card.

I hope that someone out there can offer some suggestions....
 
Old 05-15-2010, 08:11 AM   #5
kaushalpatel1982
Member
 
Registered: Aug 2007
Location: INDIA
Distribution: CentOS, RHEL, Fedora, Debian, Ubuntu, LinuxMint, PCLinuxOS
Posts: 148

Rep: Reputation: 9
Looks like you have some strange problem. Not related to OS or Hardware. I suggest you to change the network cable and try it again. If possible try to connect machine back to back with cross cable and ping each other. If it's working, then put it back on the hub you have and check the same.
 
Old 05-15-2010, 08:42 AM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Are you sure that eth1 IP address 10.1.1.2 is correct?
Because in post #4 you mention 2 times the 10.1.0.x subnet.
 
Old 05-23-2010, 12:54 AM   #7
WonderLlama
LQ Newbie
 
Registered: Apr 2010
Location: Across town
Distribution: Slackware 11; Ubuntu 9.10 (netbook)
Posts: 24

Original Poster
Rep: Reputation: 15
Good catch, bathory. In fact, I have been switching the IP address around as I troubleshoot, but to answer your question, the addresses are correct. The latest ones were 10.1.1 subnet.

Here's the latest. I think I've narrowed it down to some sort of configuration error, however I have no idea where to make the changes. The specific problem is that eth1 won't receive ANY packets, however it CAN transmit packets. I've verified this with both tcpdump and wireshark. My test setup follows:
Both eth0 and eth1 on the same network - eth0 192.168.1.10 / eth1 192.168.1.11
Both eth0 and eth1 plugged into the same switch with the router.
Ping from eth0 to 192.168.1.1 and receive a successful reply.
Ping from eth1 to 192.168.1.1 and receive destination not reachable
packet capture shows:
the arp request transmitted from eth1 to broadcast
the arp reply from 192.168.1.1
another arp request transmitted from eth1 to broadcast
another arp reply from 192.168.1.1
(the pattern continues without any response from eth1)
the tx counters on eth1 increase but the rx counters do not
(Kaushalpatel1982, I also tried to ping each interface from the other interface (eth0 to eth1 and vice versa). Pinging each interface without specifying the outbound interface (no -I option) each responds successfully. BUT when I specify the outbound interface with the -I option to send packets from eth0 over the wire to eth1 I get the same destination not reachable error.)

I downed eth0 and attempted the ping from eth1 just for grins and still saw no reply to eth1.

As mentioned before I've swapped out the pcmcia card, dongle, cables, and switch ports and the problem remains with eth1, not with the hardware. Therefore my conclusion is that the problem lies in the configuration of eth1. Additionally, both cards use the same driver: xirc2ps_cs.

Any hints on the files I can access to modify the eth1 configuration (slackware 11)? Sure would appreciate any hints as this is getting rather frustrating...

Gene

Last edited by WonderLlama; 05-23-2010 at 12:59 AM.
 
Old 05-25-2010, 09:54 AM   #8
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
You can edit /etc/rc.d/rc.inet1.conf and configure eth1.
 
Old 05-27-2010, 01:16 AM   #9
WonderLlama
LQ Newbie
 
Registered: Apr 2010
Location: Across town
Distribution: Slackware 11; Ubuntu 9.10 (netbook)
Posts: 24

Original Poster
Rep: Reputation: 15
I think I've pretty much exhausted the options in /rc.d/eth1.conf. Do you think it would make a difference if the module was compiled INTO the kernel vice loaded during boot? I hesitate to recompile the kernel just to test this theory so some advice would be welcome. Thanks.
 
Old 05-27-2010, 03:06 AM   #10
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Hi,

No, I don't think that compiling the driver into kernel will help.
What happens if you swap IPs instead of cards? I.e assign 192.168.1.10to eth1 and whatever IP to eth0
Also you can use mii-tool to play with eth1 settings
 
Old 05-27-2010, 11:17 AM   #11
matpe
LQ Newbie
 
Registered: May 2010
Location: Linköping, Sweden
Distribution: Gentoo
Posts: 13

Rep: Reputation: 2
Quote:
Originally Posted by WonderLlama View Post
The specific problem is that eth1 won't receive ANY packets, however it CAN transmit packets.
I have seen this problem several times before, but for different reasons. I can see three possible causes:

1) Bad driver or cards, that can't handle two cards at the same time. But then I have very little knowledge about the xirc2ps_cs driver.

2) I have seen this problem when running virtual machines that had somehow gotten the same MAC address on two machines. This causes some conflicts which causes the switch to send packets to the wrong machine.

3) Bad cables or a bad hub in your case. Sometimes these laptops with their PCMCIA cards cannot handle the voltage drops when connecting with low quality cables and hubs. Try connecting with high quality cables and to a real switch.
 
Old 05-27-2010, 11:28 AM   #12
WonderLlama
LQ Newbie
 
Registered: Apr 2010
Location: Across town
Distribution: Slackware 11; Ubuntu 9.10 (netbook)
Posts: 24

Original Poster
Rep: Reputation: 15
bathory - I swapped IPs between the two interfaces and there was no change. eth0 still had a successful ping and eth1 did not. I've not heard of the mii tool so I'll check that out.

matpe - Thanks for the suggestions. Here are the results:
1. I'll look around for a different xirc2ps_cs driver. The one I'm using is the one that came with the distro. Maybe it's bad???
2. Not running on a VM, but I verified that each card has a separate MAC address, both through ifconfig and by looking at packets with wireshark.
3. Switched out the cable with a short, high quality cable to a switched port on my wireless router. Unfortunately there was no change.

I'll try the mii-tool and changing the driver. Hope I can get this working.
 
Old 07-17-2010, 04:02 PM   #13
PatriceJ
LQ Newbie
 
Registered: Oct 2008
Distribution: Debian
Posts: 21

Rep: Reputation: 0
I have the same problem ! and still have not find the solution
 
Old 02-03-2011, 04:51 PM   #14
muzammel
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Rep: Reputation: 0
I have also facing the same problem on VM with two interfaces eth1, not responding, and same happen arp request shows incomplete entry, i verified the mac addresses but found no duplication/confilct, can any one got the solution yet of this problem ? Please suggest.

Thanks
Muzi.
 
Old 02-03-2011, 06:18 PM   #15
captainentropy
Member
 
Registered: Mar 2010
Location: Berkeley
Distribution: Ubuntu, Mint, CentOS
Posts: 74

Rep: Reputation: 0
I actually had a very similar problem on a computer with dual LAN ports (built in). It turned out that LAN2 in the BIOS had somehow been disabled. There were other issues that problem precipitated that but aren't relevant in your case I don't think. Is there an option in the BIOS to disable a PCMCIA slot? If so perhaps the one is disabled.
 
  


Reply

Tags
eth0, eth1, networking, pcmcia, slackware


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
eth1 works fine, but eth0 does not alex170872 Linux - Networking 2 12-23-2008 05:03 PM
CentOS 5.2: Only one of eth0 (internet) or eth1 (LAN) works Sinedie Linux - Networking 3 08-20-2008 05:52 AM
iso of a win XPE with working wifi & eth0 eth1 ? frenchn00b General 6 08-10-2007 07:57 AM
Packet Forwarding from eth0 to eth1 isn't working rajat Linux - Networking 1 05-07-2007 05:24 AM
Swapping cables to eth0 & eth1 on the same machine still works. Why? ses Linux - Networking 2 06-07-2005 02:31 AM


All times are GMT -5. The time now is 10:28 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration