Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73844 - ipv6-only interface does not start up
Summary: ipv6-only interface does not start up
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 66472
  Show dependency tree
 
Reported: 2004-12-08 14:44 UTC by Jan Oravec
Modified: 2005-01-30 23:59 UTC (History)
2 users (show)

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


Attachments
fixes adding IPv6 addresses beginning with a letter (net.lo.patch,435 bytes, patch)
2005-01-13 16:04 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Oravec 2004-12-08 14:44:12 UTC
IPv6-only interfaces does not start up on boot. Baselayout scripts tries to first set up all IP addresses on the interface and then set the interface up. This approach is not valid for IPv6, because kernel does not accept any IPv6 addresses when interface is down. This was tested with iproute2 module on sys-apps/baselayout-1.11.7-r2.

The result is:

# /etc/init.d/net.dummy0 start
 * Starting dummy0
 *    Bringing up dummy0
 *       3ffe:80e0::2e0:81ff:fe52:f2ca/128
RTNETLINK answers: Network is down              [ !! ]


# cat /etc/conf.d/net
modules=( "iproute2" )


config_dummy0=(
        "3ffe:80e0::2e0:81ff:fe52:f2ca/128"
)


Reproducible: Always
Steps to Reproduce:
See details.
Actual Results:  
See details.

Expected Results:  
It should set up the interface correctly.
Comment 1 Georgi Georgiev 2004-12-16 07:38:54 UTC
I was about to report a similar problem. On my machine, the ipv6 address for the interface is not added at all, though the ipv4 addresses are.
The problem seems to be that IPv6 addresses can only be added on a UP-ed interface. This is how I edited my /etc/conf.d/net to work around the problem, until it eventually gets fixed.

modules=( "iproute2" )
postup() {
        if [ ${IFACE} = "eth0" ]; then
                /sbin/ip addr add dev ${IFACE} "2001:240:516:1::2/64" 
        fi
        return 0
}
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-01-13 16:03:35 UTC
This problem should be fixed by baselayout-1.11.8

However, IPv6 addresses starting with a letter won't get added ok - this will be fixed by baselayout-1.11.9
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-01-13 16:04:17 UTC
Created attachment 48431 [details, diff]
fixes adding IPv6 addresses beginning with a letter
Comment 4 Roy Marples (RETIRED) gentoo-dev 2005-01-30 23:59:07 UTC
Fixed by baselayout-1.11.9