Hello. I'm working on my project and i have few questions. My scheme is here:
https://ibb.co/bKjvd5
My task is to ping AK2 computer from AK1 computer when my HA router is going from backup to master and see how much time it goes. Fistly, my AK1 computer configuration is :
ip addr add 10.1.1.1/24 dev eth1
ip route add default via 10.1.1.2/24 dev eth1
AK2 computer configuration is :
ip addr add 10.1.1.2.1/24 dev eth1
ip route add default via 10.1.2.2/24 dev eth1
R1 (upper one) configuration:
ip addr add 10.1.1.2/24 dev eth1
ip addr add 10.1.2.2/24 dev eth3
ip addr add 10.1.3.1/24 dev eth2
R2 router configuration:
ip addr add 10.1.1.3/24 dev eth1
ip addr add 10.1.2.3/24 dev eth3
ip addr add 10.1.3.2/24 dev eth2
R1 router is configured as Master by command:
ucarp -i eth2 -s 10.1.3.1 -v 1 -p pass -a 10.1.3.3 -u /etc/vip-up.sh -d /etc/vip-down.sh -P
vip-up.sh script:
#!/bin/sh
/sbin/ifconfig eth2:2 10.1.3.3/24 > /dev/null 2>&1
vip-down.sh script:
#!/bin/sh
/sbin/ifconfig eth2:2 down > /dev/null 2>&1
R2 router configurated as Slave :
ucarp -i eth2 -s 10.1.3.2 -v 1 -p pass -a 10.1.3.3 -k 50 -u /etc/vip-up.sh -d /etc/vip-down.sh
Now my AK1 and AK2 computers have ping through R1 router, and when I disable R1 computers stops pinging. I see that R2 launches as Master but flow doesnt go through him. What I need to do? Firstly I need to see how much time costs process while router goes to master state. Second task will be with d-itg traffic generator, to see how much packets i will lose when states will change.
Thanks for help
