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

Bug 396017

Summary: sys-apps/openrc: iproute: Add multiple ip addresses with scopes to the interface
Product: Gentoo Hosted Projects Reporter: nordaux <nordaux>
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: openrc:oldnet
Package list:
Runtime testing required: ---
Attachments: patch to correct this error in /lib64/rc/net/iproute2.sh

Description nordaux 2011-12-25 21:19:30 UTC
The script /lib64/rc/net/iproute2.sh in function _add_address() 
does not correctly parse the parameters with values like scopes,label, etc ...

Reproducible: Always

Steps to Reproduce:
1.Install new system
2.Configure interface with multiple addresses with parameters
3.Reboot

cat /var/log/rc.log
..........................................
 * Bringing up interface eth0
 *   172.31.255.248/24 ...
Error: either "local" is duplicate, or "eth0_internal" is a garbage.
 [ !! ]
 *   86.192.21.248/32 ...
Error: either "local" is duplicate, or "eth0_external" is a garbage.
 [ !! ]
 * ERROR: net.eth0 failed to start
 * ERROR: cannot start netmount as net.eth0 would not start



Expected Results:  
here's my config:

modules="iproute2"

config_eth0="172.31.255.248/24 scope link label eth0_internal
	     86.192.21.248/32 scope global label eth0_external
	    "
routes_eth0="default via 172.31.255.1"
dns_servers_eth0="172.31.255.1"
Comment 1 nordaux 2011-12-25 21:26:50 UTC
Created attachment 296929 [details, diff]
patch to correct this error in /lib64/rc/net/iproute2.sh

Applying attached patch in /etc/portage/patches/sys-apps/openrc/ cleanly fixing problem.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-12-25 22:48:29 UTC
This is fixed already...

*** This bug has been marked as a duplicate of bug 395469 ***