Re: Bonding+vlan and initscripts problem

Buchan Milne <[email protected]> Fri, 20 Jan 2006 14:55:25 +0200
Newsgroups gmane.linux.mandrake.server
Message-ID <[email protected]>
--nextPart2939538.v4GJk7dMky
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Friday 20 January 2006 14:44, Philippe Weill wrote:
> I have somes problems activating bond driver on a mandriva 2006
> I know it's not cooker but it's server related
>
> it's seem initscript are buggy for bonding or I missed something
> when I reboot my server
> network script doesn't enslave eth0 and eth1
> if i run  just after network script
> this one at startup , every thing work perfectly :
> [root@localhost ~]# more /etc/rc3.d/S10network-bond-vlan
> #
> case $1 in
> start)
>          /sbin/ifup bond0
>          /sbin/ifup eth0
>          /sbin/ifup eth1
>          for iface in /etc/sysconfig/network-scripts/ifcfg-bond0.[0-9]*
>          do
>             /sbin/ifup $iface
>          done
>          ;;
> [root@localhost ~]# more /etc/sysconfig/network
> NETWORKING=3Dyes
> FORWARD_IPV4=3Dfalse
> NETWORKING_IPV6=3Dno
> VLAN=3Dyes
>
> ifcfg-eth0:
> DEVICE=3Deth0
> BOOTPROTO=3Dstatic
> ONBOOT=3Dyes
> USERCTL=3Dno
> MII_NOT_SUPPORTED=3Dyes
> MASTER=3Dbond0
> SLAVE=3Dyes
>
> ifcfg-eth1:
> DEVICE=3Deth1
> BOOTPROTO=3Dstatic
> ONBOOT=3Dyes
> USERCTL=3Dno
> MII_NOT_SUPPORTED=3Dyes
> MASTER=3Dbond0
> SLAVE=3Dyes
>
> ifcfg-bond0
> DEVICE=3Dbond0
> BOOTPROTO=3Dnone
> MII_NOT_SUPPORTED=3Dyes
> ONBOOT=3Dyes
> USERCTL=3DNO

I would try adding:
IPADDR=3D0.0.0.0
here (to bond0), maybe also with:
NETMASK=3D0.0.0.0

>
> ifcfg-bond0.999:
> DEVICE=3Dbond0.999
> BOOTPROTO=3Dstatic
> ONBOOT=3Dyes
> IPADDR=3D192.168.254.200
> NETMASK=3D255.255.255.0
> BROADCAST=3D192.168.254.255
> USERCTL=3Dno
> MII_NOT_SUPPORTED=3Dyes
>
> I also tried with an IP address directly on the bond device ( No VLAN )
> symptoms are the same eth0 and eth1 are NOT enslaved at boot time

Can you provide the contents of /etc/modprobe.conf? Since, we also (at leas=
t=20
on RHEL, I don't have any Mandriva boxes running with bond+VLAN at present)=
=20
add:
alias bond0 bonding

Regards,
Buchan

=2D-=20
Buchan Milne
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)

--nextPart2939538.v4GJk7dMky
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQBD0N2+rJK6UGDSBKcRAvRiAKCaXkmyfLzVkjvz67bqSH9iJ38O0ACglEh2
fdT8fkmezY8w/0Ds5MHef58=
=IDcZ
-----END PGP SIGNATURE-----

--nextPart2939538.v4GJk7dMky--