Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bridged network not working after restart
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
chalucha
n00b
n00b


Joined: 04 Jul 2004
Posts: 28

PostPosted: Thu Oct 22, 2015 5:54 pm    Post subject: Bridged network not working after restart Reply with quote

After some update and computer restart my network stopped to work and I can't figure why is that. Configuration does not change. I looked at the actual docs and all seems ok.

Any advice is welcome.

I've got 2 physical NICs:
enp4s0 - used
enp6s0 - unused

I want to have a bridged network to share it with some virtual guests or VPN.

cat /etc/conf.d/net:
config_tap0="null"
tuntap_tap0="tap"
tunctl_tap0="-u tomas"
mac_tap0="00:00:00:00:00:01"
carrier_timeout_tap0="0"

config_tap1="null"
tuntap_tap1="tap"
tunctl_tap1="-u tomas"
mac_tap1="00:00:00:00:00:02"
carrier_timeout_tap1="0"

config_enp4s0="null"
config_enp6s0="null"

rc_net_lo_provide="!net"
rc_net_enp4s0_provide="!net"
rc_net_tap0_provide="!net"
rc_net_tap1_provide="!net"

bridge_br0="enp4s0 tap0 tap1"
brctl_br0="setfd 0 sethello 10 stp off"
rc_net_br0_need="net.enp4s0 net.tap0 net.tap1"
config_br0="dhcp"
mac_br0="bc:ae:c5:90:3b:ea"

ll /etc/init.d/net*
lrwxrwxrwx 1 root root 6 19. říj 2011 /etc/init.d/net.br0 -> net.lo
lrwxrwxrwx 1 root root 6 18. říj 11.23 /etc/init.d/net.enp4s0 -> net.lo
-rwxr-xr-x 1 root root 18K 26. led 2015 /etc/init.d/net.lo
-rwxr-xr-x 1 root root 1,3K 15. říj 09.51 /etc/init.d/netmount
lrwxrwxrwx 1 root root 6 19. říj 2011 /etc/init.d/net.tap0 -> net.lo
lrwxrwxrwx 1 root root 6 19. říj 2011 /etc/init.d/net.tap1 -> net.lo

Problem is that within a start enp4s0 is initialized from DHCP and routes are:
default via 192.168.1.1 dev enp4s0 metric 202
default via 192.168.1.1 dev br0 metric 207
127.0.0.0/8 dev lo scope host
127.0.0.0/8 via 127.0.0.1 dev lo
192.168.1.0/24 dev enp4s0 proto kernel scope link src 192.168.1.228 metric 202
192.168.1.0/24 dev br0 proto kernel scope link src 192.168.1.4 metric 207

When I manually restart net.br0 after boot it becames ok:
default via 192.168.1.1 dev br0 metric 210
127.0.0.0/8 dev lo scope host
127.0.0.0/8 via 127.0.0.1 dev lo
192.168.1.0/24 dev br0 proto kernel scope link src 192.168.1.4 metric 210

Any ideas what's wrong here?
Back to top
View user's profile Send private message
alinefr
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2009
Posts: 113
Location: São Paulo, Brasil

PostPosted: Fri Oct 23, 2015 2:23 am    Post subject: Reply with quote

Do you have anything set for
Code:
rc_hotplug=

in /etc/rc.conf?
Back to top
View user's profile Send private message
chalucha
n00b
n00b


Joined: 04 Jul 2004
Posts: 28

PostPosted: Fri Oct 23, 2015 11:13 am    Post subject: Reply with quote

alinefr wrote:
Do you have anything set for
Code:
rc_hotplug=

in /etc/rc.conf?


There is just commented out default:
#rc_hotplug="*"
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