This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Ethernet port is not working in Linux

Hi,

     We have made a custom board based on AM335x. The board bring was successful, but now we are facing an issue with Second Ethernet port. We were able to see the two Ethernet interfaces in ifconfig, the both phys are detecting and  link failure is detecting in two interfaces. But we were able to ping only the first Ethernet (eth0). We were able to see the RX packets in the ifconfig for second Ethernet (eth1) is increasing, but we didn't get any ping reply from this Ethernet interface (eth1).  What could be the possible reasons for this to happen.

  • Hi Tomy.

    Eth1 has to be brought up manually. See this wiki for details: http://processors.wiki.ti.com/index.php/Linux_Core_CPSW_User%27s_Guide#Bringing_Up_interfaces Also note that for Dual EMAC configuration the two Ethernet ports must be connected to different network segments.

  • Hi Biser,
    We have configured the two ethernet interfaces in two different network segments. Also we are brought up the interface manually. But in the ifconfig for Eth1, the RX packets are increasing . So the packets are receiving, but it is not giving any reply to the PING. The ifconfig snap shot is given below

    eth0 Link encap:Ethernet HWaddr 00:25:97:00:10:10
    inet addr:192.168.100.70 Bcast:192.168.100.255 Mask:255.255.255.0
    inet6 addr: fe80::225:97ff:fe00:1010/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:1105 errors:0 dropped:0 overruns:0 frame:0
    TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:103241 (100.8 KiB) TX bytes:10789 (10.5 KiB)
    Interrupt:56

    eth1 Link encap:Ethernet HWaddr 00:25:97:00:10:11
    inet addr:192.168.1.121 Bcast:192.168.1.255 Mask:255.255.255.0
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:441 errors:0 dropped:0 overruns:0 frame:0
    TX packets:106 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:46758 (45.6 KiB) TX bytes:7032 (6.8 KiB)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:65536 Metric:1
    RX packets:355 errors:0 dropped:0 overruns:0 frame:0
    TX packets:355 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:17996 (17.5 KiB) TX bytes:17996 (17.5 KiB)

    Is there anything needs to be done in the software side ?
  • Which Linux version are you using?
  • I am assuming that you are trying to ping from a device connected to eth1 to the ip address assigned to eth1. From the ifconfig output it looks like the interfaces are transmitting. Does tx count on interface eth1 go up as the rx count does? Is the tx count on eth0 going up as the rx count is?

  • Also please forward the ping command that you are using on the device connected to eth1.