unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* How to stop DHCPCD
@ 2021-01-12 12:18 znavko--- via
  0 siblings, 0 replies; only message in thread
From: znavko--- via @ 2021-01-12 12:18 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 626 bytes --]

Hello! I have system config without networkmanager, wicd.
I use wpa_supplicant + dhclient. But may be I have some mistakes in config.
/var/log/messages contains lot of messages by dhcpcd that tries to serve
enp2s0 and wlp5s0. Look in attach.
(I use dhcp-client-service-type for wlp0s20f0u2)

Is it normal to let DHCPCD to work with all interfaces?
Sometimes I use Ethernet but it will be ok to start Ethernet by hands
without dhcpcd daemon trying to do things allways for all interfaces.

Do you have some advices?
May be it is better to disable DHCPCD for enp2s0 and wlp5s0?
How should I correct my config.scm ?

[-- Attachment #2: messages-log.txt --]
[-- Type: text/plain, Size: 3690 bytes --]

$ cat /var/log/messages
...
Jan 12 14:45:39 localhost dhclient: No working leases in persistent database - sleeping.
Jan 12 14:48:24 localhost dhclient: DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 8
Jan 12 14:48:32 localhost dhclient: DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 21
Jan 12 14:48:53 localhost dhclient: DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 7
Jan 12 14:49:00 localhost dhclient: DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 15
Jan 12 14:49:15 localhost dhclient: DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 10
Jan 12 14:49:25 localhost dhclient: No DHCPOFFERS received.
Jan 12 14:49:25 localhost dhclient: No working leases in persistent database - sleeping.
Jan 12 14:49:58 localhost dhclient: DHCPDISCOVER on wlp5s0 to 255.255.255.255 port 67 interval 4
Jan 12 14:50:02 localhost dhclient: DHCPDISCOVER on wlp5s0 to 255.255.255.255 port 67 interval 7
Jan 12 14:50:09 localhost dhclient: DHCPDISCOVER on wlp5s0 to 255.255.255.255 port 67 interval 8
Jan 12 14:50:17 localhost dhclient: DHCPDISCOVER on wlp5s0 to 255.255.255.255 port 67 interval 18
Jan 12 14:50:35 localhost dhclient: DHCPDISCOVER on wlp5s0 to 255.255.255.255 port 67 interval 10
Jan 12 14:50:45 localhost dhclient: DHCPDISCOVER on wlp5s0 to 255.255.255.255 port 67 interval 14
Jan 12 14:50:59 localhost dhclient: No DHCPOFFERS received.
Jan 12 14:50:59 localhost dhclient: No working leases in persistent database - sleeping.
Jan 12 14:52:42 localhost dhclient: DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 7
Jan 12 14:52:49 localhost dhclient: DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 10
Jan 12 14:52:59 localhost dhclient: DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 21
Jan 12 14:53:20 localhost dhclient: DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 21
Jan 12 14:53:41 localhost dhclient: DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 2
Jan 12 14:53:43 localhost dhclient: No DHCPOFFERS received.
Jan 12 14:53:43 localhost dhclient: No working leases in persistent database - sleeping.
Jan 12 14:57:05 localhost dhclient: DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 8
Jan 12 14:57:13 localhost dhclient: DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 12
Jan 12 14:57:25 localhost dhclient: DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 19
Jan 12 14:57:44 localhost dhclient: DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 16
Jan 12 14:58:00 localhost dhclient: DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 6
Jan 12 14:58:06 localhost dhclient: No DHCPOFFERS received.
Jan 12 14:58:06 localhost dhclient: No working leases in persistent database - sleeping.
Jan 12 14:58:15 localhost dhclient: DHCPDISCOVER on wlp5s0 to 255.255.255.255 port 67 interval 4
Jan 12 14:58:19 localhost dhclient: DHCPDISCOVER on wlp5s0 to 255.255.255.255 port 67 interval 4
Jan 12 14:58:23 localhost dhclient: DHCPDISCOVER on wlp5s0 to 255.255.255.255 port 67 interval 6
Jan 12 14:58:29 localhost dhclient: DHCPDISCOVER on wlp5s0 to 255.255.255.255 port 67 interval 13
Jan 12 14:58:42 localhost dhclient: DHCPDISCOVER on wlp5s0 to 255.255.255.255 port 67 interval 15
Jan 12 14:58:57 localhost dhclient: DHCPDISCOVER on wlp5s0 to 255.255.255.255 port 67 interval 9
Jan 12 14:59:06 localhost dhclient: DHCPDISCOVER on wlp5s0 to 255.255.255.255 port 67 interval 8
Jan 12 14:59:14 localhost dhclient: DHCPDISCOVER on wlp5s0 to 255.255.255.255 port 67 interval 2
Jan 12 14:59:16 localhost dhclient: No DHCPOFFERS received.
Jan 12 14:59:16 localhost dhclient: No working leases in persistent database - sleeping.


[-- Attachment #3: config-sudo_znavko.conf --]
[-- Type: text/plain, Size: 3445 bytes --]

; -*- mode: Scheme; -*-
;;this is znavko's Dual Boot config
;; for lightweight xfce4 desktop
;; with the second OS in GRUB on the separate SSD /dev/sdb2 ( grub: (hd1,gpt2) )
;; without networkmanager but wpa_supplicant + dhcp-client instead
;; with sudoers for openvpn and wpa_supplicant scripts in /usr/scripts
;; disabling pc-speaker

(use-modules (gnu) (gnu system nss)
	     (gnu system locale) ;;for locale-definition
	     (gnu services desktop)
	     (srfi srfi-1)	       ;;for remove function
	     (gnu services networking) ;;for remove ntp
	     (gnu services avahi)      ;;for remove avahi
	     (gnu services xorg)
	     (gnu packages admin) ;;for wpa_supplicant
	     )

(define %sudoers-specification
  (plain-file "sudoers" "root ALL=(ALL) ALL
%wheel ALL=(ALL) ALL
%wheel ALL=(root) NOPASSWD: /usr/scripts/*, /wpa"))

(use-service-modules desktop)
(use-package-modules certs gnome)

(operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale "en_US.utf8")
		  (bootloader (bootloader-configuration (bootloader grub-efi-bootloader)
							(target "/boot/efi")
							(menu-entries (list (menu-entry
									     (label "Devuan")
									     (linux "(hd1,gpt2)/vmlinuz")
									     (linux-arguments '("root=/dev/sdb2"))
									     (initrd "(hd1,gpt2)/initrd.img"))))))
		  
		  (file-systems (cons* 
					(file-system (device "/dev/sda1") (mount-point "/boot/efi") (type "vfat"))
					(file-system (device "/dev/sda2") (mount-point "/") (type "ext4")) 
					(file-system (device "/dev/sdc1") (mount-point "/home/bob/ssd") (type "ext4"))
				%base-file-systems))

		  (swap-devices '("/dev/sda3"))

		  (users (cons* (user-account (name "bob") (group "users")
					      (supplementary-groups '("wheel" "netdev" "audio" "video"))
					      (home-directory "/home/bob"))
				(user-account (name "mom") (group "users")
					      (supplementary-groups '("wheel" "netdev" "audio" "video"))
					      (home-directory "/home/mom"))
				%base-user-accounts))

		  ;; This is where we specify system-wide packages.
		  (packages (cons* nss-certs ;for HTTPS access
				   gvfs	     ;for user mounts
				   wpa-supplicant
				   %base-packages))

		  (services (cons* 
			     ;; xfce4 desktop, dhcp-client, slim
			     (service xfce-desktop-service-type)
			     (service dhcp-client-service-type)
			     (service slim-service-type)

			     (modify-services      
			      ;; removing unnecessary services
			      (remove (lambda (service)
					(member (service-kind service)
						(list ntp-service-type avahi-service-type 
						      bluetooth-service network-manager-service-type
						      gdm-service-type)))
				      %desktop-services) ;end of remove lambda services

			      ;; wpa_supplicant + dhcp-client (above) instead of networkmanager
			      (wpa-supplicant-service-type config =>
							   (wpa-supplicant-configuration
							    (interface "wlp0s20f0u2")
							    (config-file "/etc/wpa_supplicant/wpa_supplicant.conf")))

			      )	;;end of modify-services
			     ))	;;end of services

		  ;; Allow resolution of '.local' host names with mDNS.
		  (name-service-switch %mdns-host-lookup-nss)

		  ;;blacklist ugly sound speaker, blacklist
		  (kernel-arguments '("modprobe.blacklist=pcspkr,snd_pcsp,bluetooth"))

		  (sudoers-file %sudoers-specification)
		  
		  ) ;;end of operating-system

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-12 12:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-12 12:18 How to stop DHCPCD znavko--- via

unofficial mirror of help-guix@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-user/0 guix-user/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-user guix-user/ https://yhetil.org/guix-user \
		help-guix@gnu.org
	public-inbox-index guix-user

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.user
	nntp://news.gmane.io/gmane.comp.gnu.guix.user


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git