Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with routing on a simple bridge setup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Fog_Watch
Apprentice
Apprentice


Joined: 24 Jul 2006
Posts: 210
Location: Utility Muffin Research Kitchen

PostPosted: Wed Nov 04, 2015 8:23 am    Post subject: Problems with routing on a simple bridge setup Reply with quote

I have a one-interface machine. I'm attempting to put a bridge on top of net0 with brctl and OpenRC in preparation to making some LXC containers.
/etc/conf.d/net:
config_net0="null"
config_br0="dhcp"
brctl_br0="setfd 0
sethello 10
stp off"
bridge_br0="net0"

However, when it comes up the machine has a superfluous net0 statement in the routing table:
Code:
# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.1.1     0.0.0.0         UG    4      0        0 br0
loopback        *               255.0.0.0       U     0      0        0 lo
192.168.1.0     *               255.255.255.0   U     0      0        0 net0
192.168.1.0     *               255.255.255.0   U     4      0        0 br0


In fact, routing only works with the following:
/etc/local.d/local.start:
route del -net 192.168.1.0 netmask 255.255.255.0 net0

Example
Code:
# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         hostname        0.0.0.0         UG    4      0        0 br0
loopback        *               255.0.0.0       U     0      0        0 lo
192.168.1.0     *               255.255.255.0   U     4      0        0 br0

This is plainly silly. What changes are needed so that the bridge is brought up without this routing problem?
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Wed Nov 04, 2015 12:09 pm    Post subject: Reply with quote

I would add another virtual NIC and bridge it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum