华为设备配置VRRP负载分担(vrrp负载分担如何实现)

网友投稿 305 2022-09-15


华为设备配置VRRP负载分担(vrrp负载分担如何实现)

1. 配置设备各接口的IP地址

[LSW1]vlan batch 10 20

[LSW1-GigabitEthernet0/0/3]port link-type hybrid

[LSW1-GigabitEthernet0/0/3]port hybrid pvid vlan 10

[LSW1-GigabitEthernet0/0/3]port hybrid untagged vlan 10

[LSW1-GigabitEthernet0/0/4]port link-type hybrid

[LSW1-GigabitEthernet0/0/4]port hybrid untagged vlan 20

[LSW1-GigabitEthernet0/0/4]port hybrid pvid vlan 20

[LSW1-Vlanif10]ip add 10.1.1.1 24

[LSW1-Vlanif20]ip add 10.1.2.1 24

[LSW2]vlan batch 10 30

[LSW2-GigabitEthernet0/0/3]port link-type hybrid

[LSW2-GigabitEthernet0/0/3]port hybrid untagged vlan 10

[LSW2-GigabitEthernet0/0/3]port hybrid pvid vlan 10

[LSW2-GigabitEthernet0/0/4]port link-type hybrid

[LSW2-GigabitEthernet0/0/4]port hybrid pvid vlan 30

[LSW2-GigabitEthernet0/0/4]port hybrid untagged vlan 30

[LSW2-Vlanif10]ip add 10.1.1.2 24

[LSW2-Vlanif30]ip add 10.1.3.2 24

[LSW4]vlan batch 20 30 100

[LSW4-GigabitEthernet0/0/1]port link-type hybrid

[LSW4-GigabitEthernet0/0/1]port hybrid untagged vlan 20

[LSW4-GigabitEthernet0/0/1]port hybrid pvid vlan 20

[LSW4-GigabitEthernet0/0/2]port link-type hybrid

[LSW4-GigabitEthernet0/0/2]port hybrid pvid vlan 30

[LSW4-GigabitEthernet0/0/2]port hybrid untagged vlan 30

[LSW4-GigabitEthernet0/0/3]port link-type hybrid

[LSW4-GigabitEthernet0/0/3]port hybrid untagged vlan 100

[LSW4-GigabitEthernet0/0/3]port hybrid pvid vlan 100

[LSW4-Vlanif20]ip add 10.1.2.4 24

[LSW4-Vlanif30]ip add 10.1.3.4 24

[LSW4-Vlanif100]ip add 172.16.1.4 24

2. 配置LSW3的二层转发功能

[LSW3]vlan batch 10

[LSW3-GigabitEthernet0/0/1]port link-type hybrid

[LSW3-GigabitEthernet0/0/1]port hybrid untagged vlan 10

[LSW3-GigabitEthernet0/0/1]port hybrid pvid vlan 10

[LSW3-GigabitEthernet0/0/2]port link-type hybrid

[LSW3-GigabitEthernet0/0/2]port hybrid untagged vlan 10

[LSW3-GigabitEthernet0/0/2]port hybrid pvid vlan 10

3. 配置OSPF协议进行互联

[LSW1]ospf 1

[LSW1-ospf-1]area 0

[LSW1-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255

[LSW1-ospf-1-area-0.0.0.0]network 10.1.2.0 0.0.0.255

[LSW2]ospf 1

[LSW2-ospf-1]area 0

[LSW2-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255

[LSW2-ospf-1-area-0.0.0.0]network 10.1.3.0 0.0.0.255

[LSW4]ospf 1

[LSW4-ospf-1]area 0

[LSW4-ospf-1-area-0.0.0.0]network 172.16.1.0 0.0.0.255

[LSW4-ospf-1-area-0.0.0.0]network 10.1.2.0 0.0.0.255

[LSW4-ospf-1-area-0.0.0.0]network 10.1.3.0 0.0.0.255

4. 配置VRRP备份组

[LSW1]int Vlanif 10

[LSW1-Vlanif10]vrrp vrid 1 virtual-ip 10.1.1.254

[LSW1-Vlanif10]vrrp vrid 1 priority 120

[LSW1-Vlanif10]vrrp vrid 1 preempt-mode timer delay 20

[LSW1-Vlanif10]vrrp vrid 2 virtual-ip 10.1.1.253

[LSW2]int Vlanif 10

[LSW2-Vlanif10]vrrp vrid 2 virtual-ip 10.1.1.253

[LSW2-Vlanif10]vrrp vrid 2 priority 120

[LSW2-Vlanif10]vrrp vrid 2 preempt-mode timer delay 20

[LSW2-Vlanif10]vrrp vrid 1 virtual-ip 10.1.1.254

5. 验证配置


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:RIP实验演示(Huawei路由器设备配置)(华为模拟器rip路由配置)
下一篇:RabbitMQ死信机制实现延迟队列的实战
相关文章

 发表评论

暂时没有评论,来抢沙发吧~