[SOLVED] VLAN over bond interface. Can't get Incoming statistics
Posted: 2012/01/11 15:06:50
It seems that vlan interfaces over bond doesn't work correctly. Specifically traffic statistics
I have the following network config
[code]
# cat /etc/sysconfig/network-scripts/ifcfg-bond1
DEVICE=bond1
ONBOOT=yes
BOOTPROTO=none
# cat /etc/sysconfig/network-scripts/ifcfg-bond1.210
# Intel Corporation 82576 Gigabit Network Connection
DEVICE=bond1.210
BOOTPROTO=none
IPADDR=192.168.210.1
NETMASK=255.255.255.0
ONBOOT=yes
VLAN=yes
# cat /etc/sysconfig/network-scripts/ifcfg-eth2
# Intel Corporation 82576 Gigabit Network Connection
DEVICE=eth2
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:1B:21:63:55:44
MASTER=bond1
SLAVE=yes
# cat /etc/sysconfig/network-scripts/ifcfg-eth3
# Intel Corporation 82576 Gigabit Network Connection
DEVICE=eth3
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:1B:21:63:55:45
MASTER=bond1
SLAVE=yes
# cat /proc/net/bonding/bond1
Ethernet Channel Bonding Driver: v3.4.0-1 (October 7, 2008)
Bonding Mode: load balancing (xor)
Transmit Hash Policy: layer2 (0)
MII Status: up
MII Polling Interval (ms): 80
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth2
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:1b:21:63:55:44
Slave Interface: eth3
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:1b:21:63:55:45
[/code]
But when I try to get statistics of the interface I can't see any Incoming data
[code]
# cat /proc/net/dev | grep bond1.210
bond1.210: 0 0 0 0 0 0 0 0 101106032062 446733933 0 0 0 0 0 0
[/code]
At the same time on eth2/eth3 all shows correctly
[code]
# cat /proc/net/dev | grep eth2
eth2:2401029223576 2945035953 0 0 0 0 0 262013 1753706319816 2729232623 0 0 0 0 0 0
# cat /proc/net/dev | grep eth3
eth3:1342749003523 1755079950 0 0 0 0 0 365234 1620089577678 1939377201 0 0 0 0 0 0
[/code]
I ran into this problem when I try to draw pps statistic (packet per second) via zabbix
I have the following network config
[code]
# cat /etc/sysconfig/network-scripts/ifcfg-bond1
DEVICE=bond1
ONBOOT=yes
BOOTPROTO=none
# cat /etc/sysconfig/network-scripts/ifcfg-bond1.210
# Intel Corporation 82576 Gigabit Network Connection
DEVICE=bond1.210
BOOTPROTO=none
IPADDR=192.168.210.1
NETMASK=255.255.255.0
ONBOOT=yes
VLAN=yes
# cat /etc/sysconfig/network-scripts/ifcfg-eth2
# Intel Corporation 82576 Gigabit Network Connection
DEVICE=eth2
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:1B:21:63:55:44
MASTER=bond1
SLAVE=yes
# cat /etc/sysconfig/network-scripts/ifcfg-eth3
# Intel Corporation 82576 Gigabit Network Connection
DEVICE=eth3
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:1B:21:63:55:45
MASTER=bond1
SLAVE=yes
# cat /proc/net/bonding/bond1
Ethernet Channel Bonding Driver: v3.4.0-1 (October 7, 2008)
Bonding Mode: load balancing (xor)
Transmit Hash Policy: layer2 (0)
MII Status: up
MII Polling Interval (ms): 80
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth2
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:1b:21:63:55:44
Slave Interface: eth3
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:1b:21:63:55:45
[/code]
But when I try to get statistics of the interface I can't see any Incoming data
[code]
# cat /proc/net/dev | grep bond1.210
bond1.210: 0 0 0 0 0 0 0 0 101106032062 446733933 0 0 0 0 0 0
[/code]
At the same time on eth2/eth3 all shows correctly
[code]
# cat /proc/net/dev | grep eth2
eth2:2401029223576 2945035953 0 0 0 0 0 262013 1753706319816 2729232623 0 0 0 0 0 0
# cat /proc/net/dev | grep eth3
eth3:1342749003523 1755079950 0 0 0 0 0 365234 1620089577678 1939377201 0 0 0 0 0 0
[/code]
I ran into this problem when I try to draw pps statistic (packet per second) via zabbix