Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iproute2 won't assign IPv6 address (Invalid argument)
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
fuzzykiller
n00b
n00b


Joined: 09 Nov 2008
Posts: 44
Location: Karlsruhe, Germany

PostPosted: Thu Jan 27, 2011 4:22 pm    Post subject: iproute2 won't assign IPv6 address (Invalid argument) Reply with quote

System:
Qemu KVM, tried virtio and e1000 net.
gentoo-source-2.6.36-r5
NFS root

Problem:
vpn linux # ip addr add 2a01:...::1:4 dev eth0
RTNETLINK answers: Invalid argument

The very same command works perfectly fine on the host system.

ip -6 addr:
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
inet6 fe80::5054:ff:fe12:3457/64 scope link
valid_lft forever preferred_lft forever

As you can see, lo has no IPv6 address. Maybe this is related? Could it also be related to the kernel level autoconfig?

Kernel config

/etc/conf.d/net:
modules=( "iproute2" )
config_eth0=( "noop" )

/proc/cmdline:
ip=10.5.0.3:10.5.0.1:10.5.0.1:255.255.255.0 root=/dev/nfs rw nfsroot=10.5.0.1:/mnt/data/VMs/Gentoo/FS
Back to top
View user's profile Send private message
fuzzykiller
n00b
n00b


Joined: 09 Nov 2008
Posts: 44
Location: Karlsruhe, Germany

PostPosted: Thu Feb 03, 2011 6:02 pm    Post subject: Reply with quote

Anyone? :(
Back to top
View user's profile Send private message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 418
Location: San Diego, California USA

PostPosted: Thu Feb 03, 2011 6:34 pm    Post subject: Reply with quote

"2a01:...::1:4" isn't a valid IPv6 address. Are you just summarizing?
Back to top
View user's profile Send private message
fuzzykiller
n00b
n00b


Joined: 09 Nov 2008
Posts: 44
Location: Karlsruhe, Germany

PostPosted: Thu Feb 03, 2011 8:44 pm    Post subject: Reply with quote

Yes. The actual address should remain more or less secret, if possible.
Back to top
View user's profile Send private message
nemasu
n00b
n00b


Joined: 17 Mar 2011
Posts: 6

PostPosted: Wed Apr 20, 2011 4:18 pm    Post subject: Reply with quote

I know this is an old post, but I was having the same problems, what fixed it for me was running

/etc/init.d/net.lo restart

and i was able to add ipv6 addresses after that.
Back to top
View user's profile Send private message
fuzzykiller
n00b
n00b


Joined: 09 Nov 2008
Posts: 44
Location: Karlsruhe, Germany

PostPosted: Wed Apr 20, 2011 6:39 pm    Post subject: Reply with quote

That's a no-go when using NFS for the root filesystem.
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


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

PostPosted: Thu Apr 21, 2011 3:21 am    Post subject: Reply with quote

This is mainly off topic, but I highly suggest not relying on secrecy to keep yourself safe. The Linux kernel includes support for IPv6 Privacy Extensions.
Back to top
View user's profile Send private message
fuzzykiller
n00b
n00b


Joined: 09 Nov 2008
Posts: 44
Location: Karlsruhe, Germany

PostPosted: Thu Apr 21, 2011 5:09 am    Post subject: Reply with quote

That's not the point. It's a server anyway, so the privacy extensions are also not an option. :D
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


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

PostPosted: Wed Apr 27, 2011 3:54 am    Post subject: Reply with quote

Is IPv6 a module?
Back to top
View user's profile Send private message
fuzzykiller
n00b
n00b


Joined: 09 Nov 2008
Posts: 44
Location: Karlsruhe, Germany

PostPosted: Wed Apr 27, 2011 5:41 am    Post subject: Reply with quote

No, everything is built directly into the kernel.
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