networking.service active failed

NobinPegasus

New Member
Joined
Feb 4, 2022
Messages
13
Reaction score
0
Credits
101
I am using Kali Linux. My NetworkManager is enabled. But randomly my NetworkManager or networking.service goes down. Most of the time it's networking.service and my wifi is gone.
And Then I'm unable to turn on the networking.service
I think if I can configure the /etc/network/interfaces file properly then my issue might be fixed

└─$ sudo systemctl status networking.service ● networking.service - Raise network interfaces Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled) Active: active (exited) since Fri 2022-05-06 03:36:24 +06; 1min 28s ago Docs: man:interfaces(5) Process: 2693 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=0/SUCCESS) Main PID: 2693 (code=exited, status=0/SUCCESS) Tasks: 4 (limit: 18384) Memory: 1.5M CPU: 2.141s CGroup: /system.slice/networking.service └─2724 /sbin/dhclient -4 -v -i -pf /run/dhclient.wlan0.pid -lf /var/lib/dhcp/dhclient.wlan0.leases -I -df /var/lib/dhcp/dhclient6.wlan0.leases wlan0 May 06 03:36:12 pegasus ifup[2724]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11 May 06 03:36:12 pegasus ifup[2724]: send_packet: Network is down May 06 03:36:12 pegasus ifup[2724]: dhclient.c:2446: Failed to send 300 byte long packet over wlan0 interface. May 06 03:36:12 pegasus dhclient[2724]: send_packet: Network is down May 06 03:36:12 pegasus dhclient[2724]: dhclient.c:2446: Failed to send 300 byte long packet over wlan0 interface. May 06 03:36:23 pegasus dhclient[2724]: No DHCPOFFERS received. May 06 03:36:23 pegasus ifup[2724]: No DHCPOFFERS received. May 06 03:36:23 pegasus ifup[2724]: No working leases in persistent database - sleeping. May 06 03:36:23 pegasus dhclient[2724]: No working leases in persistent database - sleeping. May 06 03:36:24 pegasus systemd[1]: Finished Raise network interfaces.

lspci

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15) 03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822CE 802.11ac PCIe Wireless Network Adapter (rev ff)

ip a

3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether 32:4a:0d:d8:42:37 brd ff:ff:ff:ff:ff:ff permaddr 70:66:55:98:e2:a1

ipnet, ifup, ifconfig

┌──(pegasus㉿pegasus)-[~] └─$ sudo ifconfig wlan0 up SIOCSIFFLAGS: Operation already in progress ┌──(pegasus㉿pegasus)-[~] └─$ sudo ip link set wlan0 up RTNETLINK answers: Operation already in progress ┌──(pegasus㉿pegasus)-[~] └─$ sudo ifup wlan0 ifup: interface wlan0 already configured


iwconfig

lo no wireless extensions. eth0 no wireless extensions. wlan0 IEEE 802.11 ESSID:eek:ff/any Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm Retry short limit:7 RTS thr:eek:ff Fragment thr:eek:ff Power Management:eek:ff usb0 no wireless extensions.

ifconfig

eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether a8:5e:45:d4:9e:02 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 10 bytes 580 (580.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 10 bytes 580 (580.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.168.176 netmask 255.255.255.0 broadcast 192.168.168.255 inet6 fe80::5dcf:878c:b723:4fef prefixlen 64 scopeid 0x20<link> ether ca:b0:8b:06:a0:05 txqueuelen 1000 (Ethernet) RX packets 30207 bytes 30987462 (29.5 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 23574 bytes 4358491 (4.1 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
 


osprey

Active Member
Joined
Apr 15, 2022
Messages
145
Reaction score
77
Credits
1,306
NetworkManager (NM) and networking.service are two different means of running the network. Use one or the other but not both. NM doesn't use /etc/network/interfaces, but networking does. Why not check out Kali forums?
 
OP
N

NobinPegasus

New Member
Joined
Feb 4, 2022
Messages
13
Reaction score
0
Credits
101
H
NetworkManager (NM) and networking.service are two different means of running the network. Use one or the other but not both. NM doesn't use /etc/network/interfaces, but networking does. Why not check out Kali forums?
How to use one?
 

osprey

Active Member
Joined
Apr 15, 2022
Messages
145
Reaction score
77
Credits
1,306
How to use one?
AIUI, this list advises kali users to read this first:

I couldn't find detailed networking instructions on the kali home site. The debian site has some near generic instructions using different methods here, https://wiki.debian.org/WiFi/HowToUse.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online

No members online now.

Top