本期为大家带来华三交换机的链路聚合的实例,请看拓补图
前言:华三的交换机链路聚合和华为的有异曲同工之妙,下面是关键字
华三Bridge-Aggregation1 =华为Eth-trunk
华三加入聚合组,在端口下敲 port link-aggregation group 1 华为则是:Eth-trunk1
华三选择动态聚合模式link-aggregation mode dynamic 华为则是,mode XX?
本次案例拓补图如下
整体思路和华为一样,创建聚合组,选择聚合模式,将端口加入聚合组,聚合组端口透传vlan,本次实验案例我在核心交换机创建地址池,然后让PC去获取,以此证明聚合端口没有问题
值得注意的是,在无环网络中我们是不需要开启STP的,有环网络中需要开启STP
核心交换机CORE:拓补图正上方的交换机
接入交换机ACCESS:接入PC的交换机
配置如下:
CORE:
#
dhcp enable
#
vlan 10
#
stp global enable
#
dhcp server ip-pool vlan10 //创建一个名为“vlan10”的地址池
gateway-list 192.168.10.254 //设置地址池网关
network 192.168.10.0 mask 255.255.255.0 //宣告地址池的工作网络网段
expired unlimited //地址租期为永久
#
interface Bridge-Aggregation1 //进入聚合组端口1
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10
link-aggregation mode dynamic //修改聚合端口的模式为,动态聚合
#
interface Vlan-interface10
ip address 192.168.10.254 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-mode bridge //代表这是一个二层接口
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10
combo enable fiber
port link-aggregation group 1 //加入聚合组1
#
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10
combo enable fiber
port link-aggregation group 1 //加入聚合组1
#
接入交换机ACCESS配置:
#
vlan 10
#
interface Bridge-Aggregation1
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10
link-aggregation mode dynamic
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10
combo enable fiber
port link-aggregation group 1
#
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10
combo enable fiber
port link-aggregation group 1
#
interface GigabitEthernet1/0/3
port link-mode bridge
port access vlan 10
combo enable fiber
#
interface GigabitEthernet1/0/4
port link-mode bridge
port access vlan 10
combo enable fiber
#