tip

华为WLAN指导设计 来源:华为星火计划培训

华为WLAN设计
网优网归 场景规划
方案设计

【资料简介】华为Wlan网络网规网优技术、场景规划与方案设计,从0开始设计到交付,一本完完整整的学习教材,建议从事无线学习的同学学习..

马上观看
zon

华为WLAN专题集锦 专题:华为WLAN

WLAN配置
组网模式解析
组网配置案例

【华为无线】本指南详细介绍每个模版的命令解释及用途,在加上十多种精彩案例分享及解释,再加上网优网归,让你彻底脱盲,不在为无线..

马上观看
zon

家园VBook中心 分类:书籍中心

教材 案例 题库
知识 专业认证
资源价值

【中心简介】家园Vbook书籍中心是以收集和整理互联网上优秀书籍,以最好的知识推荐给你学习,让你在学习的路程上事半功倍,告别枯燥,早..

马上观看
tip

华为HCIE认证之路 分类:华为认证

HCIE学习之路
华为 路由 交换
含金量最大的资料

【学习介绍】在中国拥有一张证书不是梦,冰冻三尺,非一日之寒,要拥有一张认证所具备含金量技术水准那是需要多年的经年积累,本书专为你分享..

马上观看
tip

华三无线专题报告 发布:建哥哥

华三
H3C WLAN AC
无线专题

【资料简介】大好河山、无线风光,主要介绍H3C无线,从基础到高级配置及组网模式配置案例,多达200篇案例配置,从此告别对无线的迷茫..

马上观看
★浏览次数:503 次★  发布日期:2014-07-01
 当前位置:技术资料 > 网络工程 > H3C > 正文
 
最近更新
    正在更新...
 

H3C网络mstp+vrrp方式优秀组网案列

 

组网需求

局域网中采用 VRRP 技术进行网关设备的备份,提高网关的可靠性。当一台网关设备出现故障时,局域网内的主机仍然可以通过另一台网关设备访问外部网络。
• 在网关设备工作正常时,区域A 用户通过网关设备Switch A 进行数据转发;区域B 用户通过网关设备Switch B 进行数据转发,实现流量的负载分担。
• 当网关设备的上行链路出现故障时,降低该网关设备的优先级,以避免该网关设备成为Master,导致流量转发中断。
• 局域网内进行二层链路的冗余备份,保证网关设备下行链路故障时,流量转发不会中断。使用MSTP 技术避免二层网络中出现环路。
• 网关设备通过核心层的出口设备 Switch E 与Internet 连接。

说明:

通常情况下,核心层会部署多台出口设备,以提高网络的可靠性。为了简化配置过程,本文仅以一台出口设备为例,说明出口设备的配置方法。多台出口设备时,配置方法与此类似。

VRRP+MSTP综合组网图

mstp+vrrp组网图

各接口IP地址表:

配置思路

实现上述组网需求,需要进行如下配置:
• Switch A、Switch B 上分别创建两个VRRP 备份组。
• 配置 Switch A 在备份组1 内具有更高的优先级,即正常情况下Switch A 作为备份组1 的Master 设备;配置Switch B 在备份组2 内具有更高的优先级,即正常情况下Switch B 作为备份组2 的Master 设备。区域 A 内的主机将备份组1 的虚拟IP 地址设置为网关,区域B 内的主机将备份组2 的虚拟IP地址设置为网关。从而保证在网关设备工作正常时,区域A 用户通过网关设备Switch A 进行数据转发,区域B 用户通过网关设备Switch B 进行数据转发,实现流量的负载分担。
• Switch A、Switch B 上分别配置VRRP 备份组监视上行接口,当上行接口出现故障时,降低路由器在备份组中的优先级。
• Switch A、Switch B 和二层交换机之间启用MSTP 多实例,并在各实例中指定根桥和备份根桥。
• 在 Switch A、Switch B 和Switch E 之间配置OSPF 路由协议。Switch A 和Switch B 通过OSPF 发布区域A 和区域B 所在网段的路由,以实现区域A 与区域B 内主机与外部网络的三层互通。并在Switch A 和Switch B 上合理配置路由的Cost 值,以便内网访问外网、外网访问内网的双向流量通过同一台设备处理。
• Switch A 和Switch B 之间的链路采用聚合链路,以提高心跳线的可靠性。

配置步骤

4.3.1 设备A的配置
# 配置端口Ethernet1/1 属于VLAN 1000、Ethernet1/3 属于VLAN 102、Ethernet1/4 属于VLAN 101。
<SwitchA> system-view
[SwitchA] vlan 1000
[SwitchA-vlan1000] port ethernet 1/1
[SwitchA-vlan1000] quit
[SwitchA] vlan 101
[SwitchA-vlan101] port ethernet 1/4
[SwitchA-vlan101] quit
[SwitchA] vlan 102
[SwitchA-vlan102] port ethernet 1/3
[SwitchA-vlan102] quit
# 创建二层聚合接口1。
[SwitchA] interface bridge-aggregation 1
[SwitchA-Bridge-Aggregation1] quit
# 分别将端口Ethernet1/2 和Ethernet1/5 加入到聚合组1 中。
[SwitchA] interface ethernet 1/2
[SwitchA-Ethernet1/2] port link-aggregation group 1
[SwitchA-Ethernet1/2] quit
[SwitchA] interface ethernet 1/5
[SwitchA-Ethernet1/5] port link-aggregation group 1
[SwitchA-Ethernet1/5] quit
# 配置二层聚合接口1 为Trunk 端口,并允许VLAN 101 和102 的报文通过。
[SwitchA] interface bridge-aggregation 1
[SwitchA-Bridge-Aggregation1] port link-type trunk
[SwitchA-Bridge-Aggregation1] port trunk permit vlan 101 to 102
[SwitchA-Bridge-Aggregation1] undo port trunk permit vlan 1
[SwitchA-Bridge-Aggregation1] port trunk pvid vlan 101
[SwitchA-Bridge-Aggregation1] quit
# 配置上行接口IP 地址。
[SwitchA] interface vlan-interface 1000
[SwitchA-Vlan-interface1000] ip address 100.0.0.2 24
[SwitchA-Vlan-interface1000] quit
# 创建Track 项1,监视上行接口的物理状态。
[SwitchA] track 1 interface vlan-interface 1000
# 创建VRRP 备份组1,配置Switch A 在备份组1 中的优先级为110。
[SwitchA] interface vlan-interface 101
[SwitchA-Vlan-interface101] ip address 10.1.1.2 24
[SwitchA-Vlan-interface101] vrrp vrid 1 virtual-ip 10.1.1.1
[SwitchA-Vlan-interface101] vrrp vrid 1 priority 110
# 配置VRRP 备份组1 监视Track 项1 的状态。当Track 项状态为Negative(即上行接口的物理状态为down)时,Switch A 在备份组1 的优先级降低20,使得Switch B 的优先级高于Switch A,Switch B 成为Master。
[SwitchA-Vlan-interface101] vrrp vrid 1 track 1 reduced 20
[SwitchA-Vlan-interface101] quit
# 创建VRRP 备份组2。
[SwitchA] interface vlan-interface 102
[SwitchA-Vlan-interface102] ip address 10.2.1.2 24
[SwitchA-Vlan-interface102] vrrp vrid 1 virtual-ip 10.2.1.1
[SwitchA–Vlan-interface102] quit
# 配置MSTP。
[SwitchA] stp region-configuration
[SwitchA-mst-region] region-name vrrp
[SwitchA-mst-region] instance 1 vlan 101
[SwitchA-mst-region] instance 2 vlan 102
[SwitchA-mst-region] active region-configuration
[SwitchA-mst-region] quit
[SwitchA] stp instance 1 root primary
[SwitchA] stp instance 2 root secondary
[SwitchA] stp enable
# 在上行接口上关闭STP 功能。
[SwitchA] interface ethernet 1/1
[SwitchA-Ethernet1/1] undo stp enable
[SwitchA-Ethernet1/1] quit
# 配置OSPF 发布网段路由。
[SwitchA] ospf
[SwitchA-ospf-1] area 0
[SwitchA-ospf-1-area-0.0.0.0] network 100.0.0.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0] quit
4.3.2 设备B的配置
# 配置端口Ethernet1/1 属于VLAN 2000、Ethernet1/3 属于VLAN 102、Ethernet1/4 属于VLAN 101。
<SwitchB> system-view
[SwitchB] vlan 2000
[SwitchB-vlan2000] port ethernet 1/1
[SwitchB-vlan2000] quit
[SwitchB] vlan 101
[SwitchB-vlan101] port ethernet 1/4
[SwitchB-vlan101] quit
[SwitchB] vlan 102
[SwitchB-vlan102] port ethernet 1/3
[SwitchB-vlan102] quit
# 创建二层聚合接口1。
[SwitchB] interface bridge-aggregation 1
[SwitchB-Bridge-Aggregation1] quit
# 分别将端口Ethernet1/2 和Ethernet1/5 加入到聚合组1 中。
[SwitchB] interface ethernet 1/2
[SwitchB-Ethernet1/2] port link-aggregation group 1
[SwitchB-Ethernet1/2] quit
[SwitchB] interface ethernet 1/5
[SwitchB-Ethernet1/5] port link-aggregation group 1
[SwitchB-Ethernet1/5] quit
# 配置二层聚合接口1 为Trunk 端口,并允许VLAN 101 和102 的报文通过。
[SwitchB] interface bridge-aggregation 1
[SwitchB-Bridge-Aggregation1] port link-type trunk
[SwitchB-Bridge-Aggregation1] port trunk permit vlan 101 to 102
[SwitchB-Bridge-Aggregation1] undo port trunk permit vlan 1
[SwitchB-Bridge-Aggregation1] port trunk pvid vlan 101
[SwitchB-Bridge-Aggregation1] quit
# 配置上行接口IP 地址。
[SwitchB] interface vlan-interface 2000
[SwitchB-Vlan-interface2000] ip address 200.0.0.2 24
[SwitchB-Vlan-interface2000] quit
# 创建Track 项1,监视上行接口的物理状态。
[SwitchB] track 1 interface vlan-interface 2000
# 创建VRRP 备份组1。
[SwitchB] interface vlan-interface 101
[SwitchB-Vlan-interface101] ip address 10.1.1.3 24
[SwitchB-Vlan-interface101] vrrp vrid 1 virtual-ip 10.1.1.1
[SwitchB–Vlan-interface101] quit
# 创建VRRP 备份组2,配置Switch B 在备份组2 中的优先级为110。
[SwitchB] interface vlan-interface 102
[SwitchB-Vlan-interface102] ip address 10.2.1.3 24
[SwitchB-Vlan-interface102] vrrp vrid 1 virtual-ip 10.2.1.1
[SwitchB-Vlan-interface102] vrrp vrid 1 priority 110
# 配置VRRP 备份组2 监视Track 项1 的状态。当Track 项状态为Negative(即上行接口的物理状态为down)时,Switch B 在备份组2 的优先级降低20,使得Switch A 的优先级高于Switch B,Switch A 成为Master。
[SwitchB-Vlan-interface102] vrrp vrid 1 track 1 reduced 20
[SwitchB-Vlan-interface102] quit
# 配置MSTP。
[SwitchB] stp region-configuration
[SwitchB-mst-region] region-name vrrp
[SwitchB-mst-region] instance 1 vlan 101
[SwitchB-mst-region] instance 2 vlan 102
[SwitchB-mst-region] active region-configuration
[SwitchB-mst-region] quit
[SwitchB] stp instance 2 root primary
[SwitchB] stp instance 1 root secondary
[SwitchB] stp enable
# 在上行接口上关闭STP 功能。
[SwitchB] interface ethernet 1/1
[SwitchB-Ethernet1/1] undo stp enable
[SwitchB-Ethernet1/1] quit
# 配置OSPF 发布网段路由。
[SwitchB] ospf
[SwitchB-ospf-1] area 0
[SwitchB-ospf-1-area-0.0.0.0] network 200.0.0.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0] quit
[SwitchB-ospf-1] quit
# 配置接口Vlan-int101 的路由Cost 值为5,以便外网访问区域A 的报文优先通过Switch A 转发。
[SwitchB] interface vlan-interface 101
[SwitchB-Vlan-interface102] ospf cost 5
[SwitchB-Vlan-interface102] quit
4.3.3 设备C的配置
# 配置VLAN 101。
<SwitchC> system-view
[SwitchC] vlan 101
[SwitchC-vlan101] port ethernet 1/1 to ethernet 1/3
[SwitchC-vlan101] quit
# 配置MSTP。
[SwitchC] stp region-configuration
[SwitchC-mst-region] region-name vrrp
[SwitchC-mst-region] instance 1 vlan 101
[SwitchC-mst-region] instance 2 vlan 102
[SwitchC-mst-region] active region-configuration
[SwitchC-mst-region] quit
[SwitchC] stp enable
4.3.4 设备D的配置
# 配置VLAN 102。
<SwitchD> system-view
[SwitchD] vlan 102
[SwitchD-vlan102] port ethernet 1/1 to ethernet 1/3
[SwitchD-vlan102] quit
# 配置MSTP。
[SwitchD] stp region-configuration
[SwitchD-mst-region] region-name vrrp
[SwitchD-mst-region] instance 1 vlan 101
[SwitchD-mst-region] instance 2 vlan 102
[SwitchD-mst-region] active region-configuration
[SwitchD-mst-region] quit
[SwitchD] stp enable
4.3.5 设备E的配置
# 配置VLAN 1000。
<SwitchE> system-view
[SwitchE] vlan 1000
[SwitchE-vlan1000] port ethernet 1/1
[SwitchE-vlan1000] quit
# 配置接口Vlan-int1000 的IP 地址。
[SwitchE] interface vlan-interface 1000
[SwitchE-Vlan-interface1000] ip address 100.0.0.1 24
[SwitchE-Vlan-interface1000] quit
# 配置VLAN 2000。
[SwitchE] vlan 2000
[SwitchE-vlan2000] port ethernet 1/2
[SwitchE-vlan2000] quit
# 配置接口Vlan-int2000 的IP 地址。
[SwitchE] interface vlan-interface 2000
[SwitchE-Vlan-interface2000] ip address 200.0.0.1 24
[SwitchE-Vlan-interface2000] quit
# 配置VLAN 3000。
[SwitchE] vlan 3000
[SwitchE-vlan3000] port ethernet 1/3
[SwitchE-vlan3000] quit
# 配置接口Vlan-int3000 的IP 地址。
[SwitchE] interface vlan-interface 3000
[SwitchE-Vlan-interface3000] ip address 30.0.0.1 24
[SwitchE-Vlan-interface3000] quit
# 配置OSPF 发布网段路由。
[SwitchE] ospf
[SwitchE-ospf-1] area 0
[SwitchE-ospf-1-area-0.0.0.0] network 100.0.0.0 0.0.0.255
[SwitchE-ospf-1-area-0.0.0.0] network 200.0.0.0 0.0.0.255
[SwitchE-ospf-1-area-0.0.0.0] network 30.0.0.0 0.0.0.255
[SwitchE-ospf-1-area-0.0.0.0] quit
[SwitchE-ospf-1] quit
4.3.6 主机的配置
配置区域 A 内主机的缺省网关为10.1.1.1,区域B 内主机的缺省网关为10.2.1.1,具体配置过程略。

验证方法:随便down掉一条链路然后看是否能正常上网。

 
建议使用IE8.0以上版本解析 网络QQ群:30573676 家园群:36740144 Elv home systems. 蜀ICP备20009373号 © All Rights Reserved 2012 - By badulip
×

扫二维码,关注微信公众号