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

Bug 543058

Summary: netifrc: bridge wont add default route
Product: Gentoo Hosted Projects Reporter: j.habenicht
Component: netifrcAssignee: netifrc Team <netifrc>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: netifrc:bridge
Package list:
Runtime testing required: ---
Attachments: /etc/conf.d/net

Description j.habenicht 2015-03-12 12:11:43 UTC
Using network bridge does not add a default route to gateway:

I use a bridge to connect a bonding device with 2 tap devices
bridge_br0="bond0 tap0 tap1"
The bridge is configured for an IP address and default routing
config_br0="172.18.18.2/24"
route_br0="default via 172.18.18.1"
The bonding device and tap devices received NULL configuration
config_tap0=null
config_tap1=null
config_bond0=null


But the route does not show the default
# route -n
Kernel IP Routentabelle
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
172.18.18.0     0.0.0.0         255.255.255.0   U     0      0        0 br0

I have to add a defualt route manually in /etc/local.d/
# cat /etc/local.d/route.start
#!/bin/sh
route add -net default gw 172.18.18.1

Installed sys-apps/openrc-0.13.11 and net-misc/netifrc-0.3.1



Reproducible: Always
Comment 1 j.habenicht 2015-03-12 12:16:41 UTC
Created attachment 398734 [details]
/etc/conf.d/net
Comment 2 j.habenicht 2016-10-31 09:59:23 UTC
Please close this bug as "WONT FIX"! (Would do it myself, but I can't. And would not mark this as RESOLVED because it is not)


Having a close look at my configuration there is a clear bug in it:
route_br0="default via 172.18.18.1"
needs to be written as
routes_br0="default via 172.18.18.1"

My fault.
I am sorry for this.


regards
J-