当前位置:网站首页>华为设备配置VRRP负载分担
华为设备配置VRRP负载分担
2022-08-03 20:20:00 【Tony_long7483】
- 配置设备各接口的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 - 配置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 - 配置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 - 配置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 - 验证配置
边栏推荐
猜你喜欢
tRNA修饰2-甲基胞嘧啶(m2C)|tRNA修饰m2G (N2-methylguanosine)
【飞控开发高级教程4】疯壳·开源编队无人机-360 度翻滚
力扣206-反转链表——链表
2022 年值得尝试的 7 个 MQTT 客户端工具
倒计时2天,“文化数字化战略新型基础设施暨文化艺术链生态建设发布会”启幕在即
盲埋孔PCB叠孔设计的利与弊
Alexa染料标记RNA核糖核酸|RNA-Alexa 514|RNA-Alexa 488|RNA-Alexa 430
Edge box + time series database, technology selection behind Midea's digital platform iBuilding
力扣707-设计链表——链表
ESP8266-Arduino编程实例-BH1750FVI环境光传感器驱动
随机推荐
抖音web逆向教程
WPF .cs中使用资源文件中的ControlTemplate或Style并找到控件
Likou 707 - Design Linked List - Linked List
glusterfs 搭建使用
迪赛智慧数——柱状图(多色柱状图):2021年我国城市住户存款排名
信使mRNA甲基化偶联3-甲基胞嘧啶(m3C)|mRNA-m3C
Golang死信队列的使用
LeetCode 899. 有序队列
leetcode 剑指 Offer 58 - II. 左旋转字符串
力扣206-反转链表——链表
Likou 59 - Spiral Matrix II - Boundary Judgment
Alexa染料标记RNA核糖核酸|RNA-Alexa 514|RNA-Alexa 488|RNA-Alexa 430
8.3模拟赛总结
Li Mu hands-on learning deep learning V2-BERT fine-tuning and code implementation
第三方验收测试报告有什么作用?如何获取权威软件测试报告?
PHP according to the longitude and latitude calculated distance two points
leetcode 136. Numbers that appear only once (XOR!!)
2022 年值得尝试的 7 个 MQTT 客户端工具
MySQL Basics
JMeter笔记5 |Badboy使用和录制