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

Re: missing gw in route -n



Gene Haskett schrieb am 12. Jul um 00:13 Uhr:

> I have been playing the 10k monkeys scene trying to figure out how to add 
> a gateway entry to the route -n report on a rock64 with a stretch/xfce 
> install on it.

> The obvious (to me that is) place would be 
> in /etc/network/interfaces.d/eth0, which has this:
> 
> 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
> 
> But that is ignored.

In /etc/network/interfaces you need an uncommented line like

# source /etc/network/interfaces.d/*

$ ifconfig 

might tell you that the interface's name has been changed to something
different.

Maybe the network-manager is active?

Christian

-- 
***   Christian Knoke  *  25541 Brunsbüttel  *  http://cknoke.de   ***
...                                                                ...
   The prejudices people feel about each other disappear when they 
get to know each other.   -- Kirk, "Elaan of Troyius", stardate 4372.5


Reply to: