LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-27-2015, 04:09 AM   #1
sluszkulcs
LQ Newbie
 
Registered: Apr 2015
Posts: 6

Rep: Reputation: Disabled
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
 
Old 04-27-2015, 08:40 AM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Your Bond DEVICE and your eth MASTER must match.
What you posted above do not.
 
Old 04-27-2015, 09:02 AM   #3
sluszkulcs
LQ Newbie
 
Registered: Apr 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
Dear Robert,

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

ifcfg-eth3:
DEVICE=eth3
HWADDR=00:17:A4:77:2D:34
TYPE=Ethernet
UUID=69749ef1-aba0-40e8-bf2c-6c9e93647e10
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO="none"
MASTER=bond2
SLAVE=yes

ifcfg-bond2:
DEVICE=bond2
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
BONDING_OPTS="mode=1 miimon=100"
IPV6INIT=no
USERCTL=no

ifcfg-bond2.1052:
DEVICE=bond2.1052
NAME=bond2.1052
BONDING_MASTER=yes
VLAN=yes
ONBOOT=yes
BOOTPROTO=none
BONDING_OPTS="mode=1 miimon=100"
BRIDGE=br-int

ifcfg-bond2.1053:
DEVICE=bond2.1053
NAME=bond2.1053
BONDING_MASTER=yes
VLAN=yes
ONBOOT=yes
BOOTPROTO=none
BONDING_OPTS="mode=1 miimon=100"
BRIDGE=br-int2

ifcfg-bond2.1054:
DEVICE=bond2.1054
NAME=bond2.1054
BONDING_MASTER=yes
VLAN=yes
ONBOOT=yes
BOOTPROTO=none
BONDING_OPTS="mode=1 miimon=100"
BRIDGE=br-int3

ifcfg-br-int:
DEVICE=br-int
BOOTPROTO=static
ONBOOT=yes
TYPE=OVSBridge
DEVICETYPE=ovs
USERCTL=yes
PEERDNS=yes
IPV6INIT=no
STP=off

ifcfg-br-int2:
DEVICE=br-int2
BOOTPROTO=static
ONBOOT=yes
TYPE=OVSBridge
DEVICETYPE=ovs
USERCTL=yes
PEERDNS=yes
IPV6INIT=no
STP=off

ifcfg-br-int3:
DEVICE=br-int3
BOOTPROTO=static
ONBOOT=yes
TYPE=OVSBridge
DEVICETYPE=ovs
USERCTL=yes
PEERDNS=yes
IPV6INIT=no
STP=off

ifcfg-br-int4:
DEVICE=br-int4
BOOTPROTO=static
ONBOOT=yes
TYPE=OVSBridge
DEVICETYPE=ovs
USERCTL=yes
PEERDNS=yes
IPV6INIT=no
STP=off

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.

Regards, sluszkulcs
 
Old 04-27-2015, 02:00 PM   #4
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Sounds like something is missing in the configuration that starts the network. What run level do you start your system in?
 
Old 04-28-2015, 02:19 AM   #5
sluszkulcs
LQ Newbie
 
Registered: Apr 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi,

Run level 3 Multi-user Mode with Networking.

I don't know what is missing the configuration.
I check lots of website and config.


regards, sluszkulcs
 
Old 04-28-2015, 08:10 AM   #6
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Make sure you have a network startup script in rc3.d directory.
 
Old 04-28-2015, 08:40 AM   #7
sluszkulcs
LQ Newbie
 
Registered: Apr 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
run level

I checked this:
/sbin/chkconfig --list | grep network
network 0: off 1: off 2: on 3: on 4: on 5: on 6: off

/etc/inittab

id:3:initdefault:

Regards, sluszkulcs

Last edited by sluszkulcs; 04-28-2015 at 08:46 AM.
 
Old 04-28-2015, 11:42 AM   #8
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Is NetworkManager also set to run?
 
Old 04-29-2015, 02:46 AM   #9
sluszkulcs
LQ Newbie
 
Registered: Apr 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
Yes, the Networkmanager run. If I restart the computer the interface up and the Bond is up.

Regards, sluszkulcs
 
Old 04-29-2015, 07:42 AM   #10
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Check NM setting to ensure it is aware of your setup and what needs to be started.
 
Old 04-29-2015, 10:27 AM   #11
sluszkulcs
LQ Newbie
 
Registered: Apr 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi,

I checked this: /etc/NetworkManager/dispatcher.d/

I found this:

05-netfs
00-netreport
04-iscsi
10-dhclient

Do I make a bridge rule the dispatcher.d folder?

example:
Name: 99-bridge
Line: ACTION=="add", SUBSYSTEM=="module", KERNEL=="bridge", RUN+="/selinux/initial_contexts/sysctl_net --prefix=/proc/sys/net/bridge"

Regards, sluszkulcs
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Interface not added to bridge in CentOS 6.5 pingu Linux - Networking 2 05-14-2014 06:08 AM
setting up centos to act as a router / bridge the2k Linux - Networking 4 11-16-2012 03:37 PM
Centos 6.3 - KVM - Bridge/Networking problem cultavix Linux - Virtualization and Cloud 1 10-04-2012 05:19 AM
CentOS Kernel dissappear after bridge delete hazos Linux - Newbie 2 12-08-2009 12:52 PM
help me... centos 5.1 on xen bridge yjj3019 Linux - Enterprise 1 03-24-2008 11:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration