Answer the question
In order to leave comments, you need to log in
Network startup error on ubuntu 16.04?
Good day to all.
I moved from ubnutu server 15.04 to 16.04, first of all I started setting up the network, there are 3 interfaces: enp4s0, enp5s0, enp6s0.
enp4s0 - looks into the world
enp5s0 - looks into the local network
Using the first two, ifconfig output:
[email protected]:~# ifconfig
enp4s0 Link encap:Ethernet HWaddr b8:97:5a:85:d2:cd
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::ba97:5aff:fe85:d2cd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7163 errors:0 dropped:0 overruns:0 frame:0
TX packets:7017 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:884918 (884.9 KB) TX bytes:1006720 (1.0 MB)
enp5s0 Link encap:Ethernet HWaddr 98:de:d0:00:f1:fb
inet addr:192.168.31.1 Bcast:192.168.31.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Локальная петля (Loopback)
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:461 errors:0 dropped:0 overruns:0 frame:0
TX packets:461 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:42442 (42.4 KB) TX bytes:42442 (42.4 KB)
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto enp4s0
iface enp4s0 inet dhcp
auto enp5s0
iface enp5s0 inet static
address 192.168.2.1
netmask 255.255.255.0
post-up /etc/nat
[email protected]:~# service networking restart
Job for networking.service failed because the control process exited with error code. See "systemctl status networking.service" and "journalctl -xe" for details.
[email protected]:~# systemctl status networking.service
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Drop-In: /run/systemd/generator/networking.service.d
└─50-insserv.conf-$network.conf
Active: failed (Result: exit-code) since Ср 2017-03-22 21:55:31 MSK; 31s ago
Docs: man:interfaces(5)
Process: 2587 ExecStop=/sbin/ifdown -a --read-environment --exclude=lo (code=exited, status=0/SUCCESS)
Process: 3349 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
Process: 3343 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --l Main PID: 3349 (code=exited, status=1/FAILURE)
мар 22 21:55:31 server systemd[1]: Starting Raise network interfaces...
мар 22 21:55:31 server ifup[3349]: RTNETLINK answers: File exists
мар 22 21:55:31 server ifup[3349]: Failed to bring up enp5s0.
мар 22 21:55:31 server systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
мар 22 21:55:31 server systemd[1]: Failed to start Raise network interfaces.
мар 22 21:55:31 server systemd[1]: networking.service: Unit entered failed state.
мар 22 21:55:31 server systemd[1]: networking.service: Failed with result 'exit-code'.
[email protected]:~# journalctl -xe
мар 22 21:55:31 server named[1283]: automatic empty zone: 95.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 96.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 97.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 98.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 99.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 100.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 101.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 102.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 103.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 104.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 105.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 106.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 107.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 108.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 109.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 110.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 111.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 112.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 113.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 114.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 115.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 116.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 117.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 118.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 119.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 120.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 121.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 122.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 123.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 124.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 125.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 126.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 127.100.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 254.169.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 2.0.192.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 100.51.198.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 113.0.203.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0мар 22 21:55:31 server named[1283]: automatic empty zone: 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0мар 22 21:55:31 server named[1283]: automatic empty zone: D.F.IP6.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 8.E.F.IP6.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 9.E.F.IP6.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: A.E.F.IP6.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: B.E.F.IP6.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: 8.B.D.0.1.0.0.2.IP6.ARPA
мар 22 21:55:31 server named[1283]: automatic empty zone: EMPTY.AS112.ARPA
мар 22 21:55:31 server named[1283]: configuring command channel from '/etc/bind/rndc.key'
мар 22 21:55:31 server named[1283]: configuring command channel from '/etc/bind/rndc.key'
мар 22 21:55:31 server named[1283]: reloading configuration succeeded
мар 22 21:55:31 server named[1283]: any newly configured zones are now loaded
мар 22 21:55:31 server systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
мар 22 21:55:31 server systemd[1]: Failed to start Raise network interfaces.
-- Subject: Ошибка юнита networking.service
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Произошел сбой юнита networking.service.
--
-- Результат: failed.
мар 22 21:55:31 server systemd[1]: networking.service: Unit entered failed state.
мар 22 21:55:31 server systemd[1]: networking.service: Failed with result 'exit-code'.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question