LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Ping on one of ethernet port is not happening (https://www.linuxquestions.org/questions/linux-networking-3/ping-on-one-of-ethernet-port-is-not-happening-4175512216/)

utkarshrawat 07-25-2014 12:45 AM

Ping on one of ethernet port is not happening
 
Hi All
I have a board MPC8360 where I want to ping from my board to Desktop . In MPC8360 there are 3 ethernet ports

Code:

~ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:04:9F:EF:01:00 
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST 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:0 (0.0 b)
          Base address:0x2000

eth1      Link encap:Ethernet  HWaddr 00:04:9F:EF:01:01 
          inet addr:192.168.2.100  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST 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:0 (0.0 b)
          Base address:0x3000

eth2      Link encap:Ethernet  HWaddr 00:04:9F:00:23:25 
          inet addr:10.3.3.203  Bcast:10.3.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING 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:0 (0.0 b)
          Base address:0x2400

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  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:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

eth0 and eth1 are able to ping ,but when it comes to eth2 I am not able to ping to Desktop I am gettting error like this

Code:

bytes from 10.3.3.203: Destination Host Unreachable
Vr HL TOS  Len  ID Flg  off TTL Pro  cks      Src      Dst Data
 4  5  c0 0070 1f88  0 0000  40  01 3eaa 10.3.3.203  10.3.3.203
64 bytes from 10.3.3.203: Destination Host

1. In the above error I see both SRC & Dest IP are same
2. Loopback is happening in eth2 .

Dont know how to forward

TenTenths 07-25-2014 02:11 AM

Have you checked you have a valid route / gateway / NAT translation to allow your 10.3.3.X subnet to talk to the subnet your desktop is on?

What's the IP/Subnet configuration of your desktop?

utkarshrawat 07-25-2014 04:37 AM

continue of thread (Ping on one of ethernet port is not happening)
 
Hi TenTenths
I am not able to make on reply on this particaular thread (Ping on one of ethernet port is not happening),because of this I am writing reply on this new thread. I am Sorry for this


Its a same desktop which I am successfully pinging on eth0 & eth1 .


Configuration of Desktop is
Code:

ifconfig
eth0      Link encap:Ethernet  HWaddr 10:78:D2:FC:6F:3C 
          inet addr:10.3.3.101  Bcast:10.3.3.255  Mask:255.255.255.0
          inet6 addr: fe80::1278:d2ff:fefc:6f3c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:56000 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11398 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:5764988 (5.4 MiB)  TX bytes:15596570 (14.8 MiB)
          Interrupt:26 Base address:0x8000

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:16436  Metric:1
          RX packets:39 errors:0 dropped:0 overruns:0 frame:0
          TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3304 (3.2 KiB)  TX bytes:3304 (3.2 KiB)

virbr0    Link encap:Ethernet  HWaddr 6E:2B:2D:FD:2B:82 
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:9225 (9.0 KiB)

I have type some command to check route & gateway list on the board .I hope this may help u ,please let me know if any thing else is needed

netstat -nr

Code:

Kernel IP routing table
Destination    Gateway        Genmask        Flags  MSS Window  irtt Iface
192.168.3.0    0.0.0.0        255.255.255.0  U        0 0          0 eth2
192.168.2.0    0.0.0.0        255.255.255.0  U        0 0          0 eth1
192.168.1.0    0.0.0.0        255.255.255.0  U        0 0          0 eth0
127.0.0.0      0.0.0.0        255.0.0.0      U        0 0          0 lo
0.0.0.0        192.168.3.1    0.0.0.0        UG        0 0          0 eth2
0.0.0.0        192.168.2.1    0.0.0.0        UG        0 0          0 eth1
0.0.0.0        192.168.1.1    0.0.0.0        UG        0 0          0 eth0


ip route show
Code:

192.168.3.0/24 dev eth2  proto kernel  scope link  src 192.168.3.254
192.168.2.0/24 dev eth1  proto kernel  scope link  src 192.168.2.100
192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.100


route -n
Code:

Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
192.168.3.0    0.0.0.0        255.255.255.0  U    0      0        0 eth2
192.168.2.0    0.0.0.0        255.255.255.0  U    0      0        0 eth1
192.168.1.0    0.0.0.0        255.255.255.0  U    0      0        0 eth0
127.0.0.0      0.0.0.0        255.0.0.0      U    0      0        0 lo
0.0.0.0        192.168.3.1    0.0.0.0        UG    0      0        0 eth2
0.0.0.0        192.168.2.1    0.0.0.0        UG    0      0        0 eth1
0.0.0.0        192.168.1.1    0.0.0.0        UG    0      0        0 eth0


TenTenths 07-25-2014 04:53 AM

At a first look it appears your board has three "default gateways" 192.168.1.1 / 192.168.2.1 / 192.168.3.1

Which of these will route to your 10.3.3.X network?


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