双链路负载分担——MSTP+VRRP+OSPF

网络拓扑如图所示:

网络地址规划:vlan 2 10.147.140.0/26

vlan 3 10.147.140.64/26  用于行政楼段;

vlan 4 10.147.140.128/26

vlan 5 10.147.140.192/26 用于中控楼段;

vlan 10 10.147.141.0/30

vlan 11 10.147.141.4/30

vlan 12 10.147.141.8/30

vlan 13 10.147.141.12/30 用于核心交换机到路由器互联网段。

网络协议使用:接入层到汇聚层使用MSTP,各设置两个实例,分别以其中某台汇聚交换机实例为区域                 根;

汇聚层到核心层使用VRRP,使用4个虚拟组,分别以某台核心交换机为master,另一台为               backup;

核心层至广域网使用OSPF,设置成等价路径。

模拟情境:

接入层设备配置情况:

中控接入1:

#

sysname SW1

#

undo info-center enable

#

vlan batch 4 to 5

#

stp pathcost-standard legacy

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

diffserv domain default

#

stp region-configuration

region-name production_area

instance 1 vlan 4

instance 2 vlan 5

active region-configuration

#

drop-profile default

#

aaa

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default

domain default_admin

local-user admin password simple admin

local-user admin service-type http

#

interface Vlanif1

#

interface MEth0/0/1

#

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 4 to 5

stp instance 2 cost 200

#

interface GigabitEthernet0/0/2

port link-type trunk

port trunk allow-pass vlan 4 to 5

stp instance 1 cost 200

#

interface GigabitEthernet0/0/3

port link-type access

port default vlan 4

stp disable

#

........................................

#

interface NULL0

#

user-interface con 0

user-interface vty 0 4

#

return

行政接入3:

#

sysname SW3

#

undo info-center enable

#

vlan batch 2 to 3

#

stp pathcost-standard legacy

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

diffserv domain default

#

stp region-configuration

region-name office_area

instance 1 vlan 2

instance 2 vlan 3

active region-configuration

#

drop-profile default

#

aaa

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default

domain default_admin

local-user admin password simple admin

local-user admin service-type http

#

interface Vlanif1

#

interface MEth0/0/1

#

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 2 to 3

stp instance 2 cost 200

#

interface GigabitEthernet0/0/2

port link-type trunk

port trunk allow-pass vlan 2 to 3

stp instance 1 cost 200

#

interface GigabitEthernet0/0/3

port link-type access

port default vlan 2

stp disable

#

..................................

#

interface NULL0

#

user-interface con 0

user-interface vty 0 4

#

return

汇聚层交换机配置:

汇聚A:

#

sysname Convergence_A

#

undo info-center enable

#

vlan batch 4 to 5

#

stp instance 1 root primary

stp instance 2 root secondary

stp pathcost-standard legacy

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

diffserv domain default

#

stp region-configuration

region-name production_area

instance 1 vlan 4

instance 2 vlan 5

active region-configuration

#

drop-profile default

#

aaa

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default

domain default_admin

local-user admin password simple admin

local-user admin service-type http

#

interface Vlanif1

#

interface MEth0/0/1

#

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 4 to 5

#

interface GigabitEthernet0/0/2

port link-type trunk

port trunk allow-pass vlan 4 to 5

#

interface GigabitEthernet0/0/3

port link-type trunk

port trunk allow-pass vlan 4 to 5

#

interface GigabitEthernet0/0/4

port link-type trunk

port trunk allow-pass vlan 4 to 5

#

..................................

#

interface GigabitEthernet0/0/24

port link-type trunk

port trunk allow-pass vlan 4 to 5

#

interface NULL0

#

user-interface con 0

user-interface vty 0 4

#

return

汇聚B:

#

sysname Convergence_B

#

undo info-center enable

#

vlan batch 4 to 5

#

stp instance 1 root secondary

stp instance 2 root primary

stp pathcost-standard legacy

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

