AutoModelCar / AutoModelCarWiki

59 stars 25 forks source link

I can't share wireless Internet connection through Ethernet? #2

Closed ezamorag closed 7 years ago

ezamorag commented 8 years ago

I have followed the steps in the section "Network->Share wireless Internet connection through Ethernet", but when I type command "dhclient eth0" in the odroid, I wait forever for a response. What are possible causes and solutions for this problem?

AutoModelCar commented 8 years ago

could you send the result of ifconfigfrom odroid and your computer?

ezamorag commented 8 years ago

ODRIOD

eth0      Link encap:Ethernet  HWaddr 00:1e:06:32:1b:8f  
          inet addr:10.42.0.10  Bcast:10.42.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:36 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:7153 (7.1 KB)  TX bytes:5065 (5.0 KB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:4463 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4463 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:752778 (752.7 KB)  TX bytes:752778 (752.7 KB)

wlan0     Link encap:Ethernet  HWaddr 7c:dd:90:8d:e3:00  
          inet addr:192.168.43.102  Bcast:192.168.43.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:12 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)

MY COMPUTER

eth0      Link encap:Ethernet  HWaddr 9c:b6:54:bf:72:16  
          inet addr:10.42.0.1  Bcast:10.42.0.255  Mask:255.255.255.0
          inet6 addr: fe80::9eb6:54ff:febf:7216/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:174800 errors:0 dropped:3251 overruns:0 frame:0
          TX packets:21531 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:43205669 (43.2 MB)  TX bytes:2430069 (2.4 MB)

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:65536  Metric:1
          RX packets:136080 errors:0 dropped:0 overruns:0 frame:0
          TX packets:136080 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:687670982 (687.6 MB)  TX bytes:687670982 (687.6 MB)

wlan0     Link encap:Ethernet  HWaddr 68:17:29:dc:0b:6d  
          inet addr:192.168.1.126  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fd80:39b3:53a6:0:1098:8cbf:ef57:f102/64 Scope:Global
          inet6 addr: fe80::6a17:29ff:fedc:b6d/64 Scope:Link
          inet6 addr: fd80:39b3:53a6:0:6a17:29ff:fedc:b6d/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:159960 errors:0 dropped:0 overruns:0 frame:0
          TX packets:133391 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:111546887 (111.5 MB)  TX bytes:15072692 (15.0 MB)
AutoModelCar commented 7 years ago

First of all you should know when you want to share data through network the id inet address should be similar. which is correct in your case. For example if your eth0 in your computer has inet addr:10.42.0.x , your odroid should have similar id net addr:10.42.0.y. (this is ok for you) The next step is check the gateway in the odroid which should be the same as the computer inet addr, in your case 10.42.0.1
The next step is checking your connection, in ODROID, try ping 10.42.0.1 if it passed then reset your network

dhclient -r eth0
dhclinet eth0