# keepalived实现instance high available(Neutron flat网络模式下) [[email protected] ~(keystone_admin)]# neutron net-list (找出pub-net的id号) [[email protected] ~(keystone_admin)]# neutron port-list --netework_id=54f5ea9b-5d05-42e3-995f-c00e6824be25(这个id就是pub-net的id) 查看这个网络下的所有port信息 [[email protected] ~(keystone_admin)]# neutron port-create --fixed-ip ip_address=202.106.179.130(虚拟ip地址) --security-group default pub-net 创建keepalived的vip [[email protected] ~(keystone_admin)]# neutron port-update fee2f24e-87a1-4e23-b60b-8d4a33f9257f(这个id是web2的port id) --allowed_address_pairs list=true type=dict ip_address=202.106.179.130 [[email protected] ~(keystone_admin)]# neutron port-update 4082ae4a-5af6-43ea-9370-fa493fb9ad67(这个id是web1的port id) --allowed_address_pairs list=true type=dict ip_address=202.106.179.130 (这个ip地址就可以被keepavlied当作vip用了) [[email protected] ~(keystone_admin)]# neutron port-show 4082ae4a-5af6-43ea-9370-fa493fb9ad67 查看信息
参考链接:http://blog.aaronorosen.com/implementing-high-availability-instances-with-neutron-using-vrrp/
时间: 2024-10-06 00:48:01