Dne út 13. září 2016 Dave Lers napsal(a):
Uwe Brauer wrote:
I tried this already, the problem is that in
Kubuntu 14.04 things are
different, maybe caused my the switch to systemd.
In 10.4 and 12.04 I had in /etc a file resolv.conf which contained
the IP of the DNS server and in
/etc/network/interfaces
The static IP of the machine, the gateway etc.
I missed the start of this thread so my answer may be clueless. In
Jessie (and other systemd OS's?), static IP and DNS have moved to
/etc/dhcpd.conf. All I did to setup this machine was to add the
following to the bottom of dhcpd.conf:
interface eth0
static ip_address=192.168.0.8/24
static routers=192.168.0.1
static domain_name_servers=208.67.222.222 8.8.8.8
...I hadn't tried "service networking restart", which generates a
warning. While networking was fine at this point, I ran the suggested
command which had no visible affect (networking still fine).
Ha, I still use the file /etc/network/interfaces, same way as I'm used
from previous versions of Debian. This is for me an unknown novelty. It
has some advantage over the interfaces file?
However, I never use restart for networking service. I always apply only
ifdown / ifup on particular interface that I need to address.
--
Slávek