Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 543058 - netifrc: bridge wont add default route
Summary: netifrc: bridge wont add default route
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: netifrc (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: netifrc Team
URL:
Whiteboard: netifrc:bridge
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-12 12:11 UTC by j.habenicht
Modified: 2016-11-27 23:54 UTC (History)
0 users

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


Attachments
/etc/conf.d/net (file_543058.txt,420 bytes, text/plain)
2015-03-12 12:16 UTC, j.habenicht
Details

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