Hello everybody. I've an issue:
I created a bond interface (192.168.101.50/24
) in active-backup mode with two interfaces (eth1
and eth2
) connected to two devices (192.168.101.2/24
for eth1
and 192.168.101.11/24
for eth2
).
Then I created a queue. In queue 1 I added eth1
and in queue 2 I added eth2
with respective filters.
ip link add name bond0 type bond mode active-backup
ip link set master bond0 dev eth1
ip link set master bond0 dev eth2
ip link set up dev bond0
ip address add 192.168.101.50/24 dev bond0
echo "eth1:1" > /sys/class/net/bond0/bonding/queue_id
echo "eth2:2" > /sys/class/net/bond0/bonding/queue_id
tc qdisc add dev bond0 handle 1 root multiq
tc filter add dev bond0 protocol ip parent 1: prio 1 u32 match ip \
dst 192.168.101.2 action skbedit queue_mapping 1
tc filter add dev bond0 protocol ip parent 1: prio 1 u32 match ip \
dst 192.168.101.11 action skbedit queue_mapping 2
echo "1" > /sys/devices/virtual/net/bond0/bonding/all_slaves_active
I have done all this to be able to ping also the BACKUP interface (the inactive one). Anyway, despite all this command, I can ping only the active one. I also tried to set staticall the MAC address of the device I want to ping, but nothing is changed. What am I doing wrong?