Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcpcd: Address family not supported by protocol
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Natureshadow
n00b
n00b


Joined: 16 Mar 2006
Posts: 56
Location: Germany

PostPosted: Sun Mar 23, 2008 12:12 am    Post subject: dhcpcd: Address family not supported by protocol Reply with quote

Hi community,

I just installed Gentoo (stage3, i686) on a new box and configured the kernel manually. Now, when trying to start net.eth0, dhcpcd complains:

Code:
Address family not supported by protocol


My idea is that dhcpcd compiles with IPv6 by default, but I do not have IPv6 support in the kernel. Can this be the reason for the problem?

Of course I could try, but before re-emerging dhcpcd and most likely some packages more on that slow machine, I would like to know whether that would leave me with the same error in the end and be useless .)

Regards,
Nik
Back to top
View user's profile Send private message
blu3bird
Retired Dev
Retired Dev


Joined: 04 Oct 2003
Posts: 612
Location: Munich, Germany

PostPosted: Sun Mar 23, 2008 1:04 am    Post subject: Reply with quote

Sounds like your kernel is missing CONFIG_PACKET(Networking -> Networking options -> Packet socket).
_________________
Black Holes are created when God divides by zero!
Back to top
View user's profile Send private message
Natureshadow
n00b
n00b


Joined: 16 Mar 2006
Posts: 56
Location: Germany

PostPosted: Sun Mar 23, 2008 8:24 am    Post subject: Reply with quote

Okay, then I will compile that in ... and perhaps I will re-emerge dhcpcd with USE="-ipv6" afterwards if it doesn't work.

-nik
Back to top
View user's profile Send private message
Natureshadow
n00b
n00b


Joined: 16 Mar 2006
Posts: 56
Location: Germany

PostPosted: Sun Mar 23, 2008 11:29 am    Post subject: Reply with quote

Tried that now, no luck. I couldn't find the Packet Socket option in menuconfig, so I enabled CONFIG_PACKET by hand ...

Any other ideas?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6740
Location: Blighty

PostPosted: Sun Mar 23, 2008 9:58 pm    Post subject: Reply with quote

How sure are you that eth0 is the right interface?
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Natureshadow
n00b
n00b


Joined: 16 Mar 2006
Posts: 56
Location: Germany

PostPosted: Mon Mar 24, 2008 7:45 pm    Post subject: Reply with quote

REALLY sure. Let's say it like this ...

- There is only one interface in the machine
- The interface works perfectly except for dhcp
- I f I configure a static IP, there are no problems ....
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6740
Location: Blighty

PostPosted: Mon Mar 24, 2008 7:54 pm    Post subject: Reply with quote

Could you try another dhcp client, like say pump or dhclient? If they work, please state which dhcpcd version you're using. If 3.2.3 file a bug at http://bugs.marples.name, if not, try 3.2.3.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Natureshadow
n00b
n00b


Joined: 16 Mar 2006
Posts: 56
Location: Germany

PostPosted: Mon Mar 24, 2008 8:38 pm    Post subject: Reply with quote

Hmmm ... will try that.

Anyway, I just emerged netkit-telnetd, and found out that telnet does not work either, with the same error message. However, SSH, PING and such do ...

As this box (which I am installing for a friend of mine) is intended to be a game server, we installed STEAM (HLDS) and Counter-Strike Source. The server starts up, but is not reachable over the network. I think that this might be related to the "Address family ..." problem ...

Any hints?

-nik
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6740
Location: Blighty

PostPosted: Mon Mar 24, 2008 8:50 pm    Post subject: Reply with quote

There should be a string prefixing that error message - could you post it?
But it's starting to sound like you missed something in your kernel config, like say TCP/IP or something.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Natureshadow
n00b
n00b


Joined: 16 Mar 2006
Posts: 56
Location: Germany

PostPosted: Mon Mar 24, 2008 9:01 pm    Post subject: Reply with quote

I don't think I missed TCP/IP ... I think then the rest of it wouldn't work either.

http://pub.naturalnet.de/~nik/kewi_config.txt

That's the config, perhaps you can find something that is missing?

-nik
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6740
Location: Blighty

PostPosted: Tue Mar 25, 2008 8:42 am    Post subject: Reply with quote

I wouldn't know what to look for :)
but seriously, post the full error message as it should be prefixed by socket:, bind: or something else. From other applications that have the same error as well.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Natureshadow
n00b
n00b


Joined: 16 Mar 2006
Posts: 56
Location: Germany

PostPosted: Tue Mar 25, 2008 11:30 am    Post subject: Reply with quote

It says:

Code:

socket: eth0, Address family not supported by protocol


-nik
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6740
Location: Blighty

PostPosted: Tue Mar 25, 2008 2:26 pm    Post subject: Reply with quote

OK, that means that your kernel does not support AF_INET socket protocol. That is bad. I don't know what kernel option to need to enable to get it.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Natureshadow
n00b
n00b


Joined: 16 Mar 2006
Posts: 56
Location: Germany

PostPosted: Tue Mar 25, 2008 6:50 pm    Post subject: Reply with quote

I will look at that when I get access to the box next time.

Thank you!
Back to top
View user's profile Send private message
liuspider
Apprentice
Apprentice


Joined: 03 Feb 2003
Posts: 237

PostPosted: Sun Mar 30, 2008 7:46 pm    Post subject: Reply with quote

I had exact the same error and I fixed it by compiling in "networking -> networking options->package socket" (I used to have it as a module)
_________________
BLOG: http://liucougar.scim-im.org
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3661
Location: Hamburg

PostPosted: Sun Mar 30, 2008 7:57 pm    Post subject: Reply with quote

liuspider wrote:
I had exact the same error and I fixed it by compiling in "networking -> networking options->package socket" (I used to have it as a module)
Yep, as the help of make menuconfig says it :
Code:
  │ To compile this driver as a module, choose M here: the module will be 
  │ called unix.  Note that several important services won't work
  │ correctly if you say M here and then neglect to load the module.
  │           
  │ Say Y unless you know what you are doing.   
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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