Code: Select all
/etc/systemd/network/50-static.network
I never claimed it was. It is how Linux describe a default route though.alamahant wrote:Can you postYou cant have 2 gateways.Also 0.0.0.0 is NOT your router IP.Code: Select all
/etc/systemd/network/50-static.network
Code: Select all
[Match]
Name=eth0
[Network]
Address=192.168.86.76/24
Gateway=192.168.86.1
DNS=192.168.86.1Code: Select all
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.86.1 0.0.0.0 UG 0 0 0 eth0
192.,168.86.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0Code: Select all
me@pi-3 ~ $ dmesg |grep Link
[ 18.043462] bcmgenet fd580000.ethernet eth0: Link is Down
[ 22.106488] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/txCode: Select all
[ 7.004552] bcmgenet fd580000.ethernet eth0: Link is Down
[ 10.083212] bcmgenet fd580000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
Code: Select all
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.86.76 netmask 255.255.255.0 broadcast 192.168.86.255
inet6 fe80::dea6:32ff:fe06:6f1 prefixlen 64 scopeid 0x20<link>
ether dc:a6:32:06:06:f1 txqueuelen 1000 (Ethernet)
RX packets 310 bytes 111600 (108.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 37976 bytes 1596168 (1.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1000 (Local Loopback)
RX packets 25374 bytes 2333696 (2.2 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 25374 bytes 2333696 (2.2 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Code: Select all
traceroute 8.8.8.8Code: Select all
$ traceroute 8.8.8.8
1 192.168.86.76 (192.168.86.76) 2899.427 ms !H 2899.365 ms !H 2899.334 ms !H
Code: Select all
iptables -LJust one more check, the 192.,168.86.0 is strange, so is it from a copy/paste or just a typo?JumboAg wrote:netstat -rn[Moderator edit: added [code] tags to preserve output layout. -- pietinger]Code: Select all
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 192.168.86.1 0.0.0.0 UG 0 0 0 eth0 192.,168.86.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Code: Select all
/etc/systemd/network
Code: Select all
ip link set eth0 down
ip link set eth0 up
ip a add 192.168.86.76/24 dev eth0
ip route add default via 192.168.86.1 dev eth0
echo "nameserver 192.168.86.1" > /etc/resolv.conf
ping -c3 google.com
I got a wrong impression, I thought you cannot even ping the pi itselfJumboAg wrote:I can ping the pi from itself fine.
Code: Select all
## As root
traceroute -I 8.8.8.8