Keeplived单播

[root@localhost ~]#tcpdump -i eth0 host -nn 224.0.0.18

img

img前提

imgnode1配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
vrrp_instance VIP1 {
state MASTER
interface eth0
virtual_router_id 1
priority 100
advert_int 3
unicast_src_ip 192.168.64.110
unicast_peer {
192.168.64.120
}
authentication {
auth_type PASS
auth_pass linux
}
virtual_ipaddress {
192.168.64.200/24 dev eth0 label eth0:0
}
}

imgnode2配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
vrrp_instance VIP1 {
state BACKUP
interface eth0
virtual_router_id 1
priority 80
advert_int 3
unicast_src_ip 192.168.64.120
unicast_peer {
192.168.64.110
}
authentication {
auth_type PASS
auth_pass linux
}
virtual_ipaddress {
192.168.64.200/24 dev eth0 label eth0:0
}
}

img抓包