Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 184430

Summary: static ipv6 addresses and routes do not work with sys-apps/baselayout-2.0.0_alpha3-r1 on Gentoo/FreeBSD
Product: Gentoo/Alt Reporter: Friedrich Oslage (RETIRED) <bluebird>
Component: FreeBSDAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: base-system, esigra
Priority: High    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge_info
etc_conf.d_net
gentoo_fbsd_inet6.patch

Description Friedrich Oslage (RETIRED) gentoo-dev 2007-07-06 16:33:56 UTC
I was trying to get my static ipv6 setup working but when running /etc/init.d/net.re0 start I got these error messages:

 * Bringing up interface re0
 *   Waiting for carrier (5 seconds) ..                                  [ ok ]
 *   10.136.137.66/27 ...
 *   2001:a60:f034::202/120 ...
ifconfig: 2001:a60:f034::202/120: bad value                              [ !! ]
 *   Adding routes
 *     default via 10.136.137.65 ...                                     [ ok ]
 *     default via 2001:a60:f034::201 ...
route: bad address: 2001:a60:f034::201                                   [ !! ]

The reason is that /lib/rcscripts/net/ifconfig.sh is executing "ifconfig ${iface} add ${address}" but for ipv6 it has to be "ifconfig ${iface} inet6 add ${address}". Same applies for routes(needs -inet6 as param).
Comment 1 Friedrich Oslage (RETIRED) gentoo-dev 2007-07-06 16:34:50 UTC
Created attachment 124069 [details]
emerge_info

Output of emerge --info
Comment 2 Friedrich Oslage (RETIRED) gentoo-dev 2007-07-06 16:35:36 UTC
Created attachment 124070 [details]
etc_conf.d_net

Content of /etc/conf.d/net
Comment 3 Friedrich Oslage (RETIRED) gentoo-dev 2007-07-06 16:38:47 UTC
Created attachment 124072 [details, diff]
gentoo_fbsd_inet6.patch

Patch.

It fixes static ipv6 on Gentoo/FreeBSD but it BREAKS static ipv6 on Gentoo/Linux. Therefore it should only be used on Gentoo/FreeBSD.

(I also added to part to remove all routes manually because FreeBSD's ifconfig seems not to remove inet6 routes.)
Comment 4 Friedrich Oslage (RETIRED) gentoo-dev 2007-07-06 16:49:07 UTC
This should be assigned to bsd (at) gentoo.org, not base-system :>
Comment 5 Roy Marples (RETIRED) gentoo-dev 2007-07-06 18:04:28 UTC
Fixed in our svn repo, thanks.