* [gentoo-user] dhcp error. No network. Address family not supported.
@ 2024-04-27 22:30 Dale
2024-04-27 23:04 ` Daniel Frey
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: Dale @ 2024-04-27 22:30 UTC (permalink / raw
To: gentoo-user
Howdy,
I finally got Gentoo on the old rig I had laying around. This is not
the one I usually refer to as NAS box. I named this one NAS2. LOL I
got one problem that is confusing me. I've compared it to my main rig
and the install guide and I think I got everything right but maybe I
have a typo, missed something or got some other issue. This is what the
screen says, typing by hand so I hope I don't insert a typo.
Bringing up interface enp3s0
dhcp ...
Running dhcpcd ...
dhcpcd-10.0.6 starting
main: if_opensockets: address family not supported by protocol
dhcpcd exited.
At first I thought that 10.0.6 was a typo on my part in some config
file. The usual IP address for that port is 10.0.0.6. Eventually I
figured out it was the version of dhcp. So, after getting past that, I
started checking everything network related in the install guide.
Basically, set it to use dhcp and let er rip. Well, this is the first
time dhcp has gave me any grief, which is why I think I did something
wrong.
Anyone ever seen this? Searching didn't help. This is a new kernel so
maybe I missed something in there? All options on the table. New
install and all. Oh, network works from from boot media thingy.
Thanks for any ideas. Maybe telling me where I boo boo'd. ROFL
Dale
:-) :-)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] dhcp error. No network. Address family not supported.
2024-04-27 22:30 [gentoo-user] dhcp error. No network. Address family not supported Dale
@ 2024-04-27 23:04 ` Daniel Frey
2024-04-27 23:07 ` Michael
2024-04-27 23:08 ` Daniel Frey
2 siblings, 0 replies; 12+ messages in thread
From: Daniel Frey @ 2024-04-27 23:04 UTC (permalink / raw
To: gentoo-user
On 4/27/24 15:30, Dale wrote:
> Howdy,
>
> I finally got Gentoo on the old rig I had laying around. This is not
> the one I usually refer to as NAS box. I named this one NAS2. LOL I
> got one problem that is confusing me. I've compared it to my main rig
> and the install guide and I think I got everything right but maybe I
> have a typo, missed something or got some other issue. This is what the
> screen says, typing by hand so I hope I don't insert a typo.
>
>
> Bringing up interface enp3s0
> dhcp ...
> Running dhcpcd ...
> dhcpcd-10.0.6 starting
> main: if_opensockets: address family not supported by protocol
> dhcpcd exited.
>
>
> At first I thought that 10.0.6 was a typo on my part in some config
> file. The usual IP address for that port is 10.0.0.6. Eventually I
> figured out it was the version of dhcp. So, after getting past that, I
> started checking everything network related in the install guide.
> Basically, set it to use dhcp and let er rip. Well, this is the first
> time dhcp has gave me any grief, which is why I think I did something
> wrong.
>
You probably don't have ipv6 enabled in the kernel.
There are more and more packages that will not compile with ipv6
disabled. (Or just do not provide the option to disable ipv6.)
I do not know if dhcpcd is one of them though.
Dan
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] dhcp error. No network. Address family not supported.
2024-04-27 22:30 [gentoo-user] dhcp error. No network. Address family not supported Dale
2024-04-27 23:04 ` Daniel Frey
@ 2024-04-27 23:07 ` Michael
2024-04-28 2:29 ` Dale
2024-04-27 23:08 ` Daniel Frey
2 siblings, 1 reply; 12+ messages in thread
From: Michael @ 2024-04-27 23:07 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1362 bytes --]
On Saturday, 27 April 2024 23:30:46 BST Dale wrote:
> Howdy,
>
> I finally got Gentoo on the old rig I had laying around. This is not
> the one I usually refer to as NAS box. I named this one NAS2. LOL I
> got one problem that is confusing me. I've compared it to my main rig
> and the install guide and I think I got everything right but maybe I
> have a typo, missed something or got some other issue. This is what the
> screen says, typing by hand so I hope I don't insert a typo.
>
>
> Bringing up interface enp3s0
> dhcp ...
> Running dhcpcd ...
> dhcpcd-10.0.6 starting
> main: if_opensockets: address family not supported by protocol
> dhcpcd exited.
>
>
> At first I thought that 10.0.6 was a typo on my part in some config
> file. The usual IP address for that port is 10.0.0.6. Eventually I
> figured out it was the version of dhcp. So, after getting past that, I
> started checking everything network related in the install guide.
> Basically, set it to use dhcp and let er rip. Well, this is the first
> time dhcp has gave me any grief, which is why I think I did something
> wrong.
>
> Anyone ever seen this? Searching didn't help. This is a new kernel so
> maybe I missed something in there?
Yes, most likely.
What does this show:
grep SOCKET /usr/src/linux/.config
or this:
grep PACKET /usr/src/linux/.config
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] dhcp error. No network. Address family not supported.
2024-04-27 22:30 [gentoo-user] dhcp error. No network. Address family not supported Dale
2024-04-27 23:04 ` Daniel Frey
2024-04-27 23:07 ` Michael
@ 2024-04-27 23:08 ` Daniel Frey
2 siblings, 0 replies; 12+ messages in thread
From: Daniel Frey @ 2024-04-27 23:08 UTC (permalink / raw
To: gentoo-user
On 4/27/24 15:30, Dale wrote:
> Howdy,
>
> I finally got Gentoo on the old rig I had laying around. This is not
> the one I usually refer to as NAS box. I named this one NAS2. LOL I
> got one problem that is confusing me. I've compared it to my main rig
> and the install guide and I think I got everything right but maybe I
> have a typo, missed something or got some other issue. This is what the
> screen says, typing by hand so I hope I don't insert a typo.
>
>
> Bringing up interface enp3s0
> dhcp ...
> Running dhcpcd ...
> dhcpcd-10.0.6 starting
> main: if_opensockets: address family not supported by protocol
> dhcpcd exited.
>
Another thought: did you miss CONFIG_PACKET in networking options? That
possibly could spit that error out too.
Dan
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] dhcp error. No network. Address family not supported.
2024-04-27 23:07 ` Michael
@ 2024-04-28 2:29 ` Dale
2024-04-28 9:58 ` Michael
0 siblings, 1 reply; 12+ messages in thread
From: Dale @ 2024-04-28 2:29 UTC (permalink / raw
To: gentoo-user
Michael wrote:
> On Saturday, 27 April 2024 23:30:46 BST Dale wrote:
>> Howdy,
>>
>> I finally got Gentoo on the old rig I had laying around. This is not
>> the one I usually refer to as NAS box. I named this one NAS2. LOL I
>> got one problem that is confusing me. I've compared it to my main rig
>> and the install guide and I think I got everything right but maybe I
>> have a typo, missed something or got some other issue. This is what the
>> screen says, typing by hand so I hope I don't insert a typo.
>>
>>
>> Bringing up interface enp3s0
>> dhcp ...
>> Running dhcpcd ...
>> dhcpcd-10.0.6 starting
>> main: if_opensockets: address family not supported by protocol
>> dhcpcd exited.
>>
>>
>> At first I thought that 10.0.6 was a typo on my part in some config
>> file. The usual IP address for that port is 10.0.0.6. Eventually I
>> figured out it was the version of dhcp. So, after getting past that, I
>> started checking everything network related in the install guide.
>> Basically, set it to use dhcp and let er rip. Well, this is the first
>> time dhcp has gave me any grief, which is why I think I did something
>> wrong.
>>
>> Anyone ever seen this? Searching didn't help. This is a new kernel so
>> maybe I missed something in there?
> Yes, most likely.
>
> What does this show:
>
> grep SOCKET /usr/src/linux/.config
>
> or this:
>
> grep PACKET /usr/src/linux/.config
OK. Some of those were turned off. I cut on anything that looked like
something I'd need. Recompiled the kernel and rebooted. What do you
know, it worked.
Now some questions, why is something that most anyone would need turned
off by default? Why is it not mentioned along with other things in the
install docs? I went through the install docs for those options needed,
I don't recall seeing those. The only things I left out were the UEFI
thingy stuff. I so dread that UEFI thingy on the new build. o_O
Thanks to all. It running, apparently with IPv6 at that. O_O
Dale
:-) :-)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] dhcp error. No network. Address family not supported.
2024-04-28 2:29 ` Dale
@ 2024-04-28 9:58 ` Michael
2024-04-29 15:11 ` Dale
0 siblings, 1 reply; 12+ messages in thread
From: Michael @ 2024-04-28 9:58 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1836 bytes --]
On Sunday, 28 April 2024 03:29:09 BST Dale wrote:
> Michael wrote:
> > On Saturday, 27 April 2024 23:30:46 BST Dale wrote:
[snip ...]
> >> Anyone ever seen this? Searching didn't help. This is a new kernel so
> >> maybe I missed something in there?
> >
> > Yes, most likely.
> >
> > What does this show:
> >
> > grep SOCKET /usr/src/linux/.config
> >
> > or this:
> >
> > grep PACKET /usr/src/linux/.config
>
> OK. Some of those were turned off. I cut on anything that looked like
> something I'd need. Recompiled the kernel and rebooted. What do you
> know, it worked.
Cool :-)
> Now some questions, why is something that most anyone would need turned
> off by default? Why is it not mentioned along with other things in the
> install docs? I went through the install docs for those options needed,
> I don't recall seeing those.
I don't know what the devs' thinking on this has been, but it could be such
options are not enabled by default because the network configuration can
affect security. For a binary desktop distro, more generic options would be
preconfigured, as I expect is the case with genkernel.
> The only things I left out were the UEFI
> thingy stuff. I so dread that UEFI thingy on the new build. o_O
I think UEFI is rather simpler to set up, no "BIOS Boot Partition" required.
Just create a partition with type ef00 (GUID type C12A7328-F81F-11D2-
BA4B-00A0C93EC93B - EFI system partition) and format it as FAT32, before you
mount it as /efi.
The handbook details how to set up a UEFI system with ESP, so spend some time
reading through the docs before you jump in and consider options and
permutations if you will be using openrc or systemd.
> Thanks to all. It running, apparently with IPv6 at that. O_O
Consider your firewall settings to include IPv6, if IPv6 is enabled.
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] dhcp error. No network. Address family not supported.
2024-04-28 9:58 ` Michael
@ 2024-04-29 15:11 ` Dale
2024-04-29 20:19 ` Peter Humphrey
0 siblings, 1 reply; 12+ messages in thread
From: Dale @ 2024-04-29 15:11 UTC (permalink / raw
To: gentoo-user
Michael wrote:
> On Sunday, 28 April 2024 03:29:09 BST Dale wrote:
>> Michael wrote:
>>> On Saturday, 27 April 2024 23:30:46 BST Dale wrote:
> [snip ...]
>
>>>> Anyone ever seen this? Searching didn't help. This is a new kernel so
>>>> maybe I missed something in there?
>>> Yes, most likely.
>>>
>>> What does this show:
>>>
>>> grep SOCKET /usr/src/linux/.config
>>>
>>> or this:
>>>
>>> grep PACKET /usr/src/linux/.config
>> OK. Some of those were turned off. I cut on anything that looked like
>> something I'd need. Recompiled the kernel and rebooted. What do you
>> know, it worked.
> Cool :-)
>
>
>> Now some questions, why is something that most anyone would need turned
>> off by default? Why is it not mentioned along with other things in the
>> install docs? I went through the install docs for those options needed,
>> I don't recall seeing those.
> I don't know what the devs' thinking on this has been, but it could be such
> options are not enabled by default because the network configuration can
> affect security. For a binary desktop distro, more generic options would be
> preconfigured, as I expect is the case with genkernel.
>
>
>> The only things I left out were the UEFI
>> thingy stuff. I so dread that UEFI thingy on the new build. o_O
> I think UEFI is rather simpler to set up, no "BIOS Boot Partition" required.
> Just create a partition with type ef00 (GUID type C12A7328-F81F-11D2-
> BA4B-00A0C93EC93B - EFI system partition) and format it as FAT32, before you
> mount it as /efi.
>
> The handbook details how to set up a UEFI system with ESP, so spend some time
> reading through the docs before you jump in and consider options and
> permutations if you will be using openrc or systemd.
>
I saw the instructions when doing the old Dell install. My dread is,
I've never done one before. One good thing tho, it's been around a good
while now. All the bugs and kinks in the install docs have been worked
out by now. Follow the docs and it should work.
>> Thanks to all. It running, apparently with IPv6 at that. O_O
> Consider your firewall settings to include IPv6, if IPv6 is enabled.
>
When I was on DSL, no IPv6 at all. New fiber has it tho. Of course, it
is all new down to the cables. Kinda be stupid not to include something
that will be a necessity before to long anyway. Almost feel sorry for
the DSL folks. I tried to tell them competition was going to come and
clean their clock. They lost almost all their customers to fiber within
two months. Cheaper and around 20 times faster. I might add, down time
for maintenance is announced in advance. Even that is rare. The DSL
folks, it just went down. No warning or anything. Only bad side of
IPv6, it's a lot of typing for all that. o_O
Dale
:-) :-)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] dhcp error. No network. Address family not supported.
2024-04-29 15:11 ` Dale
@ 2024-04-29 20:19 ` Peter Humphrey
2024-04-29 20:28 ` Dale
0 siblings, 1 reply; 12+ messages in thread
From: Peter Humphrey @ 2024-04-29 20:19 UTC (permalink / raw
To: gentoo-user
On Monday, 29 April 2024 16:11:31 BST Dale wrote:
> Only bad side of IPv6, it's a lot of typing for all that. o_O
There's a worse aspect: you have to undersand what you're doing. Or you can
just tell your firewall not to allow any IPv6 packets in or out at all.
--
Regards,
Peter.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] dhcp error. No network. Address family not supported.
2024-04-29 20:19 ` Peter Humphrey
@ 2024-04-29 20:28 ` Dale
2024-04-29 20:35 ` Michael
0 siblings, 1 reply; 12+ messages in thread
From: Dale @ 2024-04-29 20:28 UTC (permalink / raw
To: gentoo-user
Peter Humphrey wrote:
> On Monday, 29 April 2024 16:11:31 BST Dale wrote:
>
>> Only bad side of IPv6, it's a lot of typing for all that. o_O
> There's a worse aspect: you have to undersand what you're doing. Or you can
> just tell your firewall not to allow any IPv6 packets in or out at all.
>
When I said a lot of typing, I was thinking about if one has to use IPv6
to ssh into a rig. As it is here, ssh dale@10.0.0.6 is it. Now replace
that IP with a IPv6 address. I'm hoping for a copy and paste option or
tab completion would be nice. Let's not even get into the increased
odds of a typo. After all, one wrong character, no worky. :/
Given that we running out of IPv4 tho, IPv6 it is. Something had to
change. I guess IPv6 was the best long term option. Still, gonna be a
head scratcher for some of us.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] dhcp error. No network. Address family not supported.
2024-04-29 20:28 ` Dale
@ 2024-04-29 20:35 ` Michael
2024-04-29 21:03 ` Dale
2024-04-30 8:43 ` Sergey Filatov
0 siblings, 2 replies; 12+ messages in thread
From: Michael @ 2024-04-29 20:35 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1100 bytes --]
On Monday, 29 April 2024 21:28:35 BST Dale wrote:
> Peter Humphrey wrote:
> > On Monday, 29 April 2024 16:11:31 BST Dale wrote:
> >> Only bad side of IPv6, it's a lot of typing for all that. o_O
> >
> > There's a worse aspect: you have to undersand what you're doing. Or you
> > can
> > just tell your firewall not to allow any IPv6 packets in or out at all.
>
> When I said a lot of typing, I was thinking about if one has to use IPv6
> to ssh into a rig. As it is here, ssh dale@10.0.0.6 is it. Now replace
> that IP with a IPv6 address. I'm hoping for a copy and paste option or
> tab completion would be nice. Let's not even get into the increased
> odds of a typo. After all, one wrong character, no worky. :/
>
> Given that we running out of IPv4 tho, IPv6 it is. Something had to
> change. I guess IPv6 was the best long term option. Still, gonna be a
> head scratcher for some of us.
>
> Dale
>
> :-) :-)
If we're talking about connecting regularly to the same IP you can set it up
as an alias in your ~/.ssh/config and not have to invoke IP addresses on the
CLI at all.
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] dhcp error. No network. Address family not supported.
2024-04-29 20:35 ` Michael
@ 2024-04-29 21:03 ` Dale
2024-04-30 8:43 ` Sergey Filatov
1 sibling, 0 replies; 12+ messages in thread
From: Dale @ 2024-04-29 21:03 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1973 bytes --]
Michael wrote:
> On Monday, 29 April 2024 21:28:35 BST Dale wrote:
>> Peter Humphrey wrote:
>>> On Monday, 29 April 2024 16:11:31 BST Dale wrote:
>>>> Only bad side of IPv6, it's a lot of typing for all that. o_O
>>> There's a worse aspect: you have to undersand what you're doing. Or you
>>> can
>>> just tell your firewall not to allow any IPv6 packets in or out at all.
>> When I said a lot of typing, I was thinking about if one has to use IPv6
>> to ssh into a rig. As it is here, ssh dale@10.0.0.6 is it. Now replace
>> that IP with a IPv6 address. I'm hoping for a copy and paste option or
>> tab completion would be nice. Let's not even get into the increased
>> odds of a typo. After all, one wrong character, no worky. :/
>>
>> Given that we running out of IPv4 tho, IPv6 it is. Something had to
>> change. I guess IPv6 was the best long term option. Still, gonna be a
>> head scratcher for some of us.
>>
>> Dale
>>
>> :-) :-)
> If we're talking about connecting regularly to the same IP you can set it up
> as an alias in your ~/.ssh/config and not have to invoke IP addresses on the
> CLI at all.
I'd likely just add it to the host file thing and then type in the
name. Right now it is NAS or NAS2. Pretty short.
While I'm sure whoever came up with IPv6 tried to keep it simple, I
suspect they also wanted to make the newer method work long term. Quite
often, long term solutions get complicated. If that is the case, it
explains a lot. 10.0.0.6 is way simple. fe80::1eef:2ca0:c378:2eec is
anything but simple. Now try being a admin and having to remember a few
dozen of those. ROFL Poor thang. It's a good thing there are options
like your alias one or the hosts file one. We'd have a lot of bald
people running around. Admins and some other geeky types would be
pulling out their hair. :/
Dale
:-) :-)
P. S. the perl cleaner thing fixed the whole problem. Everything is as
it should be, I think.
[-- Attachment #2: Type: text/html, Size: 3329 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] dhcp error. No network. Address family not supported.
2024-04-29 20:35 ` Michael
2024-04-29 21:03 ` Dale
@ 2024-04-30 8:43 ` Sergey Filatov
1 sibling, 0 replies; 12+ messages in thread
From: Sergey Filatov @ 2024-04-30 8:43 UTC (permalink / raw
To: gentoo-user
On 30.04.2024 0:35, Michael wrote:
> On Monday, 29 April 2024 21:28:35 BST Dale wrote:
>> Peter Humphrey wrote:
>>> On Monday, 29 April 2024 16:11:31 BST Dale wrote:
>>>> Only bad side of IPv6, it's a lot of typing for all that. o_O
>>>
>>> There's a worse aspect: you have to undersand what you're doing. Or you
>>> can
>>> just tell your firewall not to allow any IPv6 packets in or out at all.
>>
>> When I said a lot of typing, I was thinking about if one has to use IPv6
>> to ssh into a rig. As it is here, ssh dale@10.0.0.6 is it. Now replace
>> that IP with a IPv6 address. I'm hoping for a copy and paste option or
>> tab completion would be nice. Let's not even get into the increased
>> odds of a typo. After all, one wrong character, no worky. :/
>>
>> Given that we running out of IPv4 tho, IPv6 it is. Something had to
>> change. I guess IPv6 was the best long term option. Still, gonna be a
>> head scratcher for some of us.
>>
>> Dale
>>
>> :-) :-)
>
> If we're talking about connecting regularly to the same IP you can set it up
> as an alias in your ~/.ssh/config and not have to invoke IP addresses on the
> CLI at all.
In my case, given that it's publicly routable anyway I just set the AAAA
records on my DNS server for my IPv6 enabled servers.
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2024-04-30 8:43 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-27 22:30 [gentoo-user] dhcp error. No network. Address family not supported Dale
2024-04-27 23:04 ` Daniel Frey
2024-04-27 23:07 ` Michael
2024-04-28 2:29 ` Dale
2024-04-28 9:58 ` Michael
2024-04-29 15:11 ` Dale
2024-04-29 20:19 ` Peter Humphrey
2024-04-29 20:28 ` Dale
2024-04-29 20:35 ` Michael
2024-04-29 21:03 ` Dale
2024-04-30 8:43 ` Sergey Filatov
2024-04-27 23:08 ` Daniel Frey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox