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

Bug 396429

Summary: macvlan net module does not bring its interface up
Product: Gentoo Hosted Projects Reporter: Marien Zwart (RETIRED) <marienz>
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: openrc:oldnet
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 394205    
Attachments: bring the macvlan device up

Description Marien Zwart (RETIRED) gentoo-dev 2011-12-29 16:45:50 UTC
Created attachment 297313 [details]
bring the macvlan device up

The macvlan net module does not bring the interface it creates up. In my setup (eth0 left unconfigured, a macvlan device as primary network interface) this is undesirable. The attached patch (with the _up call stolen from the tuntap module) makes the following /etc/conf.d/net work:

config_eth0="null"

macvlan_macvlan0="eth0"
mode_macvlan0="bridge"

config_macvlan0="192.168.1.7/24"
routes_macvlan0="default via 192.168.1.254"
Comment 1 William Hubbs gentoo-dev 2011-12-30 01:22:55 UTC
This is applied in commit 2471d74.

Thanks for the report and the patch. :-)