为实现lvs vip 的 高可用 加 负载均衡,用ospf 搭配 lvs 使用。
具体配置步骤如下:(条件,2台服务器实现ospf,ospf IP 掩码为30,即可用IP只有2个,三层交换机配一个,服务器配一个)
1. 交换机配置:(华为交换机)
OSPF配置操作添加步骤:
注:如VLAN或IP有冲突,请您提供给我方,
Vlan 1123
Vlan 1124
#
interface Vlanif1123
ip address 10.102.2.1 255.255.255.252
ospf network-type p2p (对应服务器ospf 配置 ip ospf network point-to-point )
ospf timer hello 5 (对应服务器 ospf 配置 ip ospf hello-interval 5)
ospf timer dead 15 (对应 服务器配置 ip ospf dead-interval 15 )
#
return
#
interface Vlanif1124
ip address 10.102.2.5 255.255.255.252
ospf network-type p2p
ospf timer hello 5
ospf timer dead 15
#
return
ospf