From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1AB391581E7 for ; Mon, 22 Apr 2024 14:35:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 15FB3E29E2; Mon, 22 Apr 2024 14:34:56 +0000 (UTC) Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 88CB0E29C4 for ; Mon, 22 Apr 2024 14:34:55 +0000 (UTC) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-618769020bcso47630977b3.3 for ; Mon, 22 Apr 2024 07:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713796494; x=1714401294; darn=lists.gentoo.org; h=in-reply-to:mime-version:user-agent:date:message-id:autocrypt:from :references:to:subject:from:to:cc:subject:date:message-id:reply-to; bh=uXCBa/8kIIV7vD9sx6hVs4LQBdq3xBNl1j3VYLeTKDE=; b=UuppFgOs6bzYaddCX4vOLY05oRct6yMfPzrhxuaw0iX/G9ufYU5wbcJdP1RTt4PEcd pycGjkx1toaHWnH1so+rfNhP54fC/fvDzrRYjhtwnpxwyfan4JwDC20+Wnky/XO6dXL+ R+i98uh08bBh/lvNLkCDyrPTbLIYL2fE5jNqdU3Q23x4Qyt6G2haCI5D29JzEjH2K9y9 cnf7EZM0vCj022nFp0U5VT5uK3F5fmD5kZiLaI0GB81N3cenAeWbwUpXd484+yJjPMWy F3E+VnjcmdD9Cs0yl2SKSpguxTne0dGR96yqe/3qf0RMgOg7Sd4WqrG9VAc+OIqJJhan 9nFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713796494; x=1714401294; h=in-reply-to:mime-version:user-agent:date:message-id:autocrypt:from :references:to:subject:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=uXCBa/8kIIV7vD9sx6hVs4LQBdq3xBNl1j3VYLeTKDE=; b=kPipWt18SnhyTrdxT3EAysTeJMbbFXS3LUuLvsS8ZhJYjn/ua3ilR/rYqBLddJgoeU Rd6rzpzsIw5poBBZUWeRx+LGEoWY2dwJSc3et46wqoPcUPfCNQ3gXoA1wZXxxjxKDtU3 icp5INb0ax8TpYrELzWsNSX/3ZBooEv2/4dQCWVgk1lypl4j7khUe8030H2S74UNXqXT Uct7YlkwWqpkanK1B+Omzhx8pLIJkJtSs6ZVW8xAY9ef1bMCKaaU64IQaZBIbYle1xeH s+uZvFNFZjcjzXGHgzEGvLuOD4SoWA93yqjIXk3zayDV/U7Mz/uW2EtGNhU0raizv6CP rgGw== X-Gm-Message-State: AOJu0YwR2hwTHe5tSybZ/b5D+gkH7uK717PmBL1kO2RmtJCtYxhw/IIh 49xddeCUXuRWh0h1WKj2oZKTVUCqUgHl/MEHaBqDGZsg67iV7D1z X-Google-Smtp-Source: AGHT+IEv6KUbe1lZLUPklg4SwS8kKmI/wXk4rUCHSoU3pFyrTh1DA8EmmIKZO+vhU0jvv84lPxBSEA== X-Received: by 2002:a05:690c:6905:b0:614:2f22:8691 with SMTP id if5-20020a05690c690500b006142f228691mr12208891ywb.27.1713796494224; Mon, 22 Apr 2024 07:34:54 -0700 (PDT) Received: from [10.8.8.4] ([185.238.28.28]) by smtp.gmail.com with ESMTPSA id r124-20020a81b382000000b006098a21f7ebsm2005313ywh.135.2024.04.22.07.34.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Apr 2024 07:34:53 -0700 (PDT) Subject: Re: [gentoo-user] Handbook and question about manual network setup To: gentoo-user@lists.gentoo.org References: <3620527.R56niFO833@rogueboard> <889e4d82-c5b3-ce96-e58b-17c9232f6040@gmail.com> <1966149.PYKUYFuaPT@rogueboard> From: Dale Autocrypt: addr=rdalek1967@gmail.com; prefer-encrypt=mutual; keydata= mQINBGFSciYBEADcEGMyJBSuavKO/XKUVvgkxck7Nl8Iuu8N2lcnRji/rSKg5c1Acix1ll9i oW8JBCHwvn0+Xy60BvEsqcup3YSHw5STl/bR1ePEehtnYrg8FdjdS91+B805RfnKMm69rFVI wLSBHQrSG1yxHd8CloWoEdhmVtP24buajbh114bgXd9ahtpZrCVMrWdWYUg2mEXguGV5uNAh Rf8SWxDNc79w24JxsV34a8niMUYMjzWr0rafIbzk732X38vGjVMLo/2mMpkbp9mPp++LHoY+ 0Pet8zxxdXPJSCd475kza1AD+hhSyBZXB9yknYWgyY3cZe1rGmooJSi2KX4QxO7npwLThcO1 be6KKRkd35+Fi/a1BzVOHsZMiK/gcwxEFoMd27gir4ehaeHJfFXl+65w4hj0EsOZSxrJrm2C R50g5By2czSKP1bADEygFNpIJj51AR+wM88NImG2RPtlT2maYBzazvF05g65cdHXGp1C7W5P wwwKU2DgABB2t7N7z5A69LnryBRw4zUYDRRYLTYlBlYgg+xILm2c0OrBdxJgLJa7JE50Eo25 d3PFwt9J0gYvqy6sPFLl9So0sDg9zm0hKQtXOP5kgropUFGrNoJI+mjwF4rYLRBVzZwNAvlO OhEvHubBo3mEllv4x+FeptwXZxlk7gUsdqI8AxnFB8K9wi6FVQARAQABtBtEYWxlIDxyZGFs ZWsxOTY3QGdtYWlsLmNvbT6JAk4EEwEIADgCGyMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AW IQQSG1h01ruv/WNXc3Q3RqOgiQH1GwUCYVJy8gAKCRA3RqOgiQH1G+waEACeTZCt77jnRAmQ AV7otKuZekDWiLi3Eig8tj5ZJiCNSYA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-0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.18.2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: <1966149.PYKUYFuaPT@rogueboard> Content-Type: multipart/alternative; boundary="------------4D49AB07B71BEFEC14282B73" X-Archives-Salt: 52b6a049-9517-46f1-b36c-ae843307be74 X-Archives-Hash: 1042dd6b25d024f18891b351615dc7ea This is a multi-part message in MIME format. --------------4D49AB07B71BEFEC14282B73 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Michael wrote: > Hi Dale, > > On Sunday, 21 April 2024 03:32:32 BST Dale wrote: > >> OK. I did my weekend OS updates on my main rig, fireball. That >> involves me switching to boot runlevel and back again. When the network >> started, no message about going to default. It just showed it starting >> up and using DHCP. Looks like this: >> >> >> * Bringing up interface enp3s0 >> * dhcp ... >> * Running dhcpcd ... >> >> >> >> I thought of something. My NAS box is shutdown right now so can't >> check. I bet DHCP is set to start in the default runlevel. On my main >> rig it is not set to start the DHCP service at all. I suspect the NAS >> box finds the DHCP service first and starts the network and then finds >> the network service but it is already started. When it starts the >> network with the DHCP service, it does the default thing. I'll test >> that next time I boot up the NAS box. > On one box here I have neither netifrc configured, nor dhcpcd, although both > are installed. I have also made sure networkmanager is not installed. > > However, netmount is in the default runlevel and netmount has the default net > dependency enabled: > > $ grep -v "^#" /etc/conf.d/netmount > rc_need="net" > > $ rc-update show -v | grep -i net > local | default nonetwork > net-online | > net.lo | > netmount | default > > I believe this is what kicks in on my system first and brings up dhcpcd, which > in turn obtains an IP address from my router. I mostly configure static IP > addresses for known devices in my LAN on the router. > > You can compare which network services are configured to come up on your NAS > Vs your main PC and also check any differences in /etc/rc.conf. Finally > search for "rc_need=" dependencies defined in your /etc/conf.d/*. > > https://wiki.gentoo.org/wiki/OpenRC#Dependency_behavior > > >> I guess no one else found a way to get the install handbook on a single >> page. I'll have to copy and paste I guess. That's gonna take a while. >> O_O >> >> Dale >> >> :-) :-) > To save you copying: > > https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation > > but note the warning about links redirecting to individual pages: > > https://wiki.gentoo.org/wiki/Handbook:AMD64/Full My thought was right.  My main rig does not have dhcpcd in any runlevel.  I booted up the NAS box and checked to see if dhcpcd was listed anywhere.  Sure enough, it was in the default runlevel.  I removed it and then rebooted.  There was no mention of defaulting to anything, the network just came up.  So, I guess dhcpcd was trying to start the network first which means it never really saw any of the config files I was adding info too.  It was starting before those came into the picture.  So, now both rigs work the same and I can start/stop/restart the network on both machines the same way.  I suspect if I edited some dhcp config file and set up the ethernet the proper way, it would just come up like it does now, after the change.  Also, nothing against dhcp on my part.  My main rig uses it.  I wanted the NAS box to use it as well, just the same as my main rig.  It works great, even if one doesn't do anything to it.  Having it set up tho does give more consistent results, as in the same IP address.  I can't recall the last time I had dhcp to fail actually.  Thanks for the links on the full docs on one page.  I already copy and pasted it to a LOo doc and am editing out parts I won't ever use.  It's 116 pages and I'm sure there are parts in there that won't ever apply to me, systemd for example.  Maybe I can get the page count down to 100 or so.  If I'm lucky.  Is there anyway to know when the doc changes and what changes?  And how did you find that link?  I looked everywhere.  :/ Dale :-)  :-)  --------------4D49AB07B71BEFEC14282B73 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Michael wrote:
Hi Dale,

On Sunday, 21 April 2024 03:32:32 BST Dale wrote:

OK.  I did my weekend OS updates on my main rig, fireball.  That
involves me switching to boot runlevel and back again.  When the network
started, no message about going to default.  It just showed it starting
up and using DHCP.   Looks like this: 


 * Bringing up interface enp3s0
 *   dhcp ...
 *     Running dhcpcd ...



I thought of something.  My NAS box is shutdown right now so can't
check.  I bet DHCP is set to start in the default runlevel.  On my main
rig it is not set to start the DHCP service at all.  I suspect the NAS
box finds the DHCP service first and starts the network and then finds
the network service but it is already started.  When it starts the
network with the DHCP service, it does the default thing.  I'll test
that next time I boot up the NAS box. 
On one box here I have neither netifrc configured, nor dhcpcd, although both 
are installed.  I have also made sure networkmanager is not installed.

However, netmount is in the default runlevel and netmount has the default net 
dependency enabled:

$ grep -v "^#" /etc/conf.d/netmount
rc_need="net"

$ rc-update show -v | grep -i net
                local |      default nonetwork                 
           net-online |                                        
               net.lo |                                        
             netmount |      default

I believe this is what kicks in on my system first and brings up dhcpcd, which 
in turn obtains an IP address from my router.  I mostly configure static IP 
addresses for known devices in my LAN on the router.

You can compare which network services are configured to come up on your NAS 
Vs your main PC and also check any differences in /etc/rc.conf.  Finally 
search for "rc_need=" dependencies defined in your /etc/conf.d/*.

https://wiki.gentoo.org/wiki/OpenRC#Dependency_behavior


I guess no one else found a way to get the install handbook on a single
page.  I'll have to copy and paste I guess.  That's gonna take a while. 
O_O 

Dale

:-)  :-) 
To save you copying:

https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation

but note the warning about links redirecting to individual pages:

https://wiki.gentoo.org/wiki/Handbook:AMD64/Full


My thought was right.  My main rig does not have dhcpcd in any runlevel.  I booted up the NAS box and checked to see if dhcpcd was listed anywhere.  Sure enough, it was in the default runlevel.  I removed it and then rebooted.  There was no mention of defaulting to anything, the network just came up.  So, I guess dhcpcd was trying to start the network first which means it never really saw any of the config files I was adding info too.  It was starting before those came into the picture.  So, now both rigs work the same and I can start/stop/restart the network on both machines the same way. 

I suspect if I edited some dhcp config file and set up the ethernet the proper way, it would just come up like it does now, after the change.  Also, nothing against dhcp on my part.  My main rig uses it.  I wanted the NAS box to use it as well, just the same as my main rig.  It works great, even if one doesn't do anything to it.  Having it set up tho does give more consistent results, as in the same IP address.  I can't recall the last time I had dhcp to fail actually. 

Thanks for the links on the full docs on one page.  I already copy and pasted it to a LOo doc and am editing out parts I won't ever use.  It's 116 pages and I'm sure there are parts in there that won't ever apply to me, systemd for example.  Maybe I can get the page count down to 100 or so.  If I'm lucky. 

Is there anyway to know when the doc changes and what changes?  And how did you find that link?  I looked everywhere.  :/

Dale

:-)  :-) 
--------------4D49AB07B71BEFEC14282B73--