二层负载分担(一)

一、STP 生成树协议

stp:spanning tree protocol  生成树协议
作用:防止交换环路  
原理:通过运行stp 算法,阻塞特定的接口实现冗余无环的网络。

二层负载分担(一)

二、链路捆绑 Eth-trunk:

(1) Eth-trunk:手工负载分担模式
二层负载分担(一)

FW2:
interface Eth-trunk 0
portswitch (改为二层接口,默认是三层口)
trunkport gi 1/0/0
trunkport gi 1/0/1
trunkport gi 1/0/2
port link-type trunk
port trunk allow-pass vlan all

firewall zone trust
add interface Eth-Trunk 0 将捆绑接口加入trust区域

FW1: 注意:图形界面配置会死机!
二层负载分担(一)

注意:需将接pc的gi 1/0/6 和gi1/0/3 划入trust区域 并改为二层接口即可通信,然后可以做冗余性测试!
二层负载分担(一)

和交换机eth-trunk对接:
sw1:
interface Eth-Trunk1 (默认二层)
trunkport gi 0/0/5
trunkport gi 0/0/4
trunkport gi 0/0/3
port link-type trunk
port trunk allow-pass vlan all

FW1配置:
interface Eth-trunk 1
portswitch
trunkport gi 1/0/0
trunkport gi 1/0/1
trunkport gi 1/0/2
port link-type trunk
port trunk allow-pass vlan all

firewall zone trust
add interface Eth-Trunk 1 将捆绑接口加入trust区域

PC1 访问PC6

二层负载分担(一)

调试命令:dis eth-trunk 0
二层负载分担(一)
dis stp brief (sw1)

二层负载分担(一)
当然也可以将eth-trunk 当成三层口来配置ip地址。

(2) Eth-trunk 静态lacp模式:link aggregation control protocol
注意:对于Eth-trunk来说,优先级都是越小越优先 (默认lacp 优先级是32768,默认开启抢占,且抢占时间是30s)
二层负载分担(一)

sw2:
lacl priority 100 修改lacp 系统优先级
interface Eth-Trunk0 (默认二层)
port link-type trunk
port trunk allow-pass vlan 2 to 4094
mode lacp-static (必须先指定模式,然后再加接口)
max active-linknumber 2 最大选择两条负载分担
trunkport gi 0/0/1 将接口加入eth-trunk
trunkport gi 0/0/2
trunkport gi 0/0/3

interface GigabitEthernet0/0/1
eth-trunk 0
lacp priority 10 (修改接口lacp优先级 默认32768)
#
interface GigabitEthernet0/0/2
eth-trunk 0
lacp priority 20
#
interface GigabitEthernet0/0/3
eth-trunk 0
lacp priority 30

sw3 配置和sw2类似 但可以不指定相关优先级

二层负载分担(一)

调试:dis stp brief
PC互ping 冗余性测试!
来自51CTO助教李聪

猜你喜欢

转载自blog.51cto.com/13848183/2176649