Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Adding IPv4 AND IPv6 via /etc/conf.d/net error [solved]
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
Duncan Mac Leod
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 251
Location: Germany

PostPosted: Sat Apr 26, 2014 3:22 pm    Post subject: Adding IPv4 AND IPv6 via /etc/conf.d/net error [solved] Reply with quote

Hi!

I am using /etc/conf.d/net to add my IPs. (Kernel gentoo-sources-3.10.37/udev-208)

Works great with IPv4 only.

Now, I have added one IPv6 address, like:

config_eth0="71.238.82.218/32 71.238.12.122/32 71.238.12.123/32 2c01:688:97:1001:6bfa:53da:0:1/128"

and I got an error -> RTNETLINK answers: Operation not supported

If I add the IP manually after booting, like:

ifconfig eth0 inet6 add 2c01:688:97:1001:6bfa:53da:0:1/128

...the IP is added and everything works.

Any ideas?


Last edited by Duncan Mac Leod on Sat Apr 26, 2014 4:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Sat Apr 26, 2014 3:29 pm    Post subject: Reply with quote

And you're sure it's the IPv6 address specifically? I have mine broken down into separate lines.

Code:
  1 modules="iproute2"
  2
  3 # Virtual interface
  4 config_eth0="208.111.39.92/24
  5              2607:f740:0:3f::f23/64"
  6 routes_eth0="default via 208.111.39.1
  7              default via 2607:f740:0:3f::1"
  8
  9 # The network scripts are now part of net-misc/netifrc
 10 # In order to avoid sys-apps/openrc-0.12 from removing this file, this comment was
 11 # added; you can safely remove this comment.  Please see
 12 # /usr/share/doc/netifrc*/README* for more information.
Back to top
View user's profile Send private message
Duncan Mac Leod
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 251
Location: Germany

PostPosted: Sat Apr 26, 2014 3:37 pm    Post subject: Reply with quote

Now, my config is broken down into separate lines, too.

Same error! Are any specific kernel options necessary for adding IPs via /etc/conf.d/net ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42583
Location: 56N 3W

PostPosted: Sat Apr 26, 2014 3:46 pm    Post subject: Reply with quote

Duncan Mac Leod,

Code:
modules="iproute2"

May make a difference. You will need to
Code:
emerge iproute2
to test
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Duncan Mac Leod
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 251
Location: Germany

PostPosted: Sat Apr 26, 2014 3:56 pm    Post subject: Reply with quote

There was no line in /etc/conf.d/net with modules="" (all were commented out, so it should use iproute2 per default)

Now I have one line with modules="iproute2" - same error as before...

I guess iproute2 need some specific kernel options...
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42583
Location: 56N 3W

PostPosted: Sat Apr 26, 2014 4:09 pm    Post subject: Reply with quote

Duncan Mac Leod,

You only need IPv6 support as far as I know.
Is your IPv6 built in or as a module?

If its a module, are you sure its loaded before the IPv6 address is allocated?
A few years ago I had problems related to building IPv6 as a module.
Booting just hung.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Duncan Mac Leod
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 251
Location: Germany

PostPosted: Sat Apr 26, 2014 4:58 pm    Post subject: Reply with quote

modules_3="ipv6" in /etc/conf.d/modules did the trick 8)
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