LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-25-2014, 12:45 AM   #1
utkarshrawat
Member
 
Registered: Jul 2007
Posts: 120

Rep: Reputation: 15
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

Last edited by utkarshrawat; 07-25-2014 at 12:47 AM.
 
Old 07-25-2014, 02:11 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,481

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
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?
 
Old 07-25-2014, 04:37 AM   #3
utkarshrawat
Member
 
Registered: Jul 2007
Posts: 120

Original Poster
Rep: Reputation: 15
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
 
Old 07-25-2014, 04:53 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,481

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
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?
 
  


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
is there an ethernet ping tool? Skaperen Linux - Networking 2 10-11-2011 05:24 PM
Ping from port A to port B on same NIC allooshy Linux - Networking 7 12-02-2009 10:51 AM
Ping wifi from ethernet tassadaque Linux - Wireless Networking 5 09-04-2008 12:08 PM
dual ethernet port ping problem rani_162 Linux - Networking 2 12-11-2005 10:05 PM
x86 board PCM 6892 with dual ethernet port.eth1 doesnt ping if eth0 cable removed rani_162 Linux - Newbie 0 07-23-2005 12:29 PM

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

All times are GMT -5. The time now is 08:15 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