Running the new Raspberry pi 3B using gigabit ethernet connection
sudo lsb_release -a
Code: Select all
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 8.0 (jessie)
Release: 8.0
Codename: jessie
sudo uname -a
Code: Select all
Linux raspberrypi 4.4.13-v7+ #894 SMP Mon Jun 13 13:13:27 BST 2016 armv7l GNU/Linux
Behind a Asus RT-n16 running shibby firmware
ip addr
Code: Select all
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether b8:27:eb:8d:03:07 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.3/24 brd 192.168.0.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::82ff:a814:87e9:c8e5/64 scope link
valid_lft forever preferred_lft forever
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether b8:27:eb:d8:56:52 brd ff:ff:ff:ff:ff:ff
inet6 fe80::bb4a:c5c6:4847:aa06/64 scope link tentative
valid_lft forever preferred_lft forever
ip route
Code: Select all
default via 192.168.0.1 dev eth0 metric 202
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.3 metric 202
sudo ping -c3 $(ip route | awk '/default/ {print $3}')
Code: Select all
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.469 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.335 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=0.371 ms
--- 192.168.0.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.335/0.391/0.469/0.061 ms
sudo ping -c3 8.8.8.8
Code: Select all
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=49 time=18.3 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=49 time=18.3 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=49 time=18.1 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 18.175/18.284/18.371/0.081 ms
sudo ping -c3 0.debian.pool.ntp.org
Code: Select all
PING 0.debian.pool.ntp.org (128.2.1.21) 56(84) bytes of data.
64 bytes from AC-NTP1.NET.CMU.EDU (128.2.1.21): icmp_seq=1 ttl=44 time=47.5 ms
64 bytes from AC-NTP1.NET.CMU.EDU (128.2.1.21): icmp_seq=2 ttl=44 time=47.7 ms
64 bytes from AC-NTP1.NET.CMU.EDU (128.2.1.21): icmp_seq=3 ttl=44 time=47.8 ms
--- 0.debian.pool.ntp.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 47.518/47.714/47.877/0.292 ms
sudo /etc/init.d/ntp stop
Code: Select all
[ ok ] Stopping ntp (via systemctl): ntp.service.
sudo ntpd -q -g
does nothing
sudo /etc/init.d/ntp start
Code: Select all
[ ok ] Starting ntp (via systemctl): ntp.service.
I also went to the link provided.... and performed the following steps..
As workaround, add the following command
Code: Select all
/sbin/iptables -t mangle -I POSTROUTING 1 -o wlan0 -p udp --dport 123 -j TOS --set-tos 0x00
to the file
/etc/rc.local
before the exit 0 line.
Next reboot and check the sync state of NTP daemon as follows
ntpq -cpeers
Code: Select all
remote refid st t when poll reach delay offset jitter
==============================================================================
i5.smatwebdesig .INIT. 16 u - 64 0 0.000 0.000 0.000
104.131.53.252 .INIT. 16 u - 64 0 0.000 0.000 0.000
mail.coldnortha .INIT. 16 u - 64 0 0.000 0.000 0.000
host2.kingrst.c .INIT. 16 u - 64 0 0.000 0.000 0.000
Since im on ethernet and not wifi i even changed the wlan0 to eth0
Code: Select all
/sbin/iptables -t mangle -I POSTROUTING 1 -o eth0 -p udp --dport 123 -j TOS --set-tos 0x00
still no joy