LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-26-2013, 06:32 PM   #16
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348

Rep: Reputation: Disabled

You have IP addresses assigned to both eth0 and br0, and even in the same subnet. That's not correct.

No IP address should be assigned to eth0, and brctl show should show eth0 as a part of br0.
 
Old 07-27-2013, 12:14 PM   #17
walterbyrd
Member
 
Registered: Apr 2004
Posts: 739

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by Ser Olmy View Post
You have IP addresses assigned to both eth0 and br0, and even in the same subnet. That's not correct.

No IP address should be assigned to eth0, and brctl show should show eth0 as a part of br0.
I am trying to fix that, but it's not working out too well. Now I have no network at all. FWIW, here is my configuration:


Code:

# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 94:DE:80:2F:C5:8B  
          inet6 addr: fe80::96de:80ff:fe2f:c58b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:501 errors:0 dropped:0 overruns:0 frame:0
          TX packets:149 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:164813 (160.9 KiB)  TX bytes:17971 (17.5 KiB)



# ifconfig br0
br0       Link encap:Ethernet  HWaddr 94:DE:80:2F:C5:8B  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:122 errors:0 dropped:0 overruns:0 frame:0
          TX packets:145 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:49730 (48.5 KiB)  TX bytes:17651 (17.2 KiB)




# cat ifcfg-eth0
DEVICE="eth0"
#BOOTPROTO="dhcp"
#NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="08986b4c-ed59-41f4-b329-f08e3100af28"
HWADDR="94:DE:80:2F:C5:8B"
#HWADDR="00:30:67:6F:7B:D1"
#IPADDR=192.168.0.105
#PREFIX=24
#GATEWAY=192.168.0.1
#DNS1=75.75.75.75
#DNS1=75.75.76.76
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"


# cat ifcfg-br0
DEVICE="br0"
#NM_CONTROLLED="yes"
ONBOOT=yes
TYPE=Bridge
BOOTPROTO=none
IPADDR=192.168.1.109
PREFIX=24
GATEWAY=192.168.1.1
DNS1=75.75.75.75
DNS1=75.75.76.76
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System br0"
 
Old 07-27-2013, 03:32 PM   #18
walterbyrd
Member
 
Registered: Apr 2004
Posts: 739

Original Poster
Rep: Reputation: 46
Okay, I decided to start over.

I got rid of virbr0.
I renamed. ifcfg-br0 to ifcfg-br0.bu.
I setup everything to work with eth0.
Rebooted

Now my network works. I am able to ping everything from everywhere.

Oddly, br0 still comes up on an ifconfig, even though there is no ifcfg-br0 file. Still getting different IP addresses for eth0 and br0, even though I have changed the MAC address. Also br0 and eth0 have different MAC address, no idea how that is happening. Also, br0 seems to come up with a different MAC address every time I reboot.



Code:
$ brctl show
bridge name	bridge id		STP enabled	interfaces
br0		8000.000000000000	no	

$ ifconfig 
br0       Link encap:Ethernet  HWaddr 7E:AA:AA:38:E6:32  
          inet addr:192.168.1.109  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::7caa:aaff:fe38:e632/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:830 (830.0 b)

eth0      Link encap:Ethernet  HWaddr 94:DE:80:2F:C5:8B  
          inet addr:192.168.1.105  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::96de:80ff:fe2f:c58b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:30965 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18550 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:33613375 (32.0 MiB)  TX bytes:3450316 (3.2 MiB)

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:109 errors:0 dropped:0 overruns:0 frame:0
          TX packets:109 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:11809 (11.5 KiB)  TX bytes:11809 (11.5 KiB)




$ cat ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="dhcp"
#NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="08986b4c-ed59-41f4-b329-f08e3100af28"
HWADDR="94:DE:80:2F:C5:8B"
#HWADDR="00:30:67:6F:7B:D1"
IPADDR=192.168.0.109
PREFIX=24
GATEWAY=192.168.0.1
DNS1=75.75.75.75
DNS1=75.75.76.76
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
#BRIDGE=br0

$ cat ifcfg-br0.bu
DEVICE="br0"
#NM_CONTROLLED="yes"
ONBOOT=yes
TYPE=Bridge
BOOTPROTO=none
IPADDR=192.168.1.109
PREFIX=24
GATEWAY=192.168.1.1
DNS1=75.75.75.75
DNS2=75.75.76.76
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System br0"
 
Old 07-28-2013, 05:57 AM   #19
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
your netwok os now working fine because br0 is fetching ip information through dhcp now as eth0.
check the location again for configuration files: /etc/sysconfig/network-scripts/
 
Old 07-28-2013, 06:23 AM   #20
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348

Rep: Reputation: Disabled
If you don't want to have a bridge interface, delete /etc/sysconfig/network-scripts/ifcfg-br0.

If you want to use KVM, you will need the bridge interface and should remove all IP configuration from eth0. You can do that by following these instructions.
 
  


Reply

Tags
centos, ping


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
mount : local file systems failed athreyavc Linux - Software 3 02-25-2009 06:54 AM
LXer: Creating New File Systems In Local Zones On Solaris 10 LXer Syndicated Linux News 0 10-21-2008 09:30 AM
kernel 2.6.10 - error mounting local file systems sirrus_linux Linux - Software 6 02-12-2005 01:07 PM
One of my local file systems /dev/sda9 is not mounting Fairlie Linux - Newbie 8 05-10-2004 11:27 PM
Vector Linux : Can ping local network, can't access internet JoeLinux Linux - Networking 7 12-25-2002 10:08 AM

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

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