CentOS5.4のbondingインタフェースのIPV6無効化

CentOSを5.2から5.4にアップしたらbondingインターフェースでのIPV6を無効化が効かなくなっていた!

[root@cent54 ~]# ifconfig bond0
bond0     Link encap:Ethernet  HWaddr 00:0C:29:2B:3F:BC
          inet addr:192.168.244.132  Bcast:192.168.244.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe2b:3fbc/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1


Apacheが勝手にIPV6使ってる・・・

[root@cent54 ~]# grep dummy /var/log/access_log
::1 - - [14/Oct/2010:11:40:03 +0900] "OPTIONS * HTTP/1.0" 200 2201 "-" "Apache (internal dummy connection)"

[root@cent54 ~]# netstat -an 
...
tcp        0      0 ::ffff:192.168.0.1:80    ::ffff:172.16.0.1:26277 TIME_WAIT
...
tcp        0      0 192.168.0.1:47110        192.168.0.2:3306        TIME_WAIT
...

設定が足りなかったらしい

1.110.9.9. Network Driver Updates

In this update the bonding driver has been updated to the latest upstream version. This update, however has introduced symbol/ipv6 module dependency capabilities. Therefore, if bonding has been previously disabled (by inserting the install ipv6 /bin/false line in the /etc/modprobe.conf file) this upgrade to the bonding driver will result in the bonding kernel module failing to load. The install ipv6 /bin/false line needs to be replaced with install ipv6 disable=1 for the module to load properly. (BZ#462632) 

なんだかよくわからないけど/etc/modprobe.confの記載が足りないらしい

[root@cent54 ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=cent54
[root@cent54 ~]# cat /etc/modprobe.conf
..
alias net-pf-10 off
alias ipv6 off
options ipv6 disable=1 ### これがいるっぽい
..


消えた

[root@cent54 ~]# ifconfig bond0
bond0     Link encap:Ethernet  HWaddr 00:0C:29:2B:3F:BC
          inet addr:192.168.244.132  Bcast:192.168.244.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1