H3C交换机vrrp+mstp配置实例

更新时间:2023-07-12 06:26:25 阅读: 评论:0

H3C交换机vrrp+mstp配置实例
交换机vrrp+mstp配置实例
⼀、组⽹需求
1、switch a 、switch b选⽤两台锐捷的s5750 ;switch c 、shwich d 选
⽤锐捷的s3750和s3760
2、全⽹共有两个业务vlan ,为vlan 10 、vlan 20
3、Switch a 、switch b 都分别对两vlan起⽤两vrrp组,实现两组的业务的负
载分担和备份。
4、Switch a、switch b、switch c、switch d 都起⽤mstp多⽣成数协议,并且
所有设备都属于同⼀个mst域,且实例映射⼀致(vlan 10映射实例1、vlan 20映射实例2 其他vlan映射默认实例0)。
5、Vlan 10业务以switch a为根桥;vlan 20业务以switch b为根桥;实现阻
舜帝是哪里人
断⽹络环路,并能实现不同vlan数据流负载分担功能。
⼆、组⽹图
三、配置步骤
Switch a配置:
s1#show run
可乐鸭翅的做法
Current configuration : 1651 bytes
version RGNOS 10.2.00(2), Relea(29287)(Tue Dec 25 20:39:14 CST 2007 -ngcf49) hostname s1 co-operate enable
!
!
!
vlan 1
!
vlan 10
!
vlan 20
!
!
no rvice password-encryption
!
spanning-tree 开启⽣成树(默认为mstp)
spanning-tree mst configuration 进⼊mst配置模式
revision 1 指定MST revision number 为1
name region1 指定mst配置名称
instance 0 vlan 1-9, 11-19, 21-4094 缺省情况下vlan都属于实例0
instance 1 vlan 10 ⼿⼯指定vlan10属于实例1
instance 2 vlan 20 ⼿⼯指定vlan20属于实例2
spanning-tree mst 1 priority 0 指定实例1的优先级为0(为根桥)
spanning-tree mst 2 priority 4096 指定实例2的优先级为4096
interface GigabitEthernet 0/1
摇滚夏令营
switchport access vlan 10 配置g0/1属于vlan10
!
interface GigabitEthernet 0/2
switchport access vlan 20 配置g0/2属于vlan 20
!
后视镜的正确调整
interface GigabitEthernet 0/3
!
.
.
interface GigabitEthernet 0/24 设置g0/24为trunk接⼝且允许vlan10/20通过switchport mode trunk
interface VLAN 10 创建vlan 10 svi接⼝
ip address 192.168.10.1 255.255.255.0 配置ip地址
vrrp 1 priority 120 配置vrrp组1 优先级为120
vrrp 1 ip 192.168.10.254 配置vrrp组1虚拟ip地址为192.168.10.254
!
水彩画风景简单
interface VLAN 20 创建vlan 20 svi接⼝
ip address 192.168.20.1 255.255.255.0 配置ip地址
vrrp 2 ip 192.168.20.254 配置vrrp组2虚拟ip地址为192.168.20.254
默认vrrp组的优先级为100默认不显⽰
!
line con 0
line vty 0 4
login
s1#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
---
1 VLAN0001 STA TIC Gi0/3, Gi0/4, Gi0/5, Gi0/6
Gi0/7, Gi0/8, Gi0/9, Gi0/10
Gi0/11, Gi0/12, Gi0/13, Gi0/14
Gi0/15, Gi0/16, Gi0/17, Gi0/18
Gi0/19, Gi0/20, Gi0/21, Gi0/22
Gi0/23, Gi0/24
10 VLAN0010 STATIC Gi0/1, Gi0/24
20 VLAN0020 STATIC Gi0/2, Gi0/24
Switch b配置:
s2#show run
Current configuration : 1607 bytes
!
version RGNOS 10.2.00(2), Relea(27932)(Thu Dec 13 10:32:09 CST 2007 -ngcf31) hostname s2 !
!
!
!
vlan 10
!
vlan 20
!
!
no rvice password-encryption
小孩牙痛怎么办快速止痛!
spanning-tree
spanning-tree mst configuration revision 1
name region1
instance 0 vlan 1-9, 11-19, 21-4094 instance 1 vlan 10
instance 2 vlan 20
spanning-tree mst 1 priority 4096 spanning-tree mst 2 priority 0 interface GigabitEthernet 0/1 switchport access vlan 10
!
开学第一课主题班会教案interface GigabitEthernet 0/2 switchport access vlan 20
!
.
.
interface GigabitEthernet 0/24 switchport mode trunk
!
interface VLAN 10
ip address 192.168.10.2 255.255.255.0 vrrp 1 ip 192.168.10.254
!
interface VLAN 20
ip address 192.168.20.2 255.255.255.0
vrrp 2 ip 192.168.20.254
!
line con 0
line vty 0 4
login
!
!
end
s2#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- --------------------------------
---
1 VLAN0001 STA TIC Gi0/3, Gi0/4, Gi0/5, Gi0/6
Gi0/7, Gi0/8, Gi0/9, Gi0/10
Gi0/11, Gi0/12, Gi0/13, Gi0/14
Gi0/15, Gi0/16, Gi0/17, Gi0/18
Gi0/19, Gi0/20, Gi0/21, Gi0/22
Gi0/23, Gi0/24
10 VLAN0010 STATIC Gi0/1, Gi0/24
20 VLAN0020 STATIC Gi0/2, Gi0/24
春天美景的诗句Switch c配置:
s3#show run
Current configuration : 1540 bytes
!
version RGNOS 10.2.00(2), Relea(28794)(Fri Dec 21 09:27:15 CST 2007 -ngcf32) hostname s3 !
vlan 1
!
vlan 10
!
!
rvice password-encryption
!

本文发布于:2023-07-12 06:26:25,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/82/1092099.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:配置   实例   实现   属于
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图