View previous topic :: View next topic |
Author |
Message |
chalucha n00b
Joined: 04 Jul 2004 Posts: 28
|
Posted: Thu Oct 22, 2015 5:54 pm Post subject: Bridged network not working after restart |
|
|
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 |
|
|
alinefr Tux's lil' helper
Joined: 05 Jul 2009 Posts: 113 Location: São Paulo, Brasil
|
Posted: Fri Oct 23, 2015 2:23 am Post subject: |
|
|
Do you have anything set for
in /etc/rc.conf? |
|
Back to top |
|
|
chalucha n00b
Joined: 04 Jul 2004 Posts: 28
|
Posted: Fri Oct 23, 2015 11:13 am Post subject: |
|
|
alinefr wrote: | Do you have anything set for
in /etc/rc.conf? |
There is just commented out default:
#rc_hotplug="*" |
|
Back to top |
|
|
|