Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184430 - static ipv6 addresses and routes do not work with sys-apps/baselayout-2.0.0_alpha3-r1 on Gentoo/FreeBSD
Summary: static ipv6 addresses and routes do not work with sys-apps/baselayout-2.0.0_a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-06 16:33 UTC by Friedrich Oslage (RETIRED)
Modified: 2010-11-30 10:17 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge_info (emerge_info,3.08 KB, text/plain)
2007-07-06 16:34 UTC, Friedrich Oslage (RETIRED)
Details
etc_conf.d_net (etc_conf.d_net,460 bytes, text/plain)
2007-07-06 16:35 UTC, Friedrich Oslage (RETIRED)
Details
gentoo_fbsd_inet6.patch (gentoo_fbsd_inet6.patch,2.06 KB, patch)
2007-07-06 16:38 UTC, Friedrich Oslage (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.