Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how does dhcpcd get started?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mjbjr
Apprentice
Apprentice


Joined: 02 Mar 2003
Posts: 233

PostPosted: Sun Mar 24, 2019 10:52 pm    Post subject: how does dhcpcd get started? Reply with quote

I noticed a few things which led me to upgrade gcc following:

https://wiki.gentoo.org/wiki/Upgrading_GCC

which seemed to go OK, though it took forever.
Unfortunately, a result of this process was that dhcpcd
has become the default network setup, overriding my
static setup, and making networking mostly totally dead!

Now, during every boot dhcpcd is started which overrides
my former settings, overwrites my /etc/resolv.conf, and
leaves me with an empty routing table. The only thing I can
ping is 127.0.0.1.

Using my Macbook attached to the same lan, i can see that
the lan is ok.

Using 'ps aux' I can see that there is no dhcpd running, but
there is a dhcpcd (dhcpd client) running.
'which dhcpd' doesn't show it being installed.
So, it looks like dhcpcd is the new server and client all rolled into one.

Also, 'rc-update show' doesn't show dhcpd nor dhcpcd in
any runlevel.

currently...
cat /etc/conf.d/net

config_enp11s0="192.168.45.20/24"
routes_enp11s0="default via 192.168.45.10"
dns_servers_enp11s0="1.1.1.1 208.67.222.222 8.8.8.8"

So, atm, after a boot I have to:

/etc/init.d/dhcpcd stop
/etc/init.d/net.enp11s0 restart

and then I'm good to go.

Where is dhcpcd starting?
How can I stop i?
Maybe I should just unmerge it, yes?

Thank you for your help.
.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7090
Location: Saint Amant, Acadiana

PostPosted: Sun Mar 24, 2019 11:04 pm    Post subject: Reply with quote

It is probably the DHCP client which comes with busybox. You need to figure out why your net startup is not getting correct settings and it will not get in your way. What's in dmesg about your network interface?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
mjbjr
Apprentice
Apprentice


Joined: 02 Mar 2003
Posts: 233

PostPosted: Mon Mar 25, 2019 5:29 am    Post subject: Reply with quote

Jaglover wrote:
It is probably the DHCP client which comes with busybox. You need to figure out why your net startup is not getting correct settings and it will not get in your way. What's in dmesg about your network interface?


Thank you for taking the time to reply...

Code:
localhost ~ # emerge -pv busybox

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-apps/busybox-1.29.3::gentoo  USE="ipv6 pam -debug -livecd -make-symlinks -math -mdev -savedconfig (-selinux) -sep-usr -static -syslog -systemd" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

...

I don't see anything in particular, though the last few lines might hold a clue...

Code:
localhost ~ # dmesg | grep -C 5 -i net
[    0.476832] PM: Registering ACPI NVS region [mem 0xbd701000-0xbd786fff] (548864 bytes)
[    0.476877] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.476888] futex hash table entries: 2048 (order: 5, 131072 bytes)
[    0.476904] kworker/u16:0 (50) used greatest stack depth: 14040 bytes left
[    0.476949] RTC time: 21:21:55, date: 03/24/19
[    0.477866] NET: Registered protocol family 16
[    0.478009] cpuidle: using governor ladder
[    0.478028] cpuidle: using governor menu
[    0.478032] PCCT header not found.
[    0.478067] ACPI: bus type PCI registered
[    0.478070] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
Code:

[    0.596993] e820: reserve RAM buffer [mem 0x0009d000-0x0009ffff]
[    0.596994] e820: reserve RAM buffer [mem 0xbbfc0000-0xbbffffff]
[    0.596994] e820: reserve RAM buffer [mem 0xbd701000-0xbfffffff]
[    0.596995] e820: reserve RAM buffer [mem 0xbdbc4000-0xbfffffff]
[    0.596995] e820: reserve RAM buffer [mem 0xbe000000-0xbfffffff]
[    0.597105] NetLabel: Initializing
[    0.597108] NetLabel:  domain hash size = 128
[    0.597110] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.597121] NetLabel:  unlabeled traffic allowed by default
[    0.597178] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0, 0, 0, 0, 0
[    0.597183] hpet0: 8 comparators, 64-bit 14.318180 MHz counter
[    0.599212] clocksource: Switched to clocksource hpet
[    0.604951] VFS: Disk quotas dquot_6.6.0
[    0.604963] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
Code:

