saihoufung
Posts: 30
Joined: Fri Jun 22, 2018 1:09 am

Re: Raspberry Pi 3 Ethernet Issue

Mon Jun 25, 2018 12:02 pm

Both results are as follow:-

Code: Select all

 sudo ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:72:21:98
          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)

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:736 errors:0 dropped:0 overruns:0 frame:0
          TX packets:736 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:39960 (39.0 KiB)  TX bytes:39960 (39.0 KiB)

wlan0     Link encap:Ethernet  HWaddr b8:27:eb:27:74:cd
          inet addr:192.168.1.7  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: 2001:d08:e0:44be:ba27:ebff:fe27:74cd/64 Scope:Global
          inet6 addr: fe80::ba27:ebff:fe27:74cd/64 Scope:Link
          inet6 addr: fd82:574f:4a68:0:ba27:ebff:fe27:74cd/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8624 errors:0 dropped:28 overruns:0 frame:0
          TX packets:5918 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1340859 (1.2 MiB)  TX bytes:1401491 (1.3 MiB)

Code: Select all

sudo ifconfig -a
eth0      Link encap:Ethernet  HWaddr b8:27:eb:72:21:98
          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)

eth1      Link encap:Ethernet  HWaddr 00:0e:c6:de:c8:be
          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)

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:760 errors:0 dropped:0 overruns:0 frame:0
          TX packets:760 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:41160 (40.1 KiB)  TX bytes:41160 (40.1 KiB)

wlan0     Link encap:Ethernet  HWaddr b8:27:eb:27:74:cd
          inet addr:192.168.1.7  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: 2001:d08:e0:44be:ba27:ebff:fe27:74cd/64 Scope:Global
          inet6 addr: fe80::ba27:ebff:fe27:74cd/64 Scope:Link
          inet6 addr: fd82:574f:4a68:0:ba27:ebff:fe27:74cd/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8947 errors:0 dropped:28 overruns:0 frame:0
          TX packets:6134 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1387272 (1.3 MiB)  TX bytes:1456020 (1.3 MiB)
Lan cable is connected to eth1 but cannot linked.

***Router restarted, result unchanged.***

User avatar
lmarmisa
Posts: 1233
Joined: Thu Feb 14, 2013 2:22 am
Location: Jávea, Spain

Re: Raspberry Pi 3 Ethernet Issue

Mon Jun 25, 2018 1:03 pm

Could you try these commands?

Code: Select all

sudo /etc/init.d/networking restart
sudo dhclient -r eth0
sudo dhclient eth0
sudo dhclient -r eth1
sudo dhclient eth1
ifconfig

saihoufung
Posts: 30
Joined: Fri Jun 22, 2018 1:09 am

Re: Raspberry Pi 3 Ethernet Issue

Mon Jun 25, 2018 1:21 pm

Followed as per instruction.

Code: Select all

pi@img-2.1-722198:~$ sudo /etc/init.d/networking restart
Restarting networking (via systemctl): networking.serviceWarning: Unit file of networking.service changed on disk, 'systemctl daemon-reload' recommended.
.
pi@img-2.1-722198:~$ sudo ifconfig
sudo: unable to resolve host piaware-63040
eth0      Link encap:Ethernet  HWaddr b8:27:eb:72:21:98
          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)

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:32759 errors:0 dropped:0 overruns:0 frame:0
          TX packets:32759 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:15111153 (14.4 MiB)  TX bytes:15111153 (14.4 MiB)

wlan0     Link encap:Ethernet  HWaddr b8:27:eb:27:74:cd
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:34556 errors:0 dropped:33 overruns:0 frame:0
          TX packets:33718 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4330910 (4.1 MiB)  TX bytes:23230861 (22.1 MiB)

pi@img-2.1-722198:~$ sudo dhclient -r eth0
sudo: unable to resolve host piaware-63040
pi@img-2.1-722198:~$ sudo dhclient eth0
sudo: unable to resolve host piaware-63040
sudo dhclient -r eth1
pi@img-2.1-722198:~$ sudo dhclient -r eth1
sudo: unable to resolve host piaware-63040
Killed old client process
pi@img-2.1-722198:~$ sudo dhclient eth1
sudo: unable to resolve host piaware-63040
sudo ifconfig
pi@img-2.1-722198:~$ sudo ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:72:21:98
          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)

eth1      Link encap:Ethernet  HWaddr 00:0e:c6:de:c8:be
          inet addr:192.168.1.180  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: 2001:d08:e0:44be:20e:c6ff:fede:c8be/64 Scope:Global
          inet6 addr: fe80::20e:c6ff:fede:c8be/64 Scope:Link
          inet6 addr: fd82:574f:4a68:0:20e:c6ff:fede:c8be/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1816 (1.7 KiB)  TX bytes:1710 (1.6 KiB)

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:34069 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34069 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:15660324 (14.9 MiB)  TX bytes:15660324 (14.9 MiB)

wlan0     Link encap:Ethernet  HWaddr b8:27:eb:27:74:cd
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:34556 errors:0 dropped:33 overruns:0 frame:0
          TX packets:33718 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4330910 (4.1 MiB)  TX bytes:23230861 (22.1 MiB)

pi@img-2.1-722198:~$
After reboot of Pi.

Code: Select all

pi@img-2.1-722198:~$ sudo ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:72:21:98
          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)

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:144 errors:0 dropped:0 overruns:0 frame:0
          TX packets:144 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:29783 (29.0 KiB)  TX bytes:29783 (29.0 KiB)

wlan0     Link encap:Ethernet  HWaddr b8:27:eb:27:74:cd
          inet addr:192.168.1.7  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: 2001:d08:e0:44be:ba27:ebff:fe27:74cd/64 Scope:Global
          inet6 addr: fe80::ba27:ebff:fe27:74cd/64 Scope:Link
          inet6 addr: fd82:574f:4a68:0:ba27:ebff:fe27:74cd/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:135 errors:0 dropped:22 overruns:0 frame:0
          TX packets:115 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28312 (27.6 KiB)  TX bytes:44787 (43.7 KiB)

pi@img-2.1-722198:~$
No longer work for eth1.

saihoufung
Posts: 30
Joined: Fri Jun 22, 2018 1:09 am

Re: Raspberry Pi 3 Ethernet Issue

Mon Jun 25, 2018 1:31 pm

I tried it once again with the command:-

Code: Select all

sudo /etc/init.d/networking restart
sudo dhclient -r eth0
sudo dhclient eth0
sudo dhclient -r eth1
sudo dhclient eth1
The eth1 is working again. However after reboot, the eth1 is no longer work.

Finally I found a solution.

Code: Select all

sudo nano /etc/rc.local
sudo dhclient eth1
Reboot, and now eth1 is working.

I disconnect wlan0 connection and reboot, eth1 still working.

Hopefully this will work as it should.

Regards,
SaiHou

ejolson
Posts: 3792
Joined: Tue Mar 18, 2014 11:47 am

Re: Raspberry Pi 3 Ethernet Issue

Mon Jun 25, 2018 5:28 pm

saihoufung wrote:
Mon Jun 25, 2018 1:31 pm
Finally I found a solution.

Code: Select all

sudo nano /etc/rc.local
sudo dhclient eth1
Glad you got it working.

Software problems of this sort seem to happen for all but the most basic system configurations. The complexity of the initialization system in Raspbian and the network configuration have resulted in problems that are difficult to fix properly and putting a few commands in rc.local to patch things up at the end is common and expedient even if not reasonable.

saihoufung
Posts: 30
Joined: Fri Jun 22, 2018 1:09 am

Re: Raspberry Pi 3 Ethernet Issue

Mon Jun 25, 2018 9:59 pm

ejolson wrote:
Mon Jun 25, 2018 5:28 pm
saihoufung wrote:
Mon Jun 25, 2018 1:31 pm
Finally I found a solution.

Code: Select all

sudo nano /etc/rc.local
sudo dhclient eth1
Glad you got it working.

Software problems of this sort seem to happen for all but the most basic system configurations. The complexity of the initialization system in Raspbian and the network configuration have resulted in problems that are difficult to fix properly and putting a few commands in rc.local to patch things up at the end is common and expedient even if not reasonable.
Yes. Sometimes Raspbian is more "complexity". I haven't try for the eth0 if it really works or not by adding the same command at rc.local with

Code: Select all

sudo dhclient eth0


Will give a try later.

Regards.

Return to “Troubleshooting”