I have bonding working on Mandrake 10.0 (Kernel 2.6.3-15, bonding V2.5.0). with eth1 and eth2 bonded to bond0 in active-backup mode.I upgraded to Mandrake LE2005 (kernel v2-6-11.6, bonding v2.6.1) with no other changes to config files and bond0 starts but eth1 and eth2 won't start.
I can start eth1 and eth2 with ifup or ifenslave and bonding works but neither interfaces start on boot or by using 'service network restart'. Only ifcfg-bond0 and ifcfg-eth0 are processed.
If I remove SLAVE=yes from ifcfg-eth1 or 2 the interfaces are then visible in ifconfig but are not part of the bond.
Can anyone help?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't have mandrake here locally; does it use sysconfig or initscripts for network initialization, or something else?
What does "rpm -q initscripts" and "rpm -q sysconfig" say? (or is mandrake non-rpm?)
I'm guessing the problem is either in the network init scripts, or possibly the distro switched from /etc/modules.conf to /etc/modprobe.conf during the upgrade and something wasn't copied.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Mandrake uses initscripts. modules.conf is empty so I don't think it is used. I have the following lines in modprobe.conf
alias bond0 bonding
options bond0 miimon=100 mode=1
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: None
MII Status: down
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
I have bonding working on Mandrake 10.0 (Kernel 2.6.3-15, bonding V2.5.0). with eth1 and eth2 bonded to bond0 in active-backup mode.I upgraded to Mandrake LE2005 (kernel v2-6-11.6, bonding v2.6.1) with no other changes to config files and bond0 starts but eth1 and eth2 won't start.
I can start eth1 and eth2 with ifup or ifenslave and bonding works but neither interfaces start on boot or by using 'service network restart'. Only ifcfg-bond0 and ifcfg-eth0 are processed.
If I remove SLAVE=yes from ifcfg-eth1 or 2 the interfaces are then visible in ifconfig but are not part of the bond.
Can anyone help?
Thanks
I don't have mandrake here locally; does it use sysconfig or initscripts for network initialization, or something else?
What does "rpm -q initscripts" and "rpm -q sysconfig" say? (or is mandrake non-rpm?)
I'm guessing the problem is either in the network init scripts, or possibly the distro switched from /etc/modules.conf to /etc/modprobe.conf during the upgrade and something wasn't copied.
Mandrake uses initscripts. modules.conf is empty so I don't think it is used. I have the following lines in modprobe.conf
alias bond0 bonding
options bond0 miimon=100 mode=1
lsmod shows bonding loaded and /proc/net/bond0 shows
Ethernet Channel Bonding Driver: v2.6.1 (October 29, 2004)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: None
MII Status: down
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
My config files are
ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
IPADDR=192.168.134.100
NETMASK=255.255.255.0
NETWORK=192.168.134.0
BROADCAST=192.168.134.255
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=yes
USERCTL=no
ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MII_NOT_SUPPORTED=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
ifcfg-eth2
DEVICE=eth2
BOOTPROTO=none
ONBOOT=yes
MII_NOT_SUPPORTED=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
Here is the result of starting network service followed by a manual start of eth1 and 2
[root@cbteabp01pc network-scripts]# service network restart
Shutting down interface bond0: [ OK ]
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Setting network parameters: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface bond0: [ OK ]
Bringing up interface eth0: [ OK ]
[root@cbteabp01pc network-scripts]# ifconfig
bond0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.134.100 Bcast:192.168.134.255 Mask:255.255.255.0
inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MASTER 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:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
eth0 Link encap:Ethernet HWaddr 00:0E:0C:2C:73:E6
inet addr:192.168.99.100 Bcast:192.168.99.255 Mask:255.255.255.0
inet6 addr: fe80::20e:cff:fe2c:73e6/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:418 errors:0 dropped:0 overruns:418 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:74200 (72.4 Kb)
Interrupt:16
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:183 errors:0 dropped:0 overruns:0 frame:0
TX packets:183 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:16352 (15.9 Kb) TX bytes:16352 (15.9 Kb)
sit0 Link encap:IPv6-in-IPv4
inet6 addr: ::192.168.134.100/96 Scope:Compat
inet6 addr: ::192.168.99.100/96 Scope:Compat
inet6 addr: ::127.0.0.1/96 Scope:Unknown
UP RUNNING NOARP MTU:1480 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:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
[root@cbteabp01pc network-scripts]# /sbin/ifup eth1
Enslaving eth1 to bond0
[root@cbteabp01pc network-scripts]# /sbin/ifup eth2
Enslaving eth2 to bond0
[root@cbteabp01pc network-scripts]# ifconfig
bond0 Link encap:Ethernet HWaddr 00:0E:0C:5B:31:0F
inet addr:192.168.134.100 Bcast:192.168.134.255 Mask:255.255.255.0
inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:20 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:1532 (1.4 Kb)
eth0 Link encap:Ethernet HWaddr 00:0E:0C:2C:73:E6
inet addr:192.168.99.100 Bcast:192.168.99.255 Mask:255.255.255.0
inet6 addr: fe80::20e:cff:fe2c:73e6/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:419 errors:0 dropped:0 overruns:419 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:74270 (72.5 Kb)
Interrupt:16
eth1 Link encap:Ethernet HWaddr 00:0E:0C:5B:31:0F
inet6 addr: fe80::20e:cff:fe5b:310f/64 Scope:Link
UP BROADCAST NOARP SLAVE MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:20 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:1532 (1.4 Kb)
Interrupt:17
eth2 Link encap:Ethernet HWaddr 00:0E:0C:5B:31:0F
inet6 addr: fe80::20e:cff:fe5b:310f/64 Scope:Link
UP BROADCAST NOARP SLAVE 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)
Base address:0xdf40 Memory:fcee0000-fcf00000
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:183 errors:0 dropped:0 overruns:0 frame:0
TX packets:183 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:16352 (15.9 Kb) TX bytes:16352 (15.9 Kb)
sit0 Link encap:IPv6-in-IPv4
inet6 addr: ::192.168.134.100/96 Scope:Compat
inet6 addr: ::192.168.99.100/96 Scope:Compat
inet6 addr: ::127.0.0.1/96 Scope:Unknown
UP RUNNING NOARP MTU:1480 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:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
I am trying to compare the network scripts for the 2 kernel versions