Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 396017 - sys-apps/openrc: iproute: Add multiple ip addresses with scopes to the interface
Summary: sys-apps/openrc: iproute: Add multiple ip addresses with scopes to the interface
Status: RESOLVED DUPLICATE of bug 395469
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard: openrc:oldnet
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-25 21:19 UTC by nordaux
Modified: 2013-04-25 23:08 UTC (History)
0 users

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


Attachments
patch to correct this error in /lib64/rc/net/iproute2.sh (iproute2.sh_fix_params.patch,445 bytes, patch)
2011-12-25 21:26 UTC, nordaux
Details | Diff

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