[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: missing gw in route -n



On Thursday 12 July 2018 14:16:43 Christian Knoke wrote:

> Hello,
>
> Gene Heskett schrieb am 12. Jul um 10:07 Uhr:
> > > > auto eth0
> > > > allow-hotplug eth0
> > > > iface eth0 inet static
> > > > address 192.168.71.2
> > > > netmask 255.255.255.0
> > > > gateway 192.168.71.1
> > > > dns-nameserver 192.168.71.1
> >
> > I've even changed the eth0 devices address, but once I have the
> > hosts file matching, and logged back in, no route is assigned.
>
> so
>
> any dhcp server in the neighborhood?
>
> pls check syntax again in interfaces and interfaces.d/*
>
> can you ping the gateway?
>
yes, in a small fraction of a millisecond.

> remove allow-hotplug eth0 directive
>
> check route with: ip route
>
> see what happens when you do ifdown -a and ifup -a
>
This:
root@rock64:~# ifdown -a;sleep 5;ifup -a
RTNETLINK answers: No such process
root@rock64:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         0.0.0.0         0.0.0.0         U     202    0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     202    0        0 eth0
192.168.71.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
root@rock64:~# ip route
default dev eth0 proto kernel scope link metric 202
169.254.0.0/16 dev eth0 proto kernel scope link src 169.254.216.102 metric 202
192.168.71.0/24 dev eth0 proto kernel scope link src 192.168.71.2

> hth

Not yet. If I can't fix this tomorrow, I'll write another sd card with the original
files.  It worked until an update 2 or 3 weeks ago.

> Christian



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>


Reply to: