首页 > 其他分享 >华为的MSTP+VRRP配置.

华为的MSTP+VRRP配置.

时间:2023-06-15 09:03:43浏览次数:43  
标签:11 quit ip vlan MSTP 华为 VRRP interface port

 

AR1

 1 undo terminal monitor
 2 system-view
 3 sysname AR1
 4 interface GigabitEthernet0/0/0
 5 ip address 192.168.0.2 255.255.255.252
 6 quit
 7 interface GigabitEthernet0/0/1
 8 ip address 192.168.0.6 255.255.255.252
 9 quit
10 interface loopback 0
11 ip address 1.1.1.1 255.255.255.255
12 quit
13 ip route-static 172.16.0.0 24 192.168.0.1
14 ip route-static 172.16.1.0 24 192.168.0.5
15 ip route-static 0.0.0.0 0 192.168.0.5

Lsw1

 1 undo terminal monitor
 2 system-view
 3 sysname LSW1
 4 vlan batch 11 21 22 2 3
 5 interface vlanif 11
 6 ip address 192.168.1.3 28              //管理网络
 7 vrrp vrid 1 virtual-ip 192.168.1.1
 8 quit
 9 interface vlanif 21
10 ip address 172.16.0.3 24
11 vrrp vrid 2 virtual-ip 172.16.0.1
12 vrrp vrid 2 priority 80
13 quit
14 interface vlanif 22
15 ip address 172.16.1.3 24
16 vrrp vrid 3 virtual-ip 172.16.1.1
17 vrrp vrid 3 priority 200
18 vrrp vrid 3 track  interface ethernet0/0/5 reduced 150
19 quit
20 interface ethernet 0/0/1
21 port link-type trunk
22 port trunk allow-pass vlan 11 21
23 quit
24 interface ethernet 0/0/2
25 port link-type trunk
26 port trunk allow-pass vlan 11 22
27 quit
28 interface ethernet0/0/3
29 port link-type trunk
30 port trunk allow-pass vlan 11 21 22
31 quit
32 stp enable
33 stp mode mstp
34 stp region-configuration
35 region-name 001
36 instance 1 vlan 11
37 instance 2 vlan 21
38 instance 3 vlan 22
39 active region-configuration
40 quit
41 stp instance 1 root secondary
42 stp instance 2 root secondary
43 stp instance 3 root primary
44 interface vlanif 2
45 ip address 192.168.0.5 30 
46 quit
47 interface ethernet 0/0/5
48 port link-type access
49 port default vlan 2
50 quit
51 interface vlanif 3
52 ip address 192.168.0.10 30
53 quit
54 interface ethernet0/0/4
55 port link-type access
56 port default vlan 3
57 quit
58 ip route-static 1.1.1.1 32 192.168.0.6
59 ip route-static 0.0.0.0 0 192.168.0.9
60 display vrrp brief

LSW2

 1 undo terminal monitor
 2 system-view
 3 sysname LSW2
 4 vlan batch 11 21 22 2 3
 5 interface vlanif 11
 6 ip address 192.168.1.2 28
 7 vrrp vrid 1 virtual-ip 192.168.1.1
 8 vrrp vrid 1 priority 200
 9 vrrp vrid 1 track interface ethernet 0/0/5 reduced 150
10 quit
11 interface vlanif 21
12 ip address 172.16.0.2 24
13 vrrp vrid 2 virtual-ip 172.16.0.1
14 vrrp vrid 2 priority 200
15 vrrp vrid 2 track interface ethernet 0/0/5 reduced 150
16 quit
17 interface vlanif 22
18 ip address 172.16.1.2 24
19 vrrp vrid 3 virtual-ip 172.16.1.1
20 vrrp vrid 3 priority 80
21 quit
22 interface ethernet 0/0/1
23 port link-type trunk
24 port trunk allow-pass vlan 11 21
25 quit
26 interface ethernet 0/0/2
27 port link-type trunk
28 port trunk allow-pass vlan 11 22
29 quit
30 interface ethernet 0/0/3
31 port link-type trunk
32 port trunk allow-pass vlan 11 21 22
33 quit
34 stp enable
35 stp mode mstp
36 stp region-configuration
37 region-name 001
38 instance 1 vlan 11
39 instance 2 vlan 21
40 instance 3 vlan 22
41 active region-configuration
42 quit
43 stp instance 1 root primary
44 stp instance 2 root primary
45 stp instance 3 root secondary
46 interface vlanif 2
47 ip address 192.168.0.1 30
48 interface ethernet 0/0/5
49 port link-type access
50 port default vlan 2
51   quit
52 interface vlanif 3
53 ip address 192.168.0.9 30
54   quit
55 interface ethernet0/0/4
56 port link-type access
57 port default vlan 3
58 quit
59 ip route-static 1.1.1.1 32 192.168.0.2
60 ip route-static 0.0.0.0 0 192.168.0.10
61  dis vrrp bri

 

LSW3
 1 undo terminal monitor
 2 system-view
 3 sysname LSW3
 4 vlan batch 11 22
 5 interface vlanif11
 6 ip address 192.168.1.5 28 //管理网络
 7 quit
 8 interface ethernet 0/0/3
 9 port link-type access
10 port default vlan 22
11 quit
12 interface ethernet 0/0/1
13 port link-type trunk
14 port trunk allow-pass vlan 11 22
15 quit
16 interface ethernet 0/0/2
17 port link-type trunk
18 port trunk allow-pass vlan 11 22
19 quit
LSW4
 1 undo terminal monitor
 2 system-view
 3 sysname LSW4
 4 vlan batch 11 21
 5 interface vlanif 11
 6 ip address  192.168.1.4 28
 7 quit
 8 interface ethernet0/0/3
 9 port link-type access
10 port default vlan 21
11 quit
12 interface ethernet 0/0/1
13 port link-type trunk
14 port trunk allow-pass vlan 11 21
15 quit
16 interface ethernet0/0/2
17 port link-type trunk
18 port trunk allow-pass vlan 11 21
19 quit
20 vlan 11
21 description Guanli              //管理网络
22 quit

 

标签:11,quit,ip,vlan,MSTP,华为,VRRP,interface,port
From: https://www.cnblogs.com/jdbinfo/p/17481843.html

相关文章

  • 华为 OD 统一考试(B 卷):阿里巴巴找黄金宝箱(2)
    最近更新的博客华为od2023|什么是华为od,od薪资待遇,od机试题清单 https://dream.blog.csdn.net/article/details/128980730华为OD机试真题大全,用Python解华为机试题|机试宝典 https://dream.blog.csdn.net/article/details/129221789【华为OD机试】全流程解析......
  • 华为 OD 统一考试(B 卷):阿里巴巴找黄金宝箱(3)
    华为OD机试【4大宝典】再次上新题!①Python解华为机试题:https://dream.blog.csdn.net/article/details/129221789②C++解华为机试题:https://dream.blog.csdn.net/article/details/129472919③Java解华为机试题:https://dream.blog.csdn.net/article/details/129652513④......
  • 华为项目管理之道
    有幸在咱们“PMO前沿大会”学习了华为公司服务Fellow(领域专家)孙虎老师为大家分享的“华为项目管理之道”。 孙老师从项目发展趋势出发,系统讲解了项目管理体系,以及项目管理需要的根能力,这三个部分对我的启发很大,让我对项目管理有了更深、更广的认识,同时突破了执行视角,意识到了......
  • 华为万兆交换机6855堆叠
    配置思路:采用如下的思路配置: 提前规划好堆叠方案。 按照前期的规划,完成各台交换机的堆叠配置,包括堆叠成员ID、堆叠优先级、堆叠域编号、堆叠端口等。完成后保存配置并将交换机下电。 连接交换机之间的堆叠线缆,然后将交换机上电。 检查堆叠组建是否成功。 操作步骤:......
  • 解密华为云原生媒体网络如何保障实时音视频服务质量
    随着5G和AI的发展,内容表达视频化成为了当今的主流,很多行业对视频分发有非常旺盛的需求。我们非常荣幸地请到了华为云的资深视频架构师黄挺,为大家介绍基于互联网的实时音视频服务所面临的挑战,分享华为云原生媒体网络全方位保障实时音视频服务体验的实践。文/黄挺整理/LiveVideoS......
  • 华为云媒体质量管理最新实践——“视镜”
    对全球不可靠的互联网络和大容量分布式系统的挑战,如何以用户为中心,从可用变得更好用,追求更流畅、更清晰、更快、更省的极致用户音视频体验?LiveVideoStacCon2021北京站邀请到华为云媒体服务资深研发专家——康永红,为大家分享华为云媒体服务在追求极致用户体验质量道路上的沉淀成果......
  • 华为的智慧城市顶层规划咨询方法论
    《华为的智慧城市顶层规划咨询方法论》一、智慧城市建设的时代背景二、华为智慧城市顶层规划咨询方法详述三、华为智慧城市评估模型与评价体系四、实践参考:华为智慧城市顶层规划咨询案例......
  • 华为配置案例1:配置远程登录交换机
    1.使用Telnet访问华为设备(1)配置telnet登录真机上需要先启用telnet服务[AR1]telnetserverenable1password认证AR1配置telnet[AR1]user-interfacevty04[AR1-ui-vty0-4]authentication-modepasswordPleaseconfiguretheloginpassword(maximumlength16):6[AR1-ui-vty0-4]......
  • 华为云618活动来袭,精选CDN和视频云产品限时低价秒杀0.6折起
    华为云618,年中业务添动力,选择华为云更省心!选择一个优质的CDN服务成为了企业的应对产品运营的关键一步。华为云CDN运用创新型运营模式,合规化全国运营,提供高标准服务保障,并通过持续的技术创新能力为CDN服务构建了深邃的“护城河”,提供优质CDN节点服务,广泛服务于视频、游戏、电商、金......
  • (华为机试)扑克牌大小
    扑克牌游戏大家应该都比较熟悉了,一副牌由54张组成,含3~A、2各4张,小王1张,大王1张。牌面从小到大用如下字符和字符串表示(其中,小写joker表示小王,大写JOKER表示大王):345678910JQKA2jokerJOKER输入两手牌,两手牌之间用"-“连接,每手牌的每张牌以空格分隔,”-"两边没有空格,......