Hello Guys I want to run the internet in my mini2440 but I am not able to do so . Actually I have the cable modem connection of the internet and when I connect the mini2440 and type in the console of mini: ping www.google.com it just says nothing So I am not able to get where is the problem The configuration of my mini 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 mini2440 board. Thank you
running internet on the mini2440
You need to say more information. You are using DHCP or static IPs? What about of the DNS? Do a ping to 8.8.8.8 if response then it's a problem of DNS.
hello tuxerito first of all thanks for replying. What else informaion you need about my mini board configuration : My miniboard has dm9000 ethernet controller which has it's ethernet configuration as: Static IP : 192.168.1.230 Mask : 255.255.255.0 Gateway : 192.168.1.1 DNS : 192.168.1.1 MAC : 08:90:90:90:90:90 now the internet connection of my computer is through a cable modem with the DHCP network and it's not the static one. and on the execution of command on the mini board I get this one: [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 yes I did the pinging to 8.8.8.8 on connecting through my internet cable and got this result: [root@FriendlyARM /]# ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8): 56 data bytes So according to you its not a DNS problem I think . So where is the problem. Please tell me. Thank you
Also one more thing I want to tell that on connecting the ethernet cable to my mini2440 I get this information in it's terminal: [root@FriendlyARM /]# eth0: link up, 100Mbps, full-duplex, lpa 0x05C1 So it means that I am getting the signal in the mini board but I am not getting the internet. Thank you
and on removing the cable it gives the following signal: [root@FriendlyARM share]# eth0: link down THanks
thanks tuxerito for your reply and I think this would be a sily question to ask but I want to know that how can I get all the data I mean IP,mask,gateway and DNS of my modem's configuration. Please give me the command to get this I am able to get some of them but not all of them. Thank you
hello tuxeirito as you said: Do a ping to 8.8.8.8 if response then it's a problem of DNS. is not it " Do a ping to 8.8.8.8 if not response then it's a problem of DNS. " because the above address is a public dns and it reply when I run it on my computer. Thank you
If a ping to 8.8.8.8 response and a ping to www.google.com not, then it is a problem of DNS(configured on your system) because de system can't resolve the IP of the host(www.google.com). The system use DNS to translate a hostname(domain) to a IP, if this point fails then the problem it is the DNS server. You can test this changing the DNS of your PC to a invalid DNS, then try to acces a Google via http://www.google.com, you will see a error but if you try via http://201.245.193.147/ you will see the Google's page. I told you "do a ping to 8.8.8.8" because that IP it's a public IP(Google DNS) and if that ping response it's because you have access to internet but the system can't surf using hostnames. If you do a ping to 192.168.1.1, what do you get? In your PC execute route -n and write here the result. Sorry for bad English
hello tuxerito on pinging 192.168.1.1 I get this result: PS C:\Users\Piyush Pandey> ping 192.168.1.1 Pinging 192.168.1.1 with 32 bytes of data: Reply from 192.168.1.1: bytes=32 time=59ms TTL=245 Reply from 192.168.1.1: bytes=32 time=59ms TTL=245 Reply from 192.168.1.1: bytes=32 time=59ms TTL=245 Reply from 192.168.1.1: bytes=32 time=59ms TTL=245 Ping statistics for 192.168.1.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 59ms, Maximum = 59ms, Average = 59ms But I didn't get your point of using route -n , sorry for that as I am new to networking , well anyways I am showing you the result when I typed the route -n: PS C:\Users\Piyush Pandey> route -n ROUTE.EXE : At line:1 char:6 + route <<<< -n + CategoryInfo : NotSpecified: (:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError Manipulates network routing tables. ROUTE [-f] [-p] [-4|-6] command [destination] [MASK netmask] [gateway] [METRIC metric] [IF interface] -f Clears the routing tables of all gateway entries. If this is used in conjunction with one of the commands, the tables are cleared prior to running the command. -p When used with the ADD command, makes a route persistent across boots of the system. By default, routes are not preserved when the system is restarted. Ignored for all other commands, which always affect the appropriate persistent routes. This option is not supported in Windows 95. -4 Force using IPv4. -6 Force using IPv6. command One of these: PRINT Prints a route ADD Adds a route DELETE Deletes a route CHANGE Modifies an existing route destination Specifies the host. MASK Specifies that the next parameter is the 'netmask' value. netmask Specifies a subnet mask value for this route entry. If not specified, it defaults to 255.255.255.255. gateway Specifies gateway. interface the interface number for the specified route. METRIC specifies the metric, ie. cost for the destination. All symbolic names used for destination are looked up in the network database file NETWORKS. The symbolic names for gateway are looked up in the host name database file HOSTS. If the command is PRINT or DELETE. Destination or gateway can be a wildcard, (wildcard is specified as a star '*'), or the gateway argument may be omitted. If Dest contains a * or ?, it is treated as a shell pattern, and only matching destination routes are printed. The '*' matches any string, and '?' matches any one char. Examples: 157.*.1, 157.*, 127.*, *224*. Pattern match is only allowed in PRINT command. Diagnostic Notes: Invalid MASK generates an error, that is when (DEST & MASK) != DEST. Example> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1 IF 1 The route addition failed: The specified mask parameter is invalid. (Destination & Mask) != Destination. Examples: > route PRINT > route PRINT -4 > route PRINT -6 > route PRINT 157* .... Only prints those matching 157* > route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2 destination^ ^mask ^gateway metric^ ^ Interface^ If IF is not given, it tries to find the best interface for a given gateway. > route ADD 3ffe::/32 3ffe::1 > route CHANGE 157.0.0.0 MASK 255.0.0.0 157.55.80.5 METRIC 2 IF 2 CHANGE is used to modify gateway and/or metric only. > route DELETE 157.0.0.0 > route DELETE 3ffe::/32 So please tell me what I am supposed to do now. Thanks
You must execute ping in your board. You must execute route -n on your PC but in GNU/Linux(In your first message, you wrote that you execute ifconfig on your PC so I supose that you are runing GNU/linux. You got a error because on Windows the syntaxis it's diferent.
hello tuxerito I did what you said: I pfirst 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 mini 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 mini 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 mini2440 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. Now I did what you said like this : 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 mini from ping 116.74.41.85 I ran the command route -n on my mini 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 tuxerito what is the problem I have described all the steps which I have tried to connect the internet successfully to my mini2440 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