P2020 eth0 ping failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

P2020 eth0 ping failed

928 Views
santosh449
Contributor I

Hi

I am using P2020 device. After booting the Linux kernel i want to test the Ethernet

configured the ip address as below

root@p2020rdb:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:9f:02:d9:01
inet addr:192.168.0.11 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::204:9fff:fe02:d901/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:91 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:10766 (10.5 KiB)
Base address:0x8000

eth2 Link encap:Ethernet HWaddr 00:04:9f:02:d9:03
inet addr:192.168.0.12 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::204:9fff:fe02:d903/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:45 errors:0 dropped:0 overruns:0 frame:0
TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6599 (6.4 KiB) TX bytes:7358 (7.1 KiB)
Base address:0xc000

I am able to ping to host ip (192.168.0.10) from eth2, but failed in case of eth0 with below message

root@p2020rdb:~# ping 192.168.0.10
PING 192.168.0.10 (192.168.0.10) 56(84) bytes of data.
From 192.168.0.11 icmp_seq=1 Destination Host Unreachable
From 192.168.0.11 icmp_seq=2 Destination Host Unreachable

 am i missing any settings at kernel? please suggest.

Regards,

Santosh

Labels (1)
0 Kudos
3 Replies

599 Views
santosh449
Contributor I

Hi Victor,

I suspect one reason for the eth0 ping fail as below

we used the reference design of p2020RDB eval board in which eth0 is connected to vitesse switch(VSC7385), but in our board we are not using this switch.

Kernel and DTB are generated from sdk1.7 for p2020 devices, which may by default include the switch settings while generating images. 

Does any changes needed in source files to use the eth0 without switch?

Please help me to know where i can change in the source files to remove the vitesse switch in linux kernel or DTB.

Please suggest,

Regards,

Santosh

0 Kudos

599 Views
Pavel
NXP Employee
NXP Employee

Remove switch setting in the .dtb file.


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

599 Views
b36401
NXP Employee
NXP Employee

It is wrong to assign IP addresses from one logical network (192.168.0.x) to 2 ethernet interfaces.

It is better to use different networks, for example 192.168.0.x and 192.168.1.x for 1 interfaces.

Have a great day,
Victor

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos