Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288889 - sys-apps/openrc-0.5.1[-oldnet] does not bring links up with iproute2
Summary: sys-apps/openrc-0.5.1[-oldnet] does not bring links up with iproute2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-13 15:42 UTC by dacook
Modified: 2009-10-15 19:49 UTC (History)
1 user (show)

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


Attachments
fix-iproute2.patch (fix-iproute2.patch,1.32 KB, text/plain)
2009-10-15 18:40 UTC, William Hubbs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dacook 2009-10-13 15:42:08 UTC
In /etc/init.d/network:runip(), 'ip address add "$@" dev "$int"' is called, but iproute does not by default bring that link up.  Hence, you end up with addressed interfaces but no link or route (which is automatically added when the link goes up).  You need to add a call to do the following as well:

ip link set "$int" up

That would also be the appropriate time to set a requested MTU.
Comment 1 William Hubbs gentoo-dev 2009-10-15 18:40:22 UTC
Created attachment 207231 [details]
fix-iproute2.patch

All,

this patch will fix the runip function as described in the previous
comment.  Also it shows an example of how to use the ifup_ethx variable
to set an MTU for an interface using iproute2.