Reply by piyushpandey April 24, 20112011-04-24
hello 

I changed the ip address , and mask of the mini board by getting
them from the command eth0 in my computer:

inet addr:116.74.41.85  Bcast:116.74.47.255  Mask:255.255.248.0

I put this ip address in the arm board instead of 192.168.1.230

inet addr:116.74.41.85 


and the mask I put this at the place of 255.255.255.0

Mask : 255.255.248.0


Than I got the DNS from this command in my PC :

cat /etc/resolv.conf

and got this result:

piyush@piyush-desktop:~$ cat /etc/resolv.conf 
# Generated by NetworkManager
nameserver 202.88.216.4

I than changed the DNS in arm board from 192.168.1.1 to 202.88.216.4


than I changed the gateway from 192.168.1.1 to 116.74.40.1 


and saved the above configuration in  the /etc/eth0-settings file of my
arm board


Now when I connect the ethernet cable to the board and run the command :

[root@FriendlyARM /]# ping 116.74.41.85
PING 116.74.41.85 (116.74.41.85): 56 data bytes
64 bytes from 116.74.41.85: seq=0 ttl=64 time=0.925 ms
64 bytes from 116.74.41.85: seq=1 ttl=64 time=0.452 ms
64 bytes from 116.74.41.85: seq=2 ttl=64 time=0.438 ms
64 bytes from 116.74.41.85: seq=3 ttl=64 time=0.455 ms


but when I ping 192.168.1.1

[root@FriendlyARM /]# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes


and nothing else


I run the command ping 192.168.1.1

result:

[root@FriendlyARM /]# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes



and nothing else than I stop it by ctrl+C


and than I ran the command route -n 

result:

piyush@piyush-desktop:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
116.74.40.0     0.0.0.0         255.255.248.0   U     1      0        0
eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0
eth0
0.0.0.0         116.74.40.1     0.0.0.0         UG    0      0        0
eth0


similarly when I got the pinging in my arm board from ping 116.74.41.85

I ran the command route -n on my arm board than I got this:

result:

[root@FriendlyARM /]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
116.74.40.0     0.0.0.0         255.255.248.0   U     0      0        0
eth0
0.0.0.0         116.74.40.1     0.0.0.0         UG    0      0        0
eth0
[root@FriendlyARM /]# 




Also the result of only route on my PC is this :

result:

piyush@piyush-desktop:~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
116.74.40.0     *               255.255.248.0   U     1      0        0
eth0
link-local      *               255.255.0.0     U     1000   0        0
eth0
default         116.74.40.1     0.0.0.0         UG    0      0        0
eth0
piyush@piyush-desktop:~$ 





Now what is the problem. I have described all the steps which I
have tried to connect the internet successfully to my arm board and I
think
with your help I am able to ping the ip address successfully but not
getting connection still.


So now what I should do to correct it.


Thank you	   
					
---------------------------------------		
Posted through http://www.EmbeddedRelated.com
Reply by Arlet Ottens April 24, 20112011-04-24
On 04/24/2011 02:13 AM, piyushpandey wrote:
> Hello Guys > > > I want to run the internet in my arm board but I am not able to do so . > > It has dm9000 ethernet controller. > > Actually I have the cable modem connection of the internet which is > connected through DHCP and when I connect the arm board to it and type in > the console: > > ping www.google.com > > > it just says nothing > > > whereas it shows the connection of the ethernet cable to my arm board as > when I connect the ethernet cable it shows: > > [root@FriendlyARM /]# eth0: link up, 100Mbps, full-duplex, lpa 0x05C1 > > > and when remove the ethernet cable, it shows : > > [root@FriendlyARM share]# eth0: link down > > > > > So I am not able to get where is the problem > > > > > The configuration of my arm board eth0 is : > > [root@FriendlyARM /]# ifconfig eth0 > eth0 Link encap:Ethernet HWaddr 08:90:90:90:90:90 > inet addr:192.168.1.230 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) > Interrupt:51 Base address:0x4300 > > > and the eth0 config of my computer is : > > > > piyush@piyush-desktop:~$ ifconfig eth0 > eth0 Link encap:Ethernet HWaddr 00:1b:fc:c5:1a:12 > inet addr:116.74.41.85 Bcast:116.74.47.255 Mask:255.255.248.0 > inet6 addr: fe80::21b:fcff:fec5:1a12/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:15253 errors:372 dropped:0 overruns:0 frame:372 > TX packets:15546 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:13592188 (13.5 MB) TX bytes:2334744 (2.3 MB)
Check your router and DNS server: # route # cat /etc/resolv.conf and try to ping those. Attach a PC to your network, and try to ping your PC. Install wireshark on PC, and see what's happening. Compare IP settings of PC with ARM board. Note that public hosts on the internet don't always respond to ping. For instance, I can ping www.google.com, but not cnn.com. First make sure you can ping the same host from a working PC.
Reply by piyushpandey April 23, 20112011-04-23
Hello Guys 


I want to run the internet in my arm board but I am not able to do so .

It has dm9000 ethernet controller.

Actually I have the cable modem connection of the internet which is
connected through DHCP and when I connect the arm board to it and type in
the console:

ping www.google.com


it just says nothing


whereas it shows the connection of the ethernet cable to my arm board as
when I connect the ethernet cable it shows:

[root@FriendlyARM /]# eth0: link up, 100Mbps, full-duplex, lpa 0x05C1 


and when remove the ethernet cable, it shows :

[root@FriendlyARM share]# eth0: link down


 

So I am not able to get  where is the problem




The configuration of my arm board eth0 is :

[root@FriendlyARM /]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 08:90:90:90:90:90
inet addr:192.168.1.230 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)
Interrupt:51 Base address:0x4300 


and the eth0 config of my computer is :



piyush@piyush-desktop:~$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:1b:fc:c5:1a:12
inet addr:116.74.41.85 Bcast:116.74.47.255 Mask:255.255.248.0
inet6 addr: fe80::21b:fcff:fec5:1a12/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15253 errors:372 dropped:0 overruns:0 frame:372
TX packets:15546 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13592188 (13.5 MB) TX bytes:2334744 (2.3 MB)



Please help me guys how can I connect internet to my arm board.


Thank you
	   
					
---------------------------------------		
Posted through http://www.EmbeddedRelated.com