[    0.611494] pci_bus 0000:0d: resource 6 [io  0x03b0-0x03df window]
[    0.611495] pci_bus 0000:0d: resource 7 [io  0x0d00-0xffff window]
[    0.611495] pci_bus 0000:0d: resource 8 [mem 0x000a0000-0x000bffff window]
[    0.611496] pci_bus 0000:0d: resource 9 [mem 0x000c0000-0x000dffff window]
[    0.611497] pci_bus 0000:0d: resource 10 [mem 0xc0000000-0xffffffff window]
[    0.611544] NET: Registered protocol family 2
[    0.611687] TCP established hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.611934] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[    0.612042] TCP: Hash tables configured (established 262144 bind 65536)
[    0.612075] UDP hash table entries: 16384 (order: 7, 524288 bytes)
[    0.612141] UDP-Lite hash table entries: 16384 (order: 7, 524288 bytes)
[    0.612229] NET: Registered protocol family 1
[    0.612290] RPC: Registered named UNIX socket transport module.
[    0.612292] RPC: Registered udp transport module.
[    0.612295] RPC: Registered tcp transport module.
[    0.612297] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.646324] pci 0000:01:00.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff]
Code:

[    0.786748] Scanning for low memory corruption every 60 seconds
[    0.786792] simple-framebuffer simple-framebuffer.0: framebuffer at 0xd1000000, 0x500000 bytes, mapped to 0xffff9d5744000000
[    0.786797] simple-framebuffer simple-framebuffer.0: format=a8r8g8b8, mode=1280x1024x32, linelength=5120
[    0.788931] Console: switching to colour frame buffer device 160x64
[    0.790938] simple-framebuffer simple-framebuffer.0: fb0: simplefb registered!
[    0.791087] audit: initializing netlink subsys (disabled)
[    0.791136] audit: type=2000 audit(1553462514.790:1): state=initialized audit_enabled=0 res=1
[    0.791497] workingset: timestamp_bits=56 max_order=23 bucket_order=0
[    0.792431] NFS: Registering the id_resolver key type
[    0.792450] Key type id_resolver registered
[    0.792461] Key type id_legacy registered
[    0.792474] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.792549] SELinux:  Registering netfilter hooks
[    0.793120] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.793142] io scheduler noop registered
[    0.793153] io scheduler deadline registered
[    0.793190] io scheduler cfq registered (default)
[    0.793203] io scheduler mq-deadline registered
Code:

[    0.851317] ahci 0000:0c:00.0: flags: 64bit ncq sntf stag led clo pmp pio slum part ccc
[    0.852158] scsi host16: ahci
[    0.852933] scsi host17: ahci
[    0.853625] ata17: SATA max UDMA/133 abar m512@0xfb600000 port 0xfb600100 irq 31
[    0.854316] ata18: SATA max UDMA/133 abar m512@0xfb600000 port 0xfb600180 irq 31
[    0.855068] e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
[    0.855757] e100: Copyright(c) 1999-2006 Intel Corporation
[    0.856452] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[    0.857141] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    0.857850] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    0.858550] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.859328] e1000e 0000:00:19.0: Interrupt Throttling Rate (ints/sec) set to dynamic conservative mode
[    1.003729] e1000e 0000:00:19.0 0000:00:19.0 (uninitialized): registered PHC clock
[    1.124706] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    1.125426] ata5: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    1.126133] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    1.127076] ata2.00: ATA-8: HGST HDN724040ALE640, MJAOA5E0, max UDMA/133
[    1.127544] e1000e 0000:00:19.0 eth0: (PCI Express:2.5GT/s:Width x1) bc:ee:7b:9d:a7:c7
[    1.127545] e1000e 0000:00:19.0 eth0: Intel(R) PRO/1000 Network Connection
[    1.127587] e1000e 0000:00:19.0 eth0: MAC: 10, PHY: 11, PBA No: FFFFFF-0FF
[    1.127603] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[    1.127604] igb: Copyright (c) 2007-2014 Intel Corporation.
[    1.127616] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[    1.127616] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    1.127625] sky2: driver version 1.30
[    1.127661] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    1.131093] r8169 0000:0b:00.0 eth1: RTL8168g/8111g at 0xffff9d57400e5000, bc:ee:7b:9d:a9:ca, XID 0c000800 IRQ 33
[    1.131094] r8169 0000:0b:00.0 eth1: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[    1.131157] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.131157] ehci-pci: EHCI PCI platform driver
[    1.131237] ehci-pci 0000:00:1a.0: EHCI Host Controller
Code:

