How to configure ipv6 address on bonded interface

Posted on

I am trying to configure ipv6 address on bonding interface.

I have 1 phsical server hosting one virtual machine with kvm.
The virtual machine has 2 ethernet network interface and a bond interface.
bond interface is bridged to the eno1 of host interface.

My ifcfg script on virt machine is below.

--bond interface--
[root@server1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond1
DEVICE=bond1
NAME=bond1
UUID=9cc9db10-aa0e-48d1-817d-adca84091c7d
ONBOOT=yes
BOOTPROTO=none

BONDING_OPTS="mode=active-backup"
TYPE=Bond
BONDING_MASTER=yes

IPADDR=192.168.11.113
NETMASK=255.255.255.0
GATEWAY=192.168.11.1
DNS1=192.168.11.1
IPV4_FAILURE_FATAL=no

IPV6ADDR=2602:306:cc2d:f591::D/64
IPV6INIT=yes

--eth9 and eth10--
[root@server1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth9
TYPE=Ethernet
NAME=eth9
UUID=7d5dfae4-472a-4e14-a997-40d9e8a42f39
DEVICE=eth9
ONBOOT=yes
MASTER=9cc9db10-aa0e-48d1-817d-adca84091c7d
SLAVE=yes

[root@server1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth10
TYPE=Ethernet
NAME=eth10
UUID=ad4ddad9-79f6-473b-8275-22a9485e0003
DEVICE=eth10
ONBOOT=yes
MASTER=9cc9db10-aa0e-48d1-817d-adca84091c7d
SLAVE=yes

I do not get ipv6 address when I check with ip addr command.

[root@server1 ~]# ip addr show dev bond1
29: bond1: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether e2:e6:26:3e:e8:d5 brd ff:ff:ff:ff:ff:ff
inet 192.168.11.113/24 brd 192.168.11.255 scope global bond1
valid_lft forever preferred_lft forever

I have not disabled the kernel setting for ipv6 for each interface.
[root@server1 ~]# sysctl -a | grep disable_ipv6 | egrep "bond1|eth9|eth10"
net.ipv6.conf.bond1.disable_ipv6 = 0
net.ipv6.conf.eth10.disable_ipv6 = 0
net.ipv6.conf.eth9.disable_ipv6 = 0

Below is my redhat version.
[root@server1 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)

What is the correct configuration for ipv6 on bond interface?

Responses