LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-12-2014, 09:40 AM   #1
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
Interface not added to bridge in CentOS 6.5


I'm installing CentOS-6.5 on a Dell R210 II to test oVirt.
After creating a bridge and configuring em1 for that bridge, the bridge comes up but without any interface.
I have to add it with "brctl addif ovirtmgmt em1" then everything is fine.
But after a reboot there's again no interface for the bridge.

I can't see where I'm going wrong?
I created the configfiles ifcfg-em1 & ifcfg-ovirtmgmt manually, NetworkManager is not installed, iptables is off, selinux is permissive.
Code:
[root@node1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-em1
DEVICE=em1
HWADDR=D0:67:E5:F3:5B:6F
Bridge=ovirtmgmt
UUID=e4c23576-7ef6-4f48-9672-e0d0b9892fb6
ONBOOT=yes
NM_CONTROLLED=no
Code:
[root@node1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-ovirtmgmt 
DEVICE=ovirtmgmt
TYPE=Bridge
BOOTPROTO=static
IPADDR=192.168.120.112
NETMASK=255.255.255.0
GATEWAY=192.168.120.201
DNS1=192.168.120.201
DELAY=0
NM_CONTROLLED=no
ONBOOT=yes
After a reboot:
Code:
[root@node1 ~]# brctl show
bridge name     bridge id               STP enabled     interfaces
ovirtmgmt               8000.d067e5f35b6f       no             

[root@node1 ~]# ifconfig 
em1       Link encap:Ethernet  HWaddr D0:67:E5:F3:5B:6F  
          inet6 addr: fe80::d267:e5ff:fef3:5b6f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:48 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:7176 (7.0 KiB)  TX bytes:670 (670.0 b)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:34 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3622 (3.5 KiB)  TX bytes:3622 (3.5 KiB)

ovirtmgmt Link encap:Ethernet  HWaddr D0:67:E5:F3:5B:6F  
          inet addr:192.168.120.112  Bcast:192.168.120.255  Mask:255.255.255.0
          inet6 addr: fe80::24a0:82ff:fe05:d4a5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:158 errors:0 dropped:0 overruns:0 frame:0
          TX packets:142 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:14402 (14.0 KiB)  TX bytes:12747 (12.4 KiB)
Fixing it:
Code:
[root@node1 ~]# brctl addif ovirtmgmt em1
[root@node1 ~]# brctl show
bridge name     bridge id               STP enabled     interfaces
ovirtmgmt               8000.d067e5f35b6f       no              em1
[root@node1 ~]# ifconfig 
em1       Link encap:Ethernet  HWaddr D0:67:E5:F3:5B:6F  
          inet6 addr: fe80::d267:e5ff:fef3:5b6f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:55 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:7737 (7.5 KiB)  TX bytes:734 (734.0 b)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:34 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3622 (3.5 KiB)  TX bytes:3622 (3.5 KiB)

ovirtmgmt Link encap:Ethernet  HWaddr D0:67:E5:F3:5B:6F  
          inet addr:192.168.120.112  Bcast:192.168.120.255  Mask:255.255.255.0
          inet6 addr: fe80::24a0:82ff:fe05:d4a5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:158 errors:0 dropped:0 overruns:0 frame:0
          TX packets:142 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:14402 (14.0 KiB)  TX bytes:12747 (12.4 KiB)
 
Old 05-13-2014, 10:30 AM   #2
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
Is the bridge in em1 not supposed to be all capitals? I always thought the directives left of the equal sign are to be. I know the options are case sensitive.

Does
/etc/udev/rules.d/70-persistent-net.rules

Agree with your naming convention? I had some strange behaviour on my bridge a while back that was caused by duplicate entries automatically being inserted into the rules set.

Maybe a typo in the uuid if manually typed? If you get rid of the uuid line is there any change?

But yes, I cannot pick anything obvious from your configs.

So before the fix does the bridge actually transmit data? Before the fix the bridge does have the correct mac address.

Last edited by ericson007; 05-13-2014 at 10:45 AM.
 
1 members found this post helpful.
Old 05-14-2014, 06:08 AM   #3
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Original Poster
Rep: Reputation: 127Reputation: 127
Quote:
Originally Posted by ericson007 View Post
Is the bridge in em1 not supposed to be all capitals? I always thought the directives left of the equal sign are to be. I know the options are case sensitive.
Yes of course!
Thanks, don't know how I could miss that but well, I did.
All capitals=problem solved.
 
  


Reply



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
Help setting up bridge interface Cr85bro13 Linux - Networking 1 09-04-2013 09:00 AM
iptables: All routing on any interface seems to stop when a rule for wlan0 is added iwonbigbro Linux - Security 4 10-11-2012 09:23 AM
Bridge between ethernet interface and tap interface jayadhanesh Linux - Networking 3 04-12-2009 11:32 PM
can't bridge ppp0 interface a550ee Linux - Networking 2 07-16-2007 03:07 AM
why do an interface bridge? e1000 Linux - Networking 2 01-06-2004 08:26 AM

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

All times are GMT -5. The time now is 04: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