Centos 6.5 bridge can not start automatically after restart
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Centos 6.5 bridge can not start automatically after restart
I installed centos 6.5 and configured bond and bridge interface. Bond configuration file:
DEVICE=bond4.2301
NAME=bond4.2301
BONDING_MASTER=yes
IPV6INIT=no
VLAN=yes
ONBOOT=yes
BOOTPROTO=none
BRIDGE=br-ext
br-ex configuration file:
DEVICE=br-ext
BOOTPROTO=none
ONBOOT=yes
TYPE=OVSBridge
DEVICETYPE=ovs
USERCTL=no
PEERDNS=yes
IPV6INIT=no
STP=no
DELAY=5
My problem if I restart the computer the bridge can not start automatically on. I tried modify DELAY=0. But I write this command: service network start the bridge is start on. This is the log:
kernel: br-ext: port 1(bond4.2301) entering forwarding state
/etc/sysconfig/network-scripts/ifup-eth: Device br-ext does not seem to be present, delaying initialization.
Can you help me wthat is the problem my configuration file?
I chacked /etc/udev/rules.d/70-persistent-net.rules.
I configured two interface and 4 bonding and 4 bridge you can see the config top of the page.
eth config file :
DEVICE=eth6
HWADDR=00:17:A4:77:2D:3A
TYPE=Ethernet
UUID=4880ce4f-68d0-426f-b080-f93193d3a217
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO="none"
MASTER=bond4
SLAVE=yes
eth7:
DEVICE=eth7
HWADDR=00:17:A4:77:2D:3C
TYPE=Ethernet
UUID=baee6232-9e04-4a2c-b659-467775e42602
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO="none"
MASTER=bond4
SLAVE=yes
Bond4:
DEVICE=bond4
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
BONDING_OPTS="mode=1 miimon=100"
IPV6INIT=no
USERCTL=no
Last edited by sluszkulcs; 04-27-2015 at 04:54 AM.
Reason: modify title
I confugured eth2 and eth3 and 4 vlan with bond and 4 bridge on the vlan.
I show you how configured:
ifcfg-eth2:
DEVICE=eth2
HWADDR=00:17:A4:77:2D:32
TYPE=Ethernet
UUID=8322fcfb-b21a-4b85-8ae7-64064e7afd3c
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO="none"
MASTER=bond2
SLAVE=yes
I found this config that I can use this. I brakedown the Bonding. If I restart the comupter the Bond is up and the bridge is down:
brctl showstp br-int
br-int
bridge id 8000.0017a4772d32
designated root 8000.0017a4772d32
root port 0 path cost 0
max age 19.99 bridge max age 19.99
hello time 1.99 bridge hello time 1.99
forward delay 14.99 bridge forward delay 14.99
ageing time 299.95
hello timer 1.40 tcn timer 0.00
topology change timer 0.00 gc timer 12.40
hash elasticity 4 hash max 512
mc last member count 2 mc init query count 2
mc router 1 mc snooping 1
mc last member timer 0.99 mc membership timer 259.96
mc querier timer 254.96 mc query interval 124.98
mc response interval 9.99 mc init query interval 31.24
flags
bond2.1052 (0)
port id 0000 state disabled
designated root 8000.0017a4772d32 path cost 2
designated bridge 8000.0017a4772d32 message age timer 0.00
designated port 8001 forward delay timer 0.00
designated cost 0 hold timer 0.40
mc router 1
flags
If I write this command srevice network start the bridge is up:
brctl showstp br-int
br-int
bridge id 8000.0017a4772d32
designated root 8000.0017a4772d32
root port 0 path cost 0
max age 19.99 bridge max age 19.99
hello time 1.99 bridge hello time 1.99
forward delay 14.99 bridge forward delay 14.99
ageing time 299.95
hello timer 1.40 tcn timer 0.00
topology change timer 0.00 gc timer 12.40
hash elasticity 4 hash max 512
mc last member count 2 mc init query count 2
mc router 1 mc snooping 1
mc last member timer 0.99 mc membership timer 259.96
mc querier timer 254.96 mc query interval 124.98
mc response interval 9.99 mc init query interval 31.24
flags
bond2.1052 (0)
port id 0000 state forwarding
designated root 8000.0017a4772d32 path cost 2
designated bridge 8000.0017a4772d32 message age timer 0.00
designated port 8001 forward delay timer 0.00
designated cost 0 hold timer 0.40
mc router 1
flags
I dont know why the bridge interface up if I restart the computer.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.