Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Slowly and surely the unix crept up on the Nintendo user ...


computers / alt.os.linux.slackware / Re: Getting the IP address at startup

SubjectAuthor
* Getting the IP address at startupAelius Gallus
+* Re: Getting the IP address at startupMarco Moock
|`- Re: Getting the IP address at startupAelius Gallus
+* Re: Getting the IP address at startupPetri Kaukasoina
|`* Re: Getting the IP address at startupAelius Gallus
| `* Re: Getting the IP address at startupPetri Kaukasoina
|  `- Re: Getting the IP address at startupAelius Gallus
+* Re: Getting the IP address at startupChris Elvidge
|`* Re: Getting the IP address at startupAelius Gallus
| +* Re: Getting the IP address at startupRinaldiJ
| |`* Re: Getting the IP address at startupAelius Gallus
| | `- Re: Getting the IP address at startupRinaldiJ
| `* Re: Getting the IP address at startupChris Elvidge
|  `* Re: Getting the IP address at startupAelius Gallus
|   +* Re: Getting the IP address at startupHenrik Carlqvist
|   |`- Re: Getting the IP address at startupAelius Gallus
|   `* Re: Getting the IP address at startupJerry Peters
|    `- Re: Getting the IP address at startupAelius Gallus
`* Re: Getting the IP address at startuproot
 `- Re: Getting the IP address at startupAelius Gallus

1
Getting the IP address at startup

<ufvl1k$3eer6$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2032&group=alt.os.linux.slackware#2032

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: alex...@nospam.mail (Aelius Gallus)
Newsgroups: alt.os.linux.slackware
Subject: Getting the IP address at startup
Date: Mon, 9 Oct 2023 01:29:24 -0000 (UTC)
Organization: Empty Quarter
Lines: 11
Message-ID: <ufvl1k$3eer6$1@dont-email.me>
Injection-Date: Mon, 9 Oct 2023 01:29:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ad1c163ea2cdbdc3193e2ccae237b547";
logging-data="3619686"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/uLC/yvIe524NsTwibraC"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.19-smp (i686))
Cancel-Lock: sha1:H0AqrzpMOxqJMvoS2MI+lLiNTZs=
 by: Aelius Gallus - Mon, 9 Oct 2023 01:29 UTC

My Dell laptop stopped working and I transferred its hard disk to another
one. Slackware-15.0 is working fine, except that it doesn't get its IP from
the router.

Every time I start Slackware, I have to get its IP address using the dhclient
or dhcpcd command with eth2 as a NIC number; it was eth0 before, but this is
not a problem. How can I correct this situation?

Any help will be appreciated.

Re: Getting the IP address at startup

<ug0a9n$3np9u$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2033&group=alt.os.linux.slackware#2033

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mm+usene...@dorfdsl.de (Marco Moock)
Newsgroups: alt.os.linux.slackware
Subject: Re: Getting the IP address at startup
Date: Mon, 9 Oct 2023 09:32:07 +0200
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <ug0a9n$3np9u$2@dont-email.me>
References: <ufvl1k$3eer6$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 9 Oct 2023 07:32:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7a178f70ec7f34a9060f74776aac3d5a";
logging-data="3925310"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+m+RathhdtFfj7riqxQm2D"
Cancel-Lock: sha1:77sRZKqPeL66ux3t4clgcl8lX4k=
 by: Marco Moock - Mon, 9 Oct 2023 07:32 UTC

Am 09.10.2023 um 01:29:24 Uhr schrieb Aelius Gallus:

> Every time I start Slackware, I have to get its IP address using the
> dhclient or dhcpcd command with eth2 as a NIC number; it was eth0
> before, but this is not a problem. How can I correct this situation?

Do you use the NetworkManager?

Re: Getting the IP address at startup

<ug0hr4$3q746$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2034&group=alt.os.linux.slackware#2034

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: kaukasoi...@sci.fi (Petri Kaukasoina)
Newsgroups: alt.os.linux.slackware
Subject: Re: Getting the IP address at startup
Date: Mon, 9 Oct 2023 09:40:52 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <ug0hr4$3q746$1@dont-email.me>
References: <ufvl1k$3eer6$1@dont-email.me>
Injection-Date: Mon, 9 Oct 2023 09:40:52 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b93ee632fea65a658d47dabcdf0c3b83";
logging-data="4004998"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9XfHKhiwotSO8BntbXMDpYrP2i95UrNI="
Cancel-Lock: sha1:dBueK3UW2R8wDp/Q4WjALiXUTeQ=
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: kaukasoina3dore73js4@sci.fi (Petri Kaukasoina)
 by: Petri Kaukasoina - Mon, 9 Oct 2023 09:40 UTC

Aelius Gallus <alexias@nospam.mail> wrote:
>Every time I start Slackware, I have to get its IP address using the dhclient
>or dhcpcd command with eth2 as a NIC number; it was eth0 before, but this is
>not a problem. How can I correct this situation?

rm /etc/udev/rules.d/70-persistent-net.rules

Re: Getting the IP address at startup

