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

 

 

 

[SOLVED] [Debian 11] Failed to start Raise network interfaces

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
DidGrasstouching
Posts: 3
Joined: 2022-08-06 09:30

[SOLVED] [Debian 11] Failed to start Raise network interfaces

#1 Post by DidGrasstouching »

I had Debian 11 installed on my PC, everything worked fine (that time I installed both xfce and lxqt). I did a reinstall and everything was going great, until later the next day internet would not connect, not through Ethernet or WiFi. With the help of a friend and his computer I found out how to edit /etc/network/interfaces and I set up the Ethernet connection, however I did not set the WiFi. I set it up today and it works, however I'm still getting some kind of error every time I run

Code: Select all

systemctl status networking
this is what I get

Code: Select all

● networking.service - Raise network interfaces
     Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2022-08-06 04:16:16 CDT; 28min ago
       Docs: man:interfaces(5)
   Main PID: 36050 (code=exited, status=1/FAILURE)
        CPU: 592ms

Aug 06 04:15:59 denebian ifup[36073]: DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 10
Aug 06 04:16:09 denebian dhclient[36073]: No DHCPOFFERS received.
Aug 06 04:16:09 denebian ifup[36073]: No DHCPOFFERS received.
Aug 06 04:16:09 denebian ifup[36073]: No working leases in persistent database - sleeping.
Aug 06 04:16:09 denebian dhclient[36073]: No working leases in persistent database - sleeping.
Aug 06 04:16:16 denebian ifup[37107]: Could not get a link-local address
Aug 06 04:16:16 denebian ifup[36050]: ifup: failed to bring up enp2s0
Aug 06 04:16:16 denebian systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Aug 06 04:16:16 denebian systemd[1]: networking.service: Failed with result 'exit-code'.
Aug 06 04:16:16 denebian systemd[1]: Failed to start Raise network interfaces.
Thanks in advance to anyone willing to help, much appreciated. If more information is needed I will gladly provide it.
Last edited by DidGrasstouching on 2022-08-15 08:56, edited 1 time in total.

brian_p
Posts: 196
Joined: 2015-11-05 10:32
Has thanked: 1 time
Been thanked: 5 times

Re: [Debian 11] Failed to start Raise network interfaces

#2 Post by brian_p »

I think people would want to see the contents of your /e/n/i
and what is given by

Code: Select all

ip a
--
Brian.

DidGrasstouching
Posts: 3
Joined: 2022-08-06 09:30

Re: [Debian 11] Failed to start Raise network interfaces

#3 Post by DidGrasstouching »

brian_p wrote: 2022-08-06 15:06 I think people would want to see the contents of your /e/n/i
and what is given by

Code: Select all

ip a
This are the contents of /etc/network/interfaces, I've done some editing on it.

Code: Select all

# 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
auto enp2s0
allow-hotplug enp2s0
iface enp2s0 inet dhcp
iface enp2s0 inet6 dhcp
auto wlp3s0
allow-hotplug wlp3s0
iface wlp3s0 inet dhcp
iface wlp3s0 inet6 dhcp
I put everything after "iface lo inet loopback" myself.

This is what I get by running

Code: Select all

ip a

Code: Select all

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether f4:30:b9:c9:b2:fc brd ff:ff:ff:ff:ff:ff
    inet 169.254.17.6/16 brd 169.254.255.255 scope link enp2s0:avahi
       valid_lft forever preferred_lft forever
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 70:77:81:a6:10:3f brd ff:ff:ff:ff:ff:ff
    inet 169.254.8.68/16 brd 169.254.255.255 scope link wlp3s0:avahi
       valid_lft forever preferred_lft forever
    inet 192.168.0.23/24 brd 192.168.0.255 scope global wlp3s0
       valid_lft forever preferred_lft forever
    inet6 ::7277:81ff:fea6:103f/64 scope global dynamic mngtmpaddr 
       valid_lft 3599sec preferred_lft 3599sec
    inet6 fe80::7277:81ff:fea6:103f/64 scope link 
       valid_lft forever preferred_lft forever

brian_p
Posts: 196
Joined: 2015-11-05 10:32
Has thanked: 1 time
Been thanked: 5 times

Re: [Debian 11] Failed to start Raise network interfaces

#4 Post by brian_p »

For the wireless interface try

allow-hotplug wlp3s0
iface wlp3s0 inet dhcp
wpa-ssid ACCESS_POINT_NAME
wpa-psk PASSPHRASE
--
Brian.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: [Debian 11] Failed to start Raise network interfaces

#5 Post by p.H »

DidGrasstouching wrote: 2022-08-07 03:12 2: enp2s0: <NO-CARRIER
The ethernet interface is not connected. No wonder why the DHCP client cannot get an IP address.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: [Debian 11] Failed to start Raise network interfaces

#6 Post by bw123 »

p.H wrote: 2022-08-07 21:42
DidGrasstouching wrote: 2022-08-07 03:12 2: enp2s0: <NO-CARRIER
The ethernet interface is not connected. No wonder why the DHCP client cannot get an IP address.
Because 'Lines beginning with the word "auto" are used to identify the physical interfaces
to be brought up... at boot time.) '
according to man interfaces.

no cable plugged or no dhcp server = fail.
resigned by AI ChatGPT

DidGrasstouching
Posts: 3
Joined: 2022-08-06 09:30

Re: [Debian 11] Failed to start Raise network interfaces

#7 Post by DidGrasstouching »

brian_p wrote: 2022-08-07 13:31 For the wireless interface try

allow-hotplug wlp3s0
iface wlp3s0 inet dhcp
wpa-ssid ACCESS_POINT_NAME
wpa-psk PASSPHRASE
It works just fine without the wpa ssid and psk part. I solved it seeing what the others told me, it seems it was just a matter of removing the auto part for the Ethernet connection. Thank you for the help

Post Reply