[    1.386693] intel_pstate: Intel P-state driver initializing
[    1.387465] hidraw: raw HID events driver (C) Jiri Kosina
[    1.387883] usbcore: registered new interface driver usbhid
[    1.387884] usbhid: USB HID core driver
[    1.388704] snd_hda_intel 0000:01:00.1: Disabling MSI
[    1.388895] Netfilter messages via NETLINK v0.30.
[    1.389363] nf_conntrack version 0.5.0 (65536 buckets, 262144 max)
[    1.389465] ctnetlink v0.93: registering with nfnetlink.
[    1.389637] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.389688] Initializing XFRM netlink socket
[    1.390023] NET: Registered protocol family 10
[    1.390622] Segment Routing with IPv6
[    1.390666] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    1.390754] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.391061] NET: Registered protocol family 17
[    1.391098] Key type dns_resolver registered
[    1.434010] scsi 13:0:0:0: Attached scsi generic sg4 type 3
[    1.434051] microcode: sig=0x306e4, pf=0x4, revision=0x416
[    1.434860] microcode: Microcode Update Driver: v2.2.
[    1.434947] registered taskstats version 1
Code:

[    1.447497] input: HDA Intel PCH Line as /devices/pci0000:00/0000:00:1b.0/sound/card0/input5
[    1.447532] input: HDA Intel PCH Line Out Front as /devices/pci0000:00/0000:00:1b.0/sound/card0/input6
[    1.447562] input: HDA Intel PCH Line Out Surround as /devices/pci0000:00/0000:00:1b.0/sound/card0/input7
[    1.447588] input: HDA Intel PCH Line Out CLFE as /devices/pci0000:00/0000:00:1b.0/sound/card0/input8
[    1.447617] input: HDA Intel PCH Front Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
[    1.454401] console [netcon0] enabled
[    1.455363] netconsole: network logging started
[    1.456330] PM: Hibernation image not present or could not be loaded.
[    1.456331] ALSA device list:
[    1.457322]   #0: HDA Intel PCH at 0xfb120000 irq 58
[    1.463294] usb 1-1: new high-speed USB device number 2 using ehci-pci
[    1.464140] usb 2-1: new high-speed USB device number 2 using ehci-pci
Code:

[    5.819376] EXT4-fs (sdd4): re-mounted. Opts: errors=remount-ro
[    5.910440] Adding 15999996k swap on /dev/sdd3.  Priority:-1 extents:1 across:15999996k SS
[    5.969821] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
[    6.006578] EXT4-fs (sde1): mounted filesystem with ordered data mode. Opts: (null)
[    6.049700] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[   32.289210] IPv6: ADDRCONF(NETDEV_UP): eno1: link is not ready
[   32.330547] r8169 0000:0b:00.0 enp11s0: link down
[   32.330551] r8169 0000:0b:00.0 enp11s0: link down
[   32.330589] IPv6: ADDRCONF(NETDEV_UP): enp11s0: link is not ready
[   35.008118] r8169 0000:0b:00.0 enp11s0: link up
[   35.008135] IPv6: ADDRCONF(NETDEV_CHANGE): enp11s0: link becomes ready
[   94.868878] dhcpcd (4793) used greatest stack depth: 12728 bytes left
[ 1479.777309] kworker/dying (1273) used greatest stack depth: 12696 bytes left

.

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum