Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Networking.service failes to start

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
SourceEgnineer
Posts: 1
Joined: 2018-05-19 18:11

Networking.service failes to start

#1 Post by SourceEgnineer »

Hello,

just a few days before i zipped all my stuff on A and Copied it to B.

everything is working finde except that the "Networking.service" isnt working. "Loaded, failed and failed" same with a Bot, that needs to resolve a DNS before it can start (to collect Updates)


if i do "dhclient eth0", i can restart the bot and it works. Still seems kinda fishy to me.

This is the /etc/network/interfaces


# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 173.212.217.24
netmask 255.255.255.0
gateway 173.212.217.1
dns-nameserver 8.8.8.8
dns-nameserver 8.8.4.4
# add additional IP addresses this way
# up ip address add xxx.xxx.xxx.xxx/XX dev eth0


iface eth0 inet6 static
address 2a02:c207:3002:4982:0000:0000:0000:0001
netmask 64
gateway fe80::1
accept_ra 0
autoconf 0
privext 0








root@vmd24982:~ # apt update
Err:1 http://asi-fs-n.contabo.net/debian stretch InRelease
Could not resolve 'asi-fs-n.contabo.net'
Err:2 http://asi-fs-n.contabo.net/debian stretch-updates InRelease
Could not resolve 'asi-fs-n.contabo.net'
Err:3 http://security.debian.org/debian-security stretch/updates InRelease
Could not resolve 'security.debian.org'
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://asi-fs-n.contabo.net/debian/dist ... /InRelease Could not resolve 'asi-fs-n.contabo.net'
W: Failed to fetch http://security.debian.org/debian-secur ... /InRelease Could not resolve 'security.debian.org'
W: Failed to fetch http://asi-fs-n.contabo.net/debian/dist ... /InRelease Could not resolve 'asi-fs-n.contabo.net'
W: Some index files failed to download. They have been ignored, or old ones used instead.

Then activating the dhclient on eth0

root@vmd24982:~ # dhclient eth0
RTNETLINK answers: File exists
root@vmd24982:~ # apt update
Ign:1 http://asi-fs-n.contabo.net/debian stretch InRelease
Get:2 http://asi-fs-n.contabo.net/debian stretch-updates InRelease [91.0 kB]
Hit:3 http://security.debian.org/debian-security stretch/updates InRelease
Hit:4 http://asi-fs-n.contabo.net/debian stretch Release
Fetched 91.0 kB in 0s (228 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.


I Hope someone is here who can help me...

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Networking.service failes to start

#2 Post by Head_on_a_Stick »

SourceEgnineer wrote:everything is working finde except that the "Networking.service" isnt working. "Loaded, failed and failed"
It would be simpler and quicker for you (and better for us) to copy&paste the error messages verbatim (using code tags) rather than type out a uselessly vague description.

Code: Select all

systemctl --failed
journalctl -u networking.service
^ Some good output to be had there methinks ;)

EDIT: also, check the output of `ip r` after dhclient has connected you and see if your addresses are correct.
deadbang

Post Reply