diffserv domain default

#

stp region-configuration

region-name production_area

instance 1 vlan 4

instance 2 vlan 5

active region-configuration

#

drop-profile default

#

aaa

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default

domain default_admin

local-user admin password simple admin

local-user admin service-type http

#

interface Vlanif1

#

interface MEth0/0/1

#

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 4 to 5

#

interface GigabitEthernet0/0/2

port link-type trunk

port trunk allow-pass vlan 4 to 5

#

interface GigabitEthernet0/0/3

port link-type trunk

port trunk allow-pass vlan 4 to 5

#

interface GigabitEthernet0/0/4

port link-type trunk

port trunk allow-pass vlan 4 to 5

#

..................................

#

interface GigabitEthernet0/0/24

port link-type trunk

port trunk allow-pass vlan 4 to 5

#

interface NULL0

#

user-interface con 0

user-interface vty 0 4

#

return

汇聚C:

#

sysname Convergence_C

#

undo info-center enable

#

vlan batch 2 to 3

#

stp instance 1 root primary

stp instance 2 root secondary

stp pathcost-standard legacy

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

diffserv domain default

#

stp region-configuration

region-name office_area

instance 1 vlan 2

instance 2 vlan 3

active region-configuration

#

drop-profile default

#

aaa

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default

domain default_admin

local-user admin password simple admin

local-user admin service-type http

#

interface Vlanif1

#

interface MEth0/0/1

#

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 2 to 3

#

interface GigabitEthernet0/0/2

port link-type trunk

port trunk allow-pass vlan 2 to 3

#

interface GigabitEthernet0/0/3

port link-type trunk

port trunk allow-pass vlan 2 to 3

stp disable

#

interface GigabitEthernet0/0/4

port link-type trunk

port trunk allow-pass vlan 2 to 3

stp disable

#

...................................

#

interface GigabitEthernet0/0/24

port link-type trunk

port trunk allow-pass vlan 2 to 3

#

interface NULL0

#

user-interface con 0

user-interface vty 0 4

#

return

汇聚D:

#

sysname Convergence_D

#

undo info-center enable

#

vlan batch 2 to 3

#

stp instance 1 root secondary

stp instance 2 root primary

stp pathcost-standard legacy

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

diffserv domain default

#

stp region-configuration

region-name office_area

instance 1 vlan 2

instance 2 vlan 3

active region-configuration

#

drop-profile default

#

aaa

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default

domain default_admin

local-user admin password simple admin

local-user admin service-type http

#

interface Vlanif1

#

interface MEth0/0/1

#

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 2 to 3

#

interface GigabitEthernet0/0/2

port link-type trunk

port trunk allow-pass vlan 2 to 3

#

interface GigabitEthernet0/0/3

port link-type trunk

port trunk allow-pass vlan 2 to 3

stp disable

#

interface GigabitEthernet0/0/4

port link-type trunk

port trunk allow-pass vlan 2 to 3

stp disable

#

...................................

#

interface GigabitEthernet0/0/24

port link-type trunk

port trunk allow-pass vlan 2 to 3

#

interface NULL0

#

user-interface con 0

user-interface vty 0 4

#

return

核心交换机配置:

核心1:

#

sysname Core_A

#

undo info-center enable

#

vlan batch 2 to 5 10 14

#

stp disable

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

diffserv domain default

#

drop-profile default

#

aaa

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default

domain default_admin

local-user admin password simple admin

local-user admin service-type http

#

interface Vlanif1

#

interface Vlanif2

ip address 10.147.140.60 255.255.255.192

vrrp vrid 2 virtual-ip 10.147.140.62

vrrp vrid 2 priority 110

vrrp vrid 2 preempt-mode timer delay 30

#

interface Vlanif3

ip address 10.147.140.125 255.255.255.192

vrrp vrid 3 virtual-ip 10.147.140.126

#

interface Vlanif4

ip address 10.147.141.189 255.255.255.192

vrrp vrid 4 virtual-ip 10.147.141.190

vrrp vrid 4 priority 110

vrrp vrid 4 preempt-mode timer delay 30

#

interface Vlanif5

ip address 10.147.141.252 255.255.255.192

vrrp vrid 5 virtual-ip 10.147.141.254

#

interface Vlanif10

ip address 10.147.140.129 255.255.255.252

#

interface Vlanif14

ip address 10.147.140.141 255.255.255.252

#

interface MEth0/0/1

#

interface Eth-Trunk1

port link-type trunk

port trunk allow-pass vlan 2 to 3

#

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 2 to 3

#

interface GigabitEthernet0/0/2

#

interface GigabitEthernet0/0/3

port link-type trunk

port trunk allow-pass vlan 2 to 5

#

interface GigabitEthernet0/0/4

port link-type trunk

port trunk allow-pass vlan 2 to 5

#

interface GigabitEthernet0/0/5

port link-type access

port default vlan 10

#

interface GigabitEthernet0/0/6

port link-type access

port default vlan 14

#

................................

#

interface GigabitEthernet0/0/23

eth-trunk 1

#

interface GigabitEthernet0/0/24

eth-trunk 1

#

interface NULL0

#

interface LoopBack0

ip address 3.3.3.3 255.255.255.255

#

ospf 1 router-id 3.3.3.3

area 0.0.0.0

network 10.147.140.128 0.0.0.3

network 10.147.140.140 0.0.0.3

network 3.3.3.3 0.0.0.0

#

user-interface con 0

user-interface vty 0 4

#

port-group quit

#

return

核心2:

#

sysname Core_B

#

undo info-center enable

#

vlan batch 2 to 5 11 to 12

#

stp disable

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

diffserv domain default

#

drop-profile default

#

aaa

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default

domain default_admin

local-user admin password simple admin

local-user admin service-type http

#

interface Vlanif1

#

interface Vlanif2

ip address 10.147.140.61 255.255.255.192

vrrp vrid 2 virtual-ip 10.147.140.62

#

interface Vlanif3

ip address 10.147.140.124 255.255.255.192

vrrp vrid 3 virtual-ip 10.147.140.126

vrrp vrid 3 priority 110

vrrp vrid 3 preempt-mode timer delay 30

#

interface Vlanif4

ip address 10.147.141.188 255.255.255.192

vrrp vrid 4 virtual-ip 10.147.141.190

#

interface Vlanif5

ip address 10.147.141.253 255.255.255.192

vrrp vrid 5 virtual-ip 10.147.141.254

vrrp vrid 5 priority 110

vrrp vrid 5 preempt-mode timer delay 30

#

interface Vlanif11

ip address 10.147.140.133 255.255.255.252

#

interface Vlanif12

ip address 10.147.140.137 255.255.255.252

#

interface MEth0/0/1

#

interface GigabitEthernet0/0/1

#

interface GigabitEthernet0/0/2

#

interface GigabitEthernet0/0/3

port link-type trunk

port trunk allow-pass vlan 2 to 5

#

interface GigabitEthernet0/0/4

port link-type trunk

port trunk allow-pass vlan 2 to 5

#

interface GigabitEthernet0/0/5

port link-type access

port default vlan 11

#

interface GigabitEthernet0/0/6

port link-type access

port default vlan 12

#

................................

#

interface GigabitEthernet0/0/23

eth-trunk 1

#

interface GigabitEthernet0/0/24

eth-trunk 1

#

interface NULL0

#

interface LoopBack0

ip address 3.3.3.3 255.255.255.255

#

ospf 1 router-id 3.3.3.3

area 0.0.0.0

network 10.147.140.128 0.0.0.3

network 10.147.140.140 0.0.0.3

network 3.3.3.3 0.0.0.0

#

user-interface con 0

user-interface vty 0 4

#

port-group quit

#

return

路由器配置:

路由器R1:

#

sysname R1

#

undo info-center enable

#

aaa

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default

domain default_admin

local-user admin password cipher OOCM4m($F4ajUn1vMEIBNUw#

local-user admin service-type http

#

firewall zone Local

priority 16

#

interface Ethernet0/0/0

#

interface Ethernet0/0/1

#

interface Serial0/0/0

link-protocol ppp

#

interface Serial0/0/1

link-protocol ppp

#

interface Serial0/0/2

link-protocol ppp

#

interface Serial0/0/3

link-protocol ppp

#

interface GigabitEthernet0/0/0

ip address 10.147.140.130 255.255.255.252

#

interface GigabitEthernet0/0/1

ip address 10.147.140.134 255.255.255.252

#

interface GigabitEthernet0/0/2

#

interface GigabitEthernet0/0/3

#

wlan

#

interface NULL0

#

interface LoopBack0

ip address 1.1.1.1 255.255.255.255

#

ospf 1 router-id 1.1.1.1

area 0.0.0.0

network 1.1.1.1 0.0.0.0

network 10.147.140.128 0.0.0.3

network 10.147.140.132 0.0.0.3

#

user-interface con 0

user-interface vty 0 4

user-interface vty 16 20

#

return

路由器R2:

#

sysname R2

#

undo info-center enable

#

aaa

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default

domain default_admin

local-user admin password cipher OOCM4m($F4ajUn1vMEIBNUw#

local-user admin service-type http

#

firewall zone Local

priority 16

#

interface Ethernet0/0/0

#

interface Ethernet0/0/1

#

interface Serial0/0/0

link-protocol ppp

#

interface Serial0/0/1

link-protocol ppp

#

interface Serial0/0/2

link-protocol ppp

#

interface Serial0/0/3

link-protocol ppp

#

interface GigabitEthernet0/0/0

ip address 10.147.140.142 255.255.255.252

#

interface GigabitEthernet0/0/1

ip address 10.147.140.138 255.255.255.252

#

interface GigabitEthernet0/0/2

#

interface GigabitEthernet0/0/3

#

wlan

#

interface NULL0

#

interface LoopBack0

ip address 2.2.2.2 255.255.255.255

#

ospf 1 router-id 2.2.2.2

area 0.0.0.0

network 2.2.2.2 0.0.0.0

network 10.147.140.140 0.0.0.3

network 10.147.140.136 0.0.0.3

#

user-interface con 0

user-interface vty 0 4

user-interface vty 16 20

#

return

双链路负载分担——MSTP+VRRP+OSPF,布布扣,bubuko.com

时间: 2024-11-05 05:48:18

双链路负载分担——MSTP+VRRP+OSPF的相关文章

双链路的负载分担2——MSTP+VRRP+OSPF

网络拓扑: eNSP模拟器实验拓扑: 网络地址规划:vlan2:10.147.140.0/26  Gateway: 10.147.140.62 vlan3: 10.147.140.64/26 Gateway: 10.147.140.126 vlan4: 10.147.140.128/26 Gateway: 10.147.140.190 vlan5: 10.147.140.192/26 Gateway: 10.147.140.254 路由地址规划: vlan10: 10.147.141.128/3

配置OSPF负载分担示例

?微信公众号:网络民工 组网图形 图1 配置OSPF负载分担组网图 OSPF负载分担简介 等价负载分担ECMP(Equal-CostMultiple Path),是指在两个网络节点之间同时存在多条路径时,节点间的流量在多条路径上平均分摊.负载分担的作用是减轻每条路径的流量压力,增强网络健壮性.当到达同一目的地存在同一路由协议发现的多条路由时,且这几条路由的开销值也相同,那么就满足负载分担的条件.当实现负载分担时,路由器根据五元组(源地址.目的地址.源端口.目的端口.协议)进行转发,当五元组相同时

配置OSPF负载分担

组网需求: OSPF网络中有四台交换机,同属于区域0.要求配置负载分担,使得SwitchA流量,可以分别通过SwitchB和SwitchC送到SwitchD. 拓扑: 配置思路 采用如下的思路配置OSPF的负载分担: 在各交换机上配置OSPF基本功能,实现OSPF网络的基本互通. 在SwitchA配置负载分担,实现负载均衡的目的. 操作步骤 配置各接口所属VLAN # 配置SwitchA.SwitchB.SwitchC和SwitchD的配置与SwitchA类似 <HUAWEI> system-

使用ENSP搭建MSTP+VRRP高可用性拓扑实验

毕业工作一年,因工作需要,所接触的网络环境全部都要求高可用性,VRRP+MSTP二层防环且满足高可用性的综合技术,越来越多的得到企业的青睐,因为手头没有那么多的设备供研究,因此最近使用华为的ENSP搭建了MSTP+VRRP的实验拓扑,以下为实验内容. 1.实验拓扑 2.各设备连接及IP地址 设备名称 设备接口互联 vlan及IP地址 RouterA G0/0/3 - SWA G0/0/3 10.1.4.101 RouterB G0/0/3 - SWB G0/0/3 10.1.5.101 SWA

HCNA——负载分担、路由备份

HCNA--负载分担.路由备份 实验拓扑图 根据上图所给的参数进行配置 4台PC互通需配置双向路由表 这里我就不再演示了 直接开始实验 实验开始 负载分担 从PC1 ping PC4 是不是第一个数据包走红色的路由 第二个的数据包走蓝色的路由呢? PS:当然不是这样子的 负载分担有一个叫 "逐流" 什么是流?流就是源IP源端口 目的IP目的端口 当这四个和前面的流一样的时候 第一个数据包走的是红色路由 那么同一个流的数据包都会走相同的路由 由于在eNSP模拟器中看不到这样的过程 所以简

静态路由实现路由负载分担

静态路由简介 扫描二维码关注微信公众号:网络民工 获取更多内容静态路由是一种需要管理员手工配置的特殊路由.静态路由比动态路由使用更少的带宽,并且不占用CPU资源来计算和更新路由.但是当网络发生故障或者拓扑发生变化后,静态路由不会自动更新,必须手动重新配置.静态路由有5个主要的参数:目的地址和掩码.出接口和下一跳.优先级. 使用静态路由的好处是配置简单.可控性高,当网络结构比较简单时,只需配置静态路由就可以使网络正常工作.在复杂网络环境中,还可以通过配置静态路由改进网络的性能,并且可以为重要的应用

菱形组网之BGP MED、负载分担及GR篇

菱形组网之BGP MED.负载分担及GR篇 BGP选路规则 1.     MED.RouterID(<)和负载分担 到达同一目的地的多条路由,选择最优路由,下发到IP路由表 在PE1查看路由表 [PE1]dis ip routing-table Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Rout

cisco dhcp vlan vtp stp vrrp ospf

ciso dhcp vlan stp vtp vrrp ospf 一.拓扑 二.接口配置 IOU1(config)# hostname dhcp dhcp(config)# int e0/0 dhcp(config-if)# ip add 1.1.1.1 255.255.255.0 dhcp(config-if)# no shut dhcp(config)# int e0/1 dhcp(config-if)# ip add 2.2.2.1 255.255.255.0 dhcp(config-if

HCNA配置手工负载分担模式链路聚合

一.配置手工负载分担模式链路聚合 1.手工负载分担模式链路聚合配置场景 当需要增加两台设备之间的带宽或可靠性,而两台设备中有一台不支持LACP协议时,可在Switch设备上创建手工负载分担模式的Eth-Trunk,并加入多个成员接口增加设备间的带宽及可靠性 2.步骤 2.1 配置Eth-Trunk工作模式为手工负载分担模式 执行命令system-view,进入系统视图. 执行命令interface eth-trunk trunk-id,进入Eth-Trunk接口视图. 执行命令mode manu