[SOLVED] Nic Bond

Issues related to configuring your network

[SOLVED] Nic Bond

Postby optoOS » 2012/01/05 14:53:19

Hello,

my problem is that i can not get a nic bond0 to work with the gateway.

configuration

/etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0
IPADDR=172.16.XXX.XXX
NETMASK=255.255.252.0
GATEWAY=172.16.XXX.XXX (the IP's are all o.k.)
USERCTL=NO
BOOTPROTO=none
ONBOOT=yes

/etc/sysconfig/network-scripts/ifcfg-em1 & /etc/sysconfig/network-scripts/ifcfg-em2 (GigabitEthernet Interfaces)

DEVICE=em1 (changed in /etc/sysconfig/network-scripts/ifcfg-em2 to em2
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
ONBOOT=yes

/etc/modeprobe.d/bonding.conf

alias bond0 bonding
options bond0 mode=0 miimon=100

ifconfig shows

bond0 Link encap:Ethernet ......

em1 Link encap:Ethernet ........

em2 Link encap:Ethernet ........

Problem is that i can not access the Server from a diffrent VLAN that is routed. If i setup a network connection without bond0 i can access the Server from that routed VLAN.

any help would be apreciated Thank you in advanced
optoOS
 
Posts: 15
Joined: 2012/01/05 13:53:09

Re: Nic Bond

Postby pschaff » 2012/01/05 20:11:33

Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

Please provide more information about your system by running "./getinfo.sh network" and showing us the output file.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: Nic Bond

Postby optoOS » 2012/01/06 12:46:34

Thank you for the quick reply please find enclosed the requested file.

Information for network problems.
Code: Select all
== BEGIN uname -rmi ==
2.6.32-220.2.1.el6.x86_64 x86_64 x86_64
== END   uname -rmi ==

== BEGIN rpm -qa \*-release\* ==
centos-release-6-2.el6.centos.7.x86_64
== END   rpm -qa \*-release\* ==

== BEGIN cat /etc/redhat-release ==
CentOS release 6.2 (Final)
== END   cat /etc/redhat-release ==

== BEGIN getenforce ==
Enforcing
== END   getenforce ==

== BEGIN free -m ==
             total       used       free     shared    buffers     cached
Mem:         24016       1101      22914          0         27        448
-/+ buffers/cache:        625      23390
Swap:        23999          0      23999
== END   free -m ==

== BEGIN lspci -nn ==
00:00.0 Host bridge [0600]: Intel Corporation 5500 I/O Hub to ESI Port [8086:3403] (rev 13)
00:01.0 PCI bridge [0604]: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 [8086:3408] (rev 13)
00:03.0 PCI bridge [0604]: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 [8086:340a] (rev 13)
00:07.0 PCI bridge [0604]: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 [8086:340e] (rev 13)
00:09.0 PCI bridge [0604]: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 9 [8086:3410] (rev 13)
00:0a.0 PCI bridge [0604]: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 10 [8086:3411] (rev 13)
00:14.0 PIC [0800]: Intel Corporation 5520/5500/X58 I/O Hub System Management Registers [8086:342e] (rev 13)
00:14.1 PIC [0800]: Intel Corporation 5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers [8086:3422] (rev 13)
00:14.2 PIC [0800]: Intel Corporation 5520/5500/X58 I/O Hub Control Status and RAS Registers [8086:3423] (rev 13)
00:1a.0 USB controller [0c03]: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4 [8086:3a37]
00:1a.1 USB controller [0c03]: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5 [8086:3a38]
00:1a.7 USB controller [0c03]: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2 [8086:3a3c]
00:1d.0 USB controller [0c03]: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1 [8086:3a34]
00:1d.1 USB controller [0c03]: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2 [8086:3a35]
00:1d.2 USB controller [0c03]: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3 [8086:3a36]
00:1d.3 USB controller [0c03]: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #6 [8086:3a39]
00:1d.7 USB controller [0c03]: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1 [8086:3a3a]
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev 90)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801JIR (ICH10R) LPC Interface Controller [8086:3a16]
00:1f.2 IDE interface [0101]: Intel Corporation 82801JI (ICH10 Family) 4 port SATA IDE Controller #1 [8086:3a20]
00:1f.5 IDE interface [0101]: Intel Corporation 82801JI (ICH10 Family) 2 port SATA IDE Controller #2 [8086:3a26]
01:00.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet [14e4:163b] (rev 20)
01:00.1 Ethernet controller [0200]: Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet [14e4:163b] (rev 20)
02:00.0 RAID bus controller [0104]: LSI Logic / Symbios Logic MegaRAID SAS 1078 [1000:0060] (rev 04)
04:00.0 Fibre Channel [0c04]: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA [1077:2532] (rev 02)
04:00.1 Fibre Channel [0c04]: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA [1077:2532] (rev 02)
06:03.0 VGA compatible controller [0300]: Matrox Graphics, Inc. MGA G200eW WPCM450 [102b:0532] (rev 0a)
== END   lspci -nn ==

== BEGIN lsusb ==
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 003 Device 002: ID 1061:0101 
== END   lsusb ==

== BEGIN ifconfig -a ==
em1       Link encap:Ethernet  HWaddr 78:2B:CB:5A:1A:AA 
          inet addr:172.16.184.36  Bcast:172.16.187.255  Mask:255.255.252.0
          inet6 addr: fe80::7a2b:cbff:fe5a:1aaa/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13468 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3170 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7098881 (6.7 MiB)  TX bytes:469939 (458.9 KiB)
          Interrupt:36 Memory:da000000-da012800

em2       Link encap:Ethernet  HWaddr 78:2B:CB:5A:1A:AB 
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:48 Memory:dc000000-dc012800

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:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:960 (960.0 b)  TX bytes:960 (960.0 b)

== END   ifconfig -a ==

== BEGIN route -n ==
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.16.184.0    0.0.0.0         255.255.252.0   U     1      0        0 em1
0.0.0.0         172.16.184.1    0.0.0.0         UG    0      0        0 em1
== END   route -n ==

== BEGIN cat /etc/resolv.conf ==
# Generated by NetworkManager
search intern.optovision.de
nameserver 192.168.184.156
== END   cat /etc/resolv.conf ==

== BEGIN grep net /etc/nsswitch.conf ==
#networks:   nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     
netmasks:   files
networks:   files
netgroup:   nisplus
== END   grep net /etc/nsswitch.conf ==

== BEGIN chkconfig --list | grep -Ei 'network|wpa' ==
NetworkManager    0:off   1:off   2:on   3:on   4:on   5:on   6:off
matahari-network   0:off   1:off   2:off   3:off   4:off   5:off   6:off
network           0:off   1:off   2:on   3:on   4:on   5:on   6:off
wpa_supplicant    0:off   1:off   2:off   3:off   4:off   5:off   6:off
== END   chkconfig --list | grep -Ei 'network|wpa' ==

optoOS
 
Posts: 15
Joined: 2012/01/05 13:53:09

[SOLVED] Nic Bond

Postby pschaff » 2012/01/06 15:06:03

Nothing obvious to me from that information. Hopefully someone else can spot something. Might be useful to see the script output for the configuration that fails.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: Nic Bond

Postby TrevorH » 2012/01/06 15:38:16

It's recommended to put BONDING_OPTS in your ifcfg-bondx file these days, e.g.

Code: Select all
BONDING_OPTS="mode=4 miimon=100"


It's also not necessary to put the alias in modprobe.conf either so I would remove all mention of bonding from there. My GATEWAY= line is in /etc/sysconfig/network and not in the file for the interface so I think you should move it there. I also have HWADDR=ma:ca:dd:re:ss in each of the ifcfg-ethx files for each of the slaves.
User avatar
TrevorH
Forum Moderator
 
Posts: 9147
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Nic Bond

Postby jlehtone » 2012/01/07 13:19:08

optoOS wrote:
Code: Select all
== BEGIN chkconfig --list | grep -Ei 'network|wpa' ==
NetworkManager    0:off   1:off   2:on   3:on   4:on   5:on   6:off
network           0:off   1:off   2:on   3:on   4:on   5:on   6:off

I would call "both on" an issue.

chkconfig NetworkManager off
service NetworkManager stop
yum remove \*NetworkManager\*

NetworkManager may be ok with simple interfaces, but with vlans,
bondage, etc it leads to pain and suffering.
User avatar
jlehtone
 
Posts: 1431
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Nic Bond

Postby TrevorH » 2012/01/07 13:21:18

bondage, etc it leads to pain and suffering.


Pun intended? :-)
User avatar
TrevorH
Forum Moderator
 
Posts: 9147
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Nic Bond

Postby optoOS » 2012/01/10 10:37:59

THANK YOU i followed all the advices but the uninstalling of the NetworkManager did the trick. THANK YOU
optoOS
 
Posts: 15
Joined: 2012/01/05 13:53:09

Re: [SOLVED] Nic Bond

Postby pschaff » 2012/01/10 17:08:30

Thanks for reporting back. Marking this thread [SOLVED] for posterity.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America


Return to CentOS 6 - Networking Support

Who is online

Users browsing this forum: No registered users and 5 guests