<ug0i59$3qc5s$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2035&group=alt.os.linux.slackware#2035

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chr...@mshome.net (Chris Elvidge)
Newsgroups: alt.os.linux.slackware
Subject: Re: Getting the IP address at startup
Date: Mon, 9 Oct 2023 10:46:16 +0100
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <ug0i59$3qc5s$1@dont-email.me>
References: <ufvl1k$3eer6$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 9 Oct 2023 09:46:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="61d2b56cca9a8cb9113516ef6b6ab69e";
logging-data="4010172"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gRMJ3bAckrazg5meaYkI8iRmmKdUfT7k="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:fz4gTHOWnrh1W07ICJp/MJUft90=
In-Reply-To: <ufvl1k$3eer6$1@dont-email.me>
Content-Language: en-GB
 by: Chris Elvidge - Mon, 9 Oct 2023 09:46 UTC

On 09/10/2023 02:29, Aelius Gallus wrote:
> My Dell laptop stopped working and I transferred its hard disk to another
> one. Slackware-15.0 is working fine, except that it doesn't get its IP from
> the router.
>
> Every time I start Slackware, I have to get its IP address using the dhclient
> or dhcpcd command with eth2 as a NIC number; it was eth0 before, but this is
> not a problem. How can I correct this situation?
>
> Any help will be appreciated.
>
>

Investigate /etc/rc.d/rc.inet1.conf
There are sections there for eth0, eth1, eth2 etc
USE_DHCP[X] should be 'yes' for any interface that needs dhcp

'ip a' (as root) will give you a list of interfaces on the machine.

--
Chris Elvidge, England
THE FIRST AMENDMENT DOES NOT COVER BURPING

Re: Getting the IP address at startup

<ug0nvo$3rpc4$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2036&group=alt.os.linux.slackware#2036

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!news.nntp4.net!news.hispagatos.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: alex...@nospam.mail (Aelius Gallus)
Newsgroups: alt.os.linux.slackware
Subject: Re: Getting the IP address at startup
Date: Mon, 9 Oct 2023 11:25:45 -0000 (UTC)
Organization: Empty Quarter
Lines: 26
Message-ID: <ug0nvo$3rpc4$1@dont-email.me>
References: <ufvl1k$3eer6$1@dont-email.me> <ug0i59$3qc5s$1@dont-email.me>
Injection-Date: Mon, 9 Oct 2023 11:25:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ad1c163ea2cdbdc3193e2ccae237b547";
logging-data="4056452"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19bbMhmRqhATYeQrfFlSV+/"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.19-smp (i686))
Cancel-Lock: sha1:fcG+NYiqw+aZtFfCzRR7i3OJ/7g=
 by: Aelius Gallus - Mon, 9 Oct 2023 11:25 UTC

Chris Elvidge <chris@mshome.net> wrote:
>
> Investigate /etc/rc.d/rc.inet1.conf
> There are sections there for eth0, eth1, eth2 etc
> USE_DHCP[X] should be 'yes' for any interface that needs dhcp
>
> 'ip a' (as root) will give you a list of interfaces on the machine.
>
>
Added the following lines to /etc/rc.d/rc.inet1.conf:

# IPv4 config options for eth126:
IPADDRS[126]=""
USE_DHCP[126]="yes"
# IPv6 config options for eth126:
IP6ADDRS[126]=""
USE_SLAAC[126]=""
USE_DHCP6[126]=""
# Generic options for eth126:
DHCP_HOSTNAME[126]=""

(Please see above follow-ups for the value eth126, instead of former eth2)
After restart, had to use, as before, the dhcpcd command to get an
IP address.

Re: Getting the IP address at startup

<ug0oe4$3rt3k$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2037&group=alt.os.linux.slackware#2037

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: alex...@nospam.mail (Aelius Gallus)
Newsgroups: alt.os.linux.slackware
Subject: Re: Getting the IP address at startup
Date: Mon, 9 Oct 2023 11:33:24 -0000 (UTC)
Organization: Empty Quarter
Lines: 11
Message-ID: <ug0oe4$3rt3k$1@dont-email.me>
References: <ufvl1k$3eer6$1@dont-email.me> <ug0hr4$3q746$1@dont-email.me>
Injection-Date: Mon, 9 Oct 2023 11:33:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ad1c163ea2cdbdc3193e2ccae237b547";
logging-data="4060276"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX181yZJjcCJNC7zCfhXaotHf"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.19-smp (i686))
Cancel-Lock: sha1:0d/cqMd+l/OMk/bUGI+LI2dHEaI=
 by: Aelius Gallus - Mon, 9 Oct 2023 11:33 UTC

Petri Kaukasoina <kaukasoina3dore73js4@sci.fi> wrote:
> Aelius Gallus <alexias@nospam.mail> wrote:
>>Every time I start Slackware, I have to get its IP address using the
>>dhclient or dhcpcd command with eth2 as a NIC number; it was eth0 before,
>>but this is not a problem. How can I correct this situation?
>
> rm /etc/udev/rules.d/70-persistent-net.rules

Removed the file, and after restart, eth2 became eth126. And had to use,
as before, the dhcpcd command to get an IP address.

Re: Getting the IP address at startup

<ug0okv$3rukl$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2038&group=alt.os.linux.slackware#2038

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: alex...@nospam.mail (Aelius Gallus)
Newsgroups: alt.os.linux.slackware
Subject: Re: Getting the IP address at startup
Date: Mon, 9 Oct 2023 11:37:04 -0000 (UTC)
Organization: Empty Quarter
Lines: 13
Message-ID: <ug0okv$3rukl$1@dont-email.me>
References: <ufvl1k$3eer6$1@dont-email.me> <ug0a9n$3np9u$2@dont-email.me>
Injection-Date: Mon, 9 Oct 2023 11:37:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ad1c163ea2cdbdc3193e2ccae237b547";
logging-data="4061845"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19wItfwbEA5EQRaFr466EHZ"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.19-smp (i686))
Cancel-Lock: sha1:gW5ODrf0my3ApcOHLFBZ5CPpWpM=
 by: Aelius Gallus - Mon, 9 Oct 2023 11:37 UTC

Marco Moock <mm+usenet-es@dorfdsl.de> wrote:
> Am 09.10.2023 um 01:29:24 Uhr schrieb Aelius Gallus:
>
>> Every time I start Slackware, I have to get its IP address using the
>> dhclient or dhcpcd command with eth2 as a NIC number; it was eth0
>> before, but this is not a problem. How can I correct this situation?
>
> Do you use the NetworkManager?
Just transferred the hard disk from one laptop to the other.
Didn't use any command or Network Manager.

Re: Getting the IP address at startup

<acd8f767-52e1-4701-8696-e7392f4ddc5c@nunya.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2039&group=alt.os.linux.slackware#2039

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rinal...@nunya.com (RinaldiJ)
Newsgroups: alt.os.linux.slackware
Subject: Re: Getting the IP address at startup
Date: Mon, 9 Oct 2023 07:21:31 -0500
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <acd8f767-52e1-4701-8696-e7392f4ddc5c@nunya.com>
References: <ufvl1k$3eer6$1@dont-email.me> <ug0i59$3qc5s$1@dont-email.me>
<ug0nvo$3rpc4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="57637ad05be56044b088754a2bc65062";
logging-data="4081467"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Ir1DRxrmHRIAWqVRkfx4gO/q9Rz2GQ2s="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:J87fEna21U5uJ5szanos0t8Qq6Y=
In-Reply-To: <ug0nvo$3rpc4$1@dont-email.me>
Content-Language: en-US
 by: RinaldiJ - Mon, 9 Oct 2023 12:21 UTC

On 10/9/23 06:25, Aelius Gallus wrote:
> Chris Elvidge <chris@mshome.net> wrote:
>>
>> Investigate /etc/rc.d/rc.inet1.conf
>> There are sections there for eth0, eth1, eth2 etc
>> USE_DHCP[X] should be 'yes' for any interface that needs dhcp
>>
>> 'ip a' (as root) will give you a list of interfaces on the machine.
>>
>>
> Added the following lines to /etc/rc.d/rc.inet1.conf:
>
> # IPv4 config options for eth126:
> IPADDRS[126]=""
> USE_DHCP[126]="yes"
> # IPv6 config options for eth126:
> IP6ADDRS[126]=""
> USE_SLAAC[126]=""
> USE_DHCP6[126]=""
> # Generic options for eth126:
> DHCP_HOSTNAME[126]=""
>
> (Please see above follow-ups for the value eth126, instead of former eth2)
> After restart, had to use, as before, the dhcpcd command to get an
> IP address.
>
>
Curious. What does ifconfig tell you?

And cat /etc/rules.d/70-persistent-net.rules

Rinaldi

Re: Getting the IP address at startup

<ug122v$3uq91$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2040&group=alt.os.linux.slackware#2040

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: kaukasoi...@sci.fi (Petri Kaukasoina)
Newsgroups: alt.os.linux.slackware
Subject: Re: Getting the IP address at startup
Date: Mon, 9 Oct 2023 14:18:07 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <ug122v$3uq91$1@dont-email.me>
References: <ufvl1k$3eer6$1@dont-email.me> <ug0hr4$3q746$1@dont-email.me> <ug0oe4$3rt3k$1@dont-email.me>
Injection-Date: Mon, 9 Oct 2023 14:18:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b93ee632fea65a658d47dabcdf0c3b83";
logging-data="4155681"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IsfcjngoRjObsHKJqAtFW3MCKQCe7xD0="
Cancel-Lock: sha1:IisqNV8hL1WXiE6xxZoqMYuMGXM=
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: kaukasoina3dore73js4@sci.fi (Petri Kaukasoina)
 by: Petri Kaukasoina - Mon, 9 Oct 2023 14:18 UTC

Aelius Gallus <alexias@nospam.mail> wrote:
>Petri Kaukasoina <kaukasoina3dore73js4@sci.fi> wrote:
>> Aelius Gallus <alexias@nospam.mail> wrote:
>>>Every time I start Slackware, I have to get its IP address using the
>>>dhclient or dhcpcd command with eth2 as a NIC number; it was eth0 before,
>>>but this is not a problem. How can I correct this situation?
>>
>> rm /etc/udev/rules.d/70-persistent-net.rules
>
>Removed the file, and after restart, eth2 became eth126. And had to use,
>as before, the dhcpcd command to get an IP address.

How many ethernet card do you have:

dmesg|grep eth

The idea of 70-persistent-net.rules is to keep the names of ethernet
interfaces constant even after adding extra cards. I have a machine which
has one built-in ethernet port (tigon3). udev has created a line in
70-persistent-net.rules for naming it eth0. I have later added another card
(intel e100). udev added a line naming it eth1. Because e100 is found first
after boot, it becomes eth0, and tg3 becomes eth1. With the help of
70-persistent-net.rules, udev then changes the names by renaming eth0 to
eth126, eth1 to eth125, eth126 to eth1, and finally eth125 to eth0. So tg3
is eth0 as originally!

If you removed 70-persistent-net.rules, you should only have eth0 in that
file after reboot. Or, if you have more than one ethernet chip, you could
see that shuffling take place in dmesg but eth126 should not be left there.

Re: Getting the IP address at startup

<ug12ot$3uv7e$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2041&group=alt.os.linux.slackware#2041

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chr...@mshome.net (Chris Elvidge)
Newsgroups: alt.os.linux.slackware
Subject: Re: Getting the IP address at startup
Date: Mon, 9 Oct 2023 15:29:46 +0100
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <ug12ot$3uv7e$1@dont-email.me>
References: <ufvl1k$3eer6$1@dont-email.me> <ug0i59$3qc5s$1@dont-email.me>
<ug0nvo$3rpc4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 9 Oct 2023 14:29:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="cd13dc9bd0d8079ea9191e4fc9891c65";
logging-data="4160750"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19hlu71QSsxYDyOuVl6HPlpKutZMRZIL5o="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:6dUrBYYflQKS1Rlmx18WuEh8jZE=
Content-Language: en-GB
In-Reply-To: <ug0nvo$3rpc4$1@dont-email.me>
 by: Chris Elvidge - Mon, 9 Oct 2023 14:29 UTC

On 09/10/2023 12:25, Aelius Gallus wrote:
> Chris Elvidge <chris@mshome.net> wrote:
>>
>> Investigate /etc/rc.d/rc.inet1.conf
>> There are sections there for eth0, eth1, eth2 etc
>> USE_DHCP[X] should be 'yes' for any interface that needs dhcp
>>
>> 'ip a' (as root) will give you a list of interfaces on the machine.
>>
>>
> Added the following lines to /etc/rc.d/rc.inet1.conf:
>
> # IPv4 config options for eth126:
> IPADDRS[126]=""
> USE_DHCP[126]="yes"
> # IPv6 config options for eth126:
> IP6ADDRS[126]=""
> USE_SLAAC[126]=""
> USE_DHCP6[126]=""
> # Generic options for eth126:
> DHCP_HOSTNAME[126]=""
>
> (Please see above follow-ups for the value eth126, instead of former eth2)
> After restart, had to use, as before, the dhcpcd command to get an
> IP address.
>
>

rc.inet1.conf has a max interfaces number
In rc.inet1 it defaults to 6 -- 126 is way outside this limit
It's not really maximum interfaces; eth0 to eth5 are the only ones
allowed by default

What does 'ip a | grep ^[0-6]' say?

Are you sure you deleted /etc/udev/rules.d/70-persistent-net.rules?

--
Chris Elvidge, England
MY BUTT DOES NOT DESERVE A WEBSITE

Re: Getting the IP address at startup

<ug1n89$3psv$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2042&group=alt.os.linux.slackware#2042

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: NoEM...@home.org (root)
Newsgroups: alt.os.linux.slackware
Subject: Re: Getting the IP address at startup
Date: Mon, 9 Oct 2023 20:19:21 -0000 (UTC)
Organization: Linux Advocacy
Lines: 18
Message-ID: <ug1n89$3psv$1@dont-email.me>
References: <ufvl1k$3eer6$1@dont-email.me>
Injection-Date: Mon, 9 Oct 2023 20:19:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1c5fb3f54cc8b35a6d296e89463d933a";
logging-data="124831"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19LfiVemQGD5WM8G3QB0USLYoaBj6ulM2Q="
User-Agent: slrn/1.0.2 (Linux)
Cancel-Lock: sha1:yySlDefpBvpPyL5cGgZ2o4ai9nA=
 by: root - Mon, 9 Oct 2023 20:19 UTC

Aelius Gallus <alexias@nospam.mail> wrote:
> My Dell laptop stopped working and I transferred its hard disk to another
> one. Slackware-15.0 is working fine, except that it doesn't get its IP from
> the router.
>
> Every time I start Slackware, I have to get its IP address using the dhclient
> or dhcpcd command with eth2 as a NIC number; it was eth0 before, but this is
> not a problem. How can I correct this situation?
>
> Any help will be appreciated.
>
>

cd to /etc/udev/rules.d
and delete the 70-* files
reboot
that will restore you eth0. Right now your eth1
is probably active.

Re: Getting the IP address at startup

<ug29p1$7jaa$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2043&group=alt.os.linux.slackware#2043

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: alex...@nospam.mail (Aelius Gallus)
Newsgroups: alt.os.linux.slackware
Subject: Re: Getting the IP address at startup
Date: Tue, 10 Oct 2023 01:35:29 -0000 (UTC)
Organization: Empty Quarter
Lines: 31
Message-ID: <ug29p1$7jaa$1@dont-email.me>
References: <ufvl1k$3eer6$1@dont-email.me> <ug0i59$3qc5s$1@dont-email.me> <ug0nvo$3rpc4$1@dont-email.me> <acd8f767-52e1-4701-8696-e7392f4ddc5c@nunya.com>
Injection-Date: Tue, 10 Oct 2023 01:35:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9f21a01b849fa65c0c1db39821417104";
logging-data="249162"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18UTrYHOAr1EMiBXZV8n/Lf"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.19-smp (i686))
Cancel-Lock: sha1:ALkDoSzsch2ZfMQZv3Q5qndBeQU=
 by: Aelius Gallus - Tue, 10 Oct 2023 01:35 UTC

RinaldiJ <rinaldij@nunya.com> wrote:
> Curious. What does ifconfig tell you?
>
> And cat /etc/rules.d/70-persistent-net.rules
>
> Rinaldi
--------
bash-5.1$ ifconfig -a
eth126: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.11.2 netmask 255.255.255.0 broadcast 192.168.11.255
inet6 fe80::e967:c7e3:b350:3c21 prefixlen 64 scopeid 0x20<link>
ether 74:2b:62:87:73:61 txqueuelen 1000 (Ethernet)
RX packets 58 bytes 31116 (30.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 134 bytes 11638 (11.3 KiB)
TX errors 1 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 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
-------
bash-5.1$ cat /etc/rules.d/70-persistent-net.rules
cat: /etc/rules.d/70-persistent-net.rules: No such file or directory
bash-5.1$

Re: Getting the IP address at startup

<2e4c590f-6072-4cb7-b433-51e11a0f15d0@nunya.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2044&group=alt.os.linux.slackware#2044

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rinal...@nunya.com (RinaldiJ)
Newsgroups: alt.os.linux.slackware
Subject: Re: Getting the IP address at startup
Date: Mon, 9 Oct 2023 21:12:36 -0500
Organization: A noiseless patient Spider
Lines: 65
Message-ID: <2e4c590f-6072-4cb7-b433-51e11a0f15d0@nunya.com>
References: <ufvl1k$3eer6$1@dont-email.me> <ug0i59$3qc5s$1@dont-email.me>
<ug0nvo$3rpc4$1@dont-email.me>
<acd8f767-52e1-4701-8696-e7392f4ddc5c@nunya.com>
<ug29p1$7jaa$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="af968e0d8063d6b7c44510cda2020f61";
logging-data="387734"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19LFqaIbmSNVHty+rnfbveGnW0QfWs3UCc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Fl7E1/8kXFLMve4LThRzWIBBmXo=
Content-Language: en-US
In-Reply-To: <ug29p1$7jaa$1@dont-email.me>
 by: RinaldiJ - Tue, 10 Oct 2023 02:12 UTC

On 10/9/23 20:35, Aelius Gallus wrote:
> RinaldiJ <rinaldij@nunya.com> wrote:
>> Curious. What does ifconfig tell you?
>>
>> And cat /etc/rules.d/70-persistent-net.rules
>>
>> Rinaldi
> --------
> bash-5.1$ ifconfig -a
> eth126: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
> inet 192.168.11.2 netmask 255.255.255.0 broadcast 192.168.11.255
> inet6 fe80::e967:c7e3:b350:3c21 prefixlen 64 scopeid 0x20<link>
> ether 74:2b:62:87:73:61 txqueuelen 1000 (Ethernet)
> RX packets 58 bytes 31116 (30.3 KiB)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 134 bytes 11638 (11.3 KiB)
> TX errors 1 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 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
> -------
> bash-5.1$ cat /etc/rules.d/70-persistent-net.rules
> cat: /etc/rules.d/70-persistent-net.rules: No such file or directory
> bash-5.1$
>
>
That should be /etc/udev/rules.d/70-persistent-net.rules Note the udev

And it should contain as a minimum:

# PCI device 0x8086:0x15b8 (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="74:2b:62:87:73:61", ATTR{dev_id}=="0x0",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

The e1000e will be replaced by whatever your ethernet device is. The
ATTR address should be the MAC address of your ethernet adapter, shown
in ifconfig. The NAME="eth0" refers to the first ethernet device.

I don't know if this is editable but I'd try it.

Then season /etc/rc.d/rc.inet1.conf to taste ;-)

My stanza for eth0 is:

# IPv4 config options for eth0:
IPADDRS[0]="192.168.1.101/24"
USE_DHCP[0]=""
# IPv6 config options for eth0:
IP6ADDRS[0]=""
USE_SLAAC[0]=""
USE_DHCP6[0]=""
# Generic options for eth0:
DHCP_HOSTNAME[0]=""

which except for asking for a specific IP is the default.

Rinaldi

Re: Getting the IP address at startup

<ug2c4c$brq1$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2045&group=alt.os.linux.slackware#2045

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: alex...@nospam.mail (Aelius Gallus)
Newsgroups: alt.os.linux.slackware
Subject: Re: Getting the IP address at startup
Date: Tue, 10 Oct 2023 02:15:40 -0000 (UTC)
Organization: Empty Quarter
Lines: 35
Message-ID: <ug2c4c$brq1$1@dont-email.me>
References: <ufvl1k$3eer6$1@dont-email.me> <ug0hr4$3q746$1@dont-email.me> <ug0oe4$3rt3k$1@dont-email.me> <ug122v$3uq91$1@dont-email.me>
Injection-Date: Tue, 10 Oct 2023 02:15:40 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9f21a01b849fa65c0c1db39821417104";
logging-data="388929"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18mNeeOiw/nROSF7Nfq5va1"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.19-smp (i686))
Cancel-Lock: sha1:KeO9i5PCl7HjRccQ7DYMox3Sbac=
 by: Aelius Gallus - Tue, 10 Oct 2023 02:15 UTC

Petri Kaukasoina <kaukasoina3dore73js4@sci.fi> wrote:
> Aelius Gallus <alexias@nospam.mail> wrote:
>>Petri Kaukasoina <kaukasoina3dore73js4@sci.fi> wrote:
>>> Aelius Gallus <alexias@nospam.mail> wrote:
>>>>Every time I start Slackware, I have to get its IP address using the
>>>>dhclient or dhcpcd command with eth2 as a NIC number; it was eth0 before,
>>>>but this is not a problem. How can I correct this situation?
>>>
>>> rm /etc/udev/rules.d/70-persistent-net.rules
>>
>>Removed the file, and after restart, eth2 became eth126. And had to use,
>>as before, the dhcpcd command to get an IP address.
>
> How many ethernet card do you have:
>
> dmesg|grep eth
>
> The idea of 70-persistent-net.rules is to keep the names of ethernet
> interfaces constant even after adding extra cards. I have a machine which
> has one built-in ethernet port (tigon3). udev has created a line in
> 70-persistent-net.rules for naming it eth0. I have later added another card
> (intel e100). udev added a line naming it eth1. Because e100 is found first
> after boot, it becomes eth0, and tg3 becomes eth1. With the help of
> 70-persistent-net.rules, udev then changes the names by renaming eth0 to
> eth126, eth1 to eth125, eth126 to eth1, and finally eth125 to eth0. So tg3
> is eth0 as originally!
>
> If you removed 70-persistent-net.rules, you should only have eth0 in that
> file after reboot. Or, if you have more than one ethernet chip, you could
> see that shuffling take place in dmesg but eth126 should not be left there.
-----
Thank you very much for your long explanation. The problem has been solved,
please read the following threads.

Re: Getting the IP address at startup

<ug2da4$c2eb$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2046&group=alt.os.linux.slackware#2046

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: alex...@nospam.mail (Aelius Gallus)
Newsgroups: alt.os.linux.slackware
Subject: Re: Getting the IP address at startup
Date: Tue, 10 Oct 2023 02:35:49 -0000 (UTC)
Organization: Empty Quarter
Lines: 41
Message-ID: <ug2da4$c2eb$1@dont-email.me>
References: <ufvl1k$3eer6$1@dont-email.me> <ug0i59$3qc5s$1@dont-email.me> <ug0nvo$3rpc4$1@dont-email.me> <ug12ot$3uv7e$1@dont-email.me>
Injection-Date: Tue, 10 Oct 2023 02:35:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9f21a01b849fa65c0c1db39821417104";
logging-data="395723"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ppTMFELDm0Duvdzs8VZYm"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.19-smp (i686))
Cancel-Lock: sha1:dPOT1X+ZzpIvMFfxugpaf9qWgcE=
 by: Aelius Gallus - Tue, 10 Oct 2023 02:35 UTC

>> Chris Elvidge <chris@mshome.net> wrote:
>
> rc.inet1.conf has a max interfaces number
> In rc.inet1 it defaults to 6 -- 126 is way outside this limit
> It's not really maximum interfaces; eth0 to eth5 are the only ones
> allowed by default
>
> What does 'ip a | grep ^[0-6]' say?
>
> Are you sure you deleted /etc/udev/rules.d/70-persistent-net.rules?
>
Thank you for asking again this question. In fact I changed the name
of the file to "Original.70-persistent-net.rules", and kept it in
the same directory, just in case. After your question I removed the
file and left the directory completely empty, and restarted the
laptop. To my surprise, the laptop got its IP address and eth0 was
back again as shown below,
-----
bash-5.1$ ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.11.2 netmask 255.255.255.0 broadcast 192.168.11.255
inet6 fe80::762b:62ff:fe87:7361 prefixlen 64 scopeid 0x20<link>
ether 74:2b:62:87:73:61 txqueuelen 1000 (Ethernet)
RX packets 96 bytes 21827 (21.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 168 bytes 18004 (17.5 KiB)
TX errors 2 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 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

-----
Thank you to all of you for the tremendous support.

Re: Getting the IP address at startup

<ug2dli$c4br$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2047&group=alt.os.linux.slackware#2047

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: alex...@nospam.mail (Aelius Gallus)
Newsgroups: alt.os.linux.slackware
Subject: Re: Getting the IP address at startup
Date: Tue, 10 Oct 2023 02:41:55 -0000 (UTC)
Organization: Empty Quarter
Lines: 23
Message-ID: <ug2dli$c4br$1@dont-email.me>
References: <ufvl1k$3eer6$1@dont-email.me> <ug1n89$3psv$1@dont-email.me>
Injection-Date: Tue, 10 Oct 2023 02:41:55 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9f21a01b849fa65c0c1db39821417104";
logging-data="397691"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18tKMEiloi6En1FOYQFMELR"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.19-smp (i686))
Cancel-Lock: sha1:HvEWdQR2sC1PPHliGCu9DXuThSo=
 by: Aelius Gallus - Tue, 10 Oct 2023 02:41 UTC

root <NoEMail@home.org> wrote:
> Aelius Gallus <alexias@nospam.mail> wrote:
>> My Dell laptop stopped working and I transferred its hard disk to another
>> one. Slackware-15.0 is working fine, except that it doesn't get its IP from
>> the router.
>>
>> Every time I start Slackware, I have to get its IP address using the
>>dhclient or dhcpcd command with eth2 as a NIC number; it was eth0 before,
>>but this is not a problem. How can I correct this situation?
>>
>> Any help will be appreciated.
>>
>>
>
> cd to /etc/udev/rules.d
> and delete the 70-* files
> reboot
> that will restore you eth0. Right now your eth1
> is probably active.
Thank you. The problem has been solved as you suggest, by deleting the
"70-*" file.

Re: Getting the IP address at startup

<ug33fp$11dtc$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2048&group=alt.os.linux.slackware#2048

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Henrik.C...@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: Getting the IP address at startup
Date: Tue, 10 Oct 2023 08:54:17 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <ug33fp$11dtc$1@dont-email.me>
References: <ufvl1k$3eer6$1@dont-email.me> <ug0i59$3qc5s$1@dont-email.me>
<ug0nvo$3rpc4$1@dont-email.me> <ug12ot$3uv7e$1@dont-email.me>
<ug2da4$c2eb$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 10 Oct 2023 08:54:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="69c4a13164dae743bcc462803c89bc63";
logging-data="1095596"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18R+82RPJOypMMYyzOkqDl2"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:vEIuTPnOxPD2iUumWawE6wDKFM0=
 by: Henrik Carlqvist - Tue, 10 Oct 2023 08:54 UTC

On Tue, 10 Oct 2023 02:35:49 +0000, Aelius Gallus wrote:
> In fact I changed the name of the file to
> "Original.70-persistent-net.rules", and kept it in the same
> directory, just in case.

As all the files in that directory is run in alphabetical order and
"Original" comes after "70" the contents of the original file overwrote
the contents of your new file modified for your new hardware. This also
explains why your eth0 got renamed to something else when Original wanted
to use eth0 for another interface.

> After your question I removed the file and left
> the directory completely empty, and restarted the laptop. To my
> surprise, the laptop got its IP address and eth0 was back again

Without any 70-persistent-net.rules a new file will be created at next
reboot only listing interfaces in your current hardware setup. The first
ethernet interface found will be named eth0.

However, if you before also had some other more or less custom files in /
etc/udev/rules.d not related to networking you might want to keep them. I
usually place custom files there which allow me to access different
hardware as digital cameras and GPS navigators as a normal user.

regards Henrik

Re: Getting the IP address at startup

<ug3e1t$14clj$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2049&group=alt.os.linux.slackware#2049

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: alex...@nospam.mail (Aelius Gallus)
Newsgroups: alt.os.linux.slackware
Subject: Re: Getting the IP address at startup
Date: Tue, 10 Oct 2023 11:54:37 -0000 (UTC)
Organization: Empty Quarter
Lines: 29
Message-ID: <ug3e1t$14clj$1@dont-email.me>
References: <ufvl1k$3eer6$1@dont-email.me> <ug0i59$3qc5s$1@dont-email.me> <ug0nvo$3rpc4$1@dont-email.me> <ug12ot$3uv7e$1@dont-email.me> <ug2da4$c2eb$1@dont-email.me> <ug33fp$11dtc$1@dont-email.me>
Injection-Date: Tue, 10 Oct 2023 11:54:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9f21a01b849fa65c0c1db39821417104";
logging-data="1192627"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18PoDeAQL3UThLV52/g5pWJ"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.19-smp (i686))
Cancel-Lock: sha1:k5rKCtwL9Y5LfGNE3M8D1sIlodQ=
 by: Aelius Gallus - Tue, 10 Oct 2023 11:54 UTC

Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> wrote:
> As all the files in that directory is run in alphabetical order and
> "Original" comes after "70" the contents of the original file overwrote
> the contents of your new file modified for your new hardware. This also
> explains why your eth0 got renamed to something else when Original wanted
> to use eth0 for another interface.
>
>> After your question I removed the file and left
>> the directory completely empty, and restarted the laptop. To my
>> surprise, the laptop got its IP address and eth0 was back again
>
> Without any 70-persistent-net.rules a new file will be created at next
> reboot only listing interfaces in your current hardware setup. The first
> ethernet interface found will be named eth0.
>
> However, if you before also had some other more or less custom files in /
> etc/udev/rules.d not related to networking you might want to keep them. I
> usually place custom files there which allow me to access different
> hardware as digital cameras and GPS navigators as a normal user.
>
> regards Henrik

Thank you for your comprehensive comment. That explains the requirement
to have, in my particular case, the /etc/udev/rules.d directory empty.

The last paragraph in your comment, about digital cameras and GPS
navigators, looks well above my head. In fact, I am very much impressed
by the knowledge of the people in this newsgroup.

Re: Getting the IP address at startup

<ug7a8k$237rj$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2050&group=alt.os.linux.slackware#2050

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jer...@example.invalid (Jerry Peters)
Newsgroups: alt.os.linux.slackware
Subject: Re: Getting the IP address at startup
Date: Wed, 11 Oct 2023 23:14:28 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <ug7a8k$237rj$1@dont-email.me>
References: <ufvl1k$3eer6$1@dont-email.me> <ug0i59$3qc5s$1@dont-email.me> <ug0nvo$3rpc4$1@dont-email.me> <ug12ot$3uv7e$1@dont-email.me> <ug2da4$c2eb$1@dont-email.me>
Injection-Date: Wed, 11 Oct 2023 23:14:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="638ac951c514d52a5582a4fea2fc00e8";
logging-data="2203507"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Gnhfrx3Q0JzN6FcbaoSoktxBfHGl1fGs="
User-Agent: tin/2.4.5-20201224 ("Glen Albyn") (Linux/6.1.55 (x86_64))
Cancel-Lock: sha1:9ZzIJ6PJx8mP+sZViJCkHM9N4CI=
 by: Jerry Peters - Wed, 11 Oct 2023 23:14 UTC

Aelius Gallus <alexias@nospam.mail> wrote:
>>> Chris Elvidge <chris@mshome.net> wrote:
>>
>> rc.inet1.conf has a max interfaces number
>> In rc.inet1 it defaults to 6 -- 126 is way outside this limit
>> It's not really maximum interfaces; eth0 to eth5 are the only ones
>> allowed by default
>>
>> What does 'ip a | grep ^[0-6]' say?
>>
>> Are you sure you deleted /etc/udev/rules.d/70-persistent-net.rules?
>>
> Thank you for asking again this question. In fact I changed the name
> of the file to "Original.70-persistent-net.rules", and kept it in
> the same directory, just in case. After your question I removed the
> file and left the directory completely empty, and restarted the
> laptop. To my surprise, the laptop got its IP address and eth0 was
> back again as shown below,

Add the '.original' to the *end*, udev executes any file with a .rules
suffix, so it still got executed.

If you want to prevent the whole persistant net crud from running, put
an empty file named '75-persistent-net-generator.rules' in
/etc/udev/rules.d. The way udev works, a file in /etc/udev/rules.d
overrides the like named file in /lib/udev/rules.d.

Re: Getting the IP address at startup

<ug80m8$2b7ji$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2051&group=alt.os.linux.slackware#2051

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: alex...@nospam.mail (Aelius Gallus)
Newsgroups: alt.os.linux.slackware
Subject: Re: Getting the IP address at startup
Date: Thu, 12 Oct 2023 05:37:12 -0000 (UTC)
Organization: Empty Quarter
Lines: 35
Message-ID: <ug80m8$2b7ji$1@dont-email.me>
References: <ufvl1k$3eer6$1@dont-email.me> <ug0i59$3qc5s$1@dont-email.me> <ug0nvo$3rpc4$1@dont-email.me> <ug12ot$3uv7e$1@dont-email.me> <ug2da4$c2eb$1@dont-email.me> <ug7a8k$237rj$1@dont-email.me>
Injection-Date: Thu, 12 Oct 2023 05:37:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f9673c7fc156c4b53aef2b64af95c8eb";
logging-data="2465394"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19LXG34U43OmH0ptDuPQxBB"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.19-smp (i686))
Cancel-Lock: sha1:m73Vc177XZ/jaS/K5e2f5EKykBM=
 by: Aelius Gallus - Thu, 12 Oct 2023 05:37 UTC

Jerry Peters <jerry@example.invalid> wrote:
> Aelius Gallus <alexias@nospam.mail> wrote:
>>>> Chris Elvidge <chris@mshome.net> wrote:
>>>
>>> rc.inet1.conf has a max interfaces number
>>> In rc.inet1 it defaults to 6 -- 126 is way outside this limit
>>> It's not really maximum interfaces; eth0 to eth5 are the only ones
>>> allowed by default
>>>
>>> What does 'ip a | grep ^[0-6]' say?
>>>
>>> Are you sure you deleted /etc/udev/rules.d/70-persistent-net.rules?
>>>
>> Thank you for asking again this question. In fact I changed the name
>> of the file to "Original.70-persistent-net.rules", and kept it in
>> the same directory, just in case. After your question I removed the
>> file and left the directory completely empty, and restarted the
>> laptop. To my surprise, the laptop got its IP address and eth0 was
>> back again as shown below,
>
> Add the '.original' to the *end*, udev executes any file with a .rules
> suffix, so it still got executed.
>
Thank you, to let me know that.

> If you want to prevent the whole persistant net crud from running, put
> an empty file named '75-persistent-net-generator.rules' in
> /etc/udev/rules.d. The way udev works, a file in /etc/udev/rules.d
> overrides the like named file in /lib/udev/rules.d.
>
I tried the empty file as suggested, and it also works.
All the comments in this thread is a revelation to me.
I wonder where you get all this knowledge. Thank you, once